Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "ash/ash_switches.h" |
| 6 | |
Torne (Richard Coles) | a93a17c | 2013-05-15 11:34:50 +0100 | [diff] [blame] | 7 | #include "base/command_line.h" |
| 8 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 9 | namespace ash { |
| 10 | namespace switches { |
| 11 | |
| 12 | // Enables an animated transition from the boot splash screen (Chrome logo on a |
| 13 | // white background) to the login screen. Implies |
| 14 | // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in |
| 15 | // conjunction with |kDisableBootAnimation| (since the transition begins at the |
| 16 | // same time as the white/grayscale login screen animation). |
| 17 | const char kAshAnimateFromBootSplashScreen[] = |
| 18 | "ash-animate-from-boot-splash-screen"; |
| 19 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 20 | // Constrains the pointer movement within a root window on desktop. |
| 21 | const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 22 | |
| 23 | // Copies the host window's content to the system background layer at startup. |
| 24 | // Can make boot slightly slower, but also hides an even-longer awkward period |
| 25 | // where we display a white background if the login wallpaper takes a long time |
| 26 | // to load. |
| 27 | const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; |
| 28 | |
| 29 | // Enable keyboard shortcuts useful for debugging. |
| 30 | const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; |
| 31 | |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 32 | // Indicates that the wallpaper images specified by |
| 33 | // kAshDefaultWallpaper{Large,Small} are OEM-specific (i.e. they are not |
| 34 | // downloadable from Google). |
| 35 | const char kAshDefaultWallpaperIsOem[] = "ash-default-wallpaper-is-oem"; |
| 36 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 37 | // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). |
| 38 | const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; |
| 39 | const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; |
| 40 | |
Torne (Richard Coles) | 46d4c2b | 2014-06-09 12:00:27 +0100 | [diff] [blame] | 41 | // Disables LockLayoutManager used for LockScreenContainer, return back to |
| 42 | // WorkspaceLayoutManager. |
| 43 | const char kAshDisableLockLayoutManager[] = "ash-disable-lock-layout-manager"; |
| 44 | |
Torne (Richard Coles) | cedac22 | 2014-06-03 10:58:34 +0100 | [diff] [blame] | 45 | // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be |
| 46 | // turned on automatically when spoken feedback is enabled when this flag is |
| 47 | // set. |
| 48 | const char kAshDisableTouchExplorationMode[] = |
| 49 | "ash-disable-touch-exploration-mode"; |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 50 | |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 51 | #if defined(OS_CHROMEOS) |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 52 | // Enables key bindings to scroll magnified screen. |
| 53 | const char kAshEnableMagnifierKeyScroller[] = |
| 54 | "ash-enable-magnifier-key-scroller"; |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 55 | #endif |
| 56 | |
Torne (Richard Coles) | 68043e1 | 2013-09-26 13:24:57 +0100 | [diff] [blame] | 57 | // Enables software based mirroring. |
| 58 | const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
Torne (Richard Coles) | a36e592 | 2013-08-05 13:57:33 +0100 | [diff] [blame] | 59 | |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 60 | // Enables touch view testing. |
Ben Murdoch | c5cede9 | 2014-04-10 11:22:14 +0100 | [diff] [blame] | 61 | // TODO(skuhne): Remove TOGGLE_TOUCH_VIEW_TESTING accelerator once this |
| 62 | // flag is removed. |
Torne (Richard Coles) | a140131 | 2014-03-18 10:20:56 +0000 | [diff] [blame] | 63 | const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 64 | |
Torne (Richard Coles) | 5d1f7b1 | 2014-02-21 12:16:55 +0000 | [diff] [blame] | 65 | // When this flag is set, system sounds will be played whether the |
| 66 | // ChromeVox is enabled or not. |
| 67 | const char kAshEnableSystemSounds[] = "ash-enable-system-sounds"; |
| 68 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 69 | // Enables showing the tray bubble by dragging on the shelf. |
| 70 | const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging"; |
| 71 | |
Torne (Richard Coles) | 4e180b6 | 2013-10-18 15:46:22 +0100 | [diff] [blame] | 72 | // Wallpaper to use in guest mode (as paths to trusted, non-user-writable JPEG |
| 73 | // files). |
| 74 | const char kAshGuestWallpaperLarge[] = "ash-guest-wallpaper-large"; |
| 75 | const char kAshGuestWallpaperSmall[] = "ash-guest-wallpaper-small"; |
| 76 | |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 77 | // Hides notifications that are irrelevant to Chrome OS device factory testing, |
| 78 | // such as battery level updates. |
| 79 | const char kAshHideNotificationsForFactory[] = |
| 80 | "ash-hide-notifications-for-factory"; |
| 81 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 82 | // Sets a window size, optional position, and optional scale factor. |
| 83 | // "1024x768" creates a window of size 1024x768. |
| 84 | // "100+200-1024x768" positions the window at 100,200. |
| 85 | // "1024x768*2" sets the scale factor to 2 for a high DPI display. |
| 86 | const char kAshHostWindowBounds[] = "ash-host-window-bounds"; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 87 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 88 | // Specifies the layout mode and offsets for the secondary display for |
| 89 | // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
| 90 | // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
| 91 | // is positioned on the right with -100 offset. (above than primary) |
| 92 | const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
| 93 | |
| 94 | // Enables the heads-up display for tracking touch points. |
| 95 | const char kAshTouchHud[] = "ash-touch-hud"; |
| 96 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 97 | // Uses the 1st display in --ash-host-window-bounds as internal display. |
| 98 | // This is for debugging on linux desktop. |
| 99 | const char kAshUseFirstDisplayAsInternal[] = |
| 100 | "ash-use-first-display-as-internal"; |
| 101 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 102 | // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| 103 | // Standard hardware reports releases immediately after presses. If set, we |
| 104 | // lock the screen or shutdown the system immediately in response to a press |
| 105 | // instead of displaying an interactive animation. |
| 106 | const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 107 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 108 | #if defined(OS_WIN) |
| 109 | // Force Ash to open its root window on the desktop, even on Windows 8 where |
| 110 | // it would normally end up in metro. |
| 111 | const char kForceAshToDesktop[] = "ash-force-desktop"; |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame] | 112 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 113 | #endif |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 114 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 115 | } // namespace switches |
| 116 | } // namespace ash |