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 | |
| 7 | namespace ash { |
| 8 | namespace switches { |
| 9 | |
| 10 | // Enables an animated transition from the boot splash screen (Chrome logo on a |
| 11 | // white background) to the login screen. Implies |
| 12 | // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in |
| 13 | // conjunction with |kDisableBootAnimation| (since the transition begins at the |
| 14 | // same time as the white/grayscale login screen animation). |
| 15 | const char kAshAnimateFromBootSplashScreen[] = |
| 16 | "ash-animate-from-boot-splash-screen"; |
| 17 | |
| 18 | // Variation of boot animation that uses Tween::EASE_OUT_2. |
| 19 | const char kAshBootAnimationFunction2[] = "ash-boot-animation-function2"; |
| 20 | |
| 21 | // Variation of boot animation that uses Tween::EASE_OUT_3. |
| 22 | const char kAshBootAnimationFunction3[] = "ash-boot-animation-function3"; |
| 23 | |
| 24 | // Constrains the pointer movement within a root window on desktop. |
| 25 | const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 26 | |
| 27 | // Copies the host window's content to the system background layer at startup. |
| 28 | // Can make boot slightly slower, but also hides an even-longer awkward period |
| 29 | // where we display a white background if the login wallpaper takes a long time |
| 30 | // to load. |
| 31 | const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; |
| 32 | |
| 33 | // Enable keyboard shortcuts useful for debugging. |
| 34 | const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; |
| 35 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 36 | // Disable auto window maximization logic. |
| 37 | const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing"; |
| 38 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 39 | // Disable support for auto window placement. |
| 40 | const char kAshDisableAutoWindowPlacement[] = |
| 41 | "ash-enable-auto-window-placement"; |
| 42 | |
| 43 | // Disables boot animation v2, go back to v1. |
| 44 | const char kAshDisableBootAnimation2[] = "ash-disable-boot-animation2"; |
| 45 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 46 | // Disables the limitter to throttle how quickly a user |
| 47 | // can change display settings. |
| 48 | const char kAshDisableDisplayChangeLimiter[] = |
| 49 | "ash-disable-display-change-limiter"; |
| 50 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 51 | // Disable the new cras audio handler. |
| 52 | const char kAshDisableNewAudioHandler[] = "ash-disable-new-audio-handler"; |
| 53 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 54 | // If present new lock animations are enabled. |
| 55 | const char kAshDisableNewLockAnimations[] = "ash-disable-new-lock-animations"; |
| 56 | |
| 57 | // Disable new network handlers in the status area. |
| 58 | const char kAshDisableNewNetworkStatusArea[] = |
| 59 | "ash-disable-new-network-status-area"; |
| 60 | |
| 61 | // Disable the per application grouping version of the launcher. |
| 62 | const char kAshDisablePerAppLauncher[] = "ash-disable-per-app-launcher"; |
| 63 | |
| 64 | // Disables display rotation. |
| 65 | const char kAshDisableDisplayRotation[] = "ash-disable-display-rotation"; |
| 66 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 67 | // Disable immersive fullscreen mode, regardless of default setting. |
| 68 | const char kAshDisableImmersiveFullscreen[] = |
| 69 | "ash-disable-immersive-fullscreen"; |
| 70 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 71 | // Disables ui scaling. |
| 72 | const char kAshDisableUIScaling[] = "ash-disable-ui-scaling"; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 73 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 74 | // Extend the status tray volume item to allow the user to choose an audio |
| 75 | // input and output device. |
| 76 | const char kAshEnableAudioDeviceMenu[] = |
| 77 | "ash-enable-audio-device-menu"; |
| 78 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 79 | // Enable advanced gestures (e.g. for window management). |
| 80 | const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; |
| 81 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 82 | // Always enable brightness control. Used by machines that don't report their |
| 83 | // main monitor as internal. |
| 84 | const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
| 85 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 86 | // Enable immersive fullscreen mode, regardless of default setting. |
| 87 | const char kAshEnableImmersiveFullscreen[] = "ash-enable-immersive-fullscreen"; |
| 88 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 89 | #if defined(OS_LINUX) |
| 90 | // Enable memory monitoring. |
| 91 | const char kAshEnableMemoryMonitor[] = "ash-enable-memory-monitor"; |
| 92 | #endif |
| 93 | |
| 94 | // Enables the Oak tree viewer. |
| 95 | const char kAshEnableOak[] = "ash-enable-oak"; |
| 96 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 97 | // Enables "sticky" edges instead of "snap-to-edge" |
| 98 | const char kAshEnableStickyEdges[] = "ash-enable-sticky-edges"; |
| 99 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 100 | // Enables showing the tray bubble by dragging on the shelf. |
| 101 | const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging"; |
| 102 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 103 | // Enable workspace switching via a three finger vertical scroll. |
| 104 | const char kAshEnableWorkspaceScrubbing[] = "ash-enable-workspace-scrubbing"; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 105 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 106 | // Sets a window size, optional position, and optional scale factor. |
| 107 | // "1024x768" creates a window of size 1024x768. |
| 108 | // "100+200-1024x768" positions the window at 100,200. |
| 109 | // "1024x768*2" sets the scale factor to 2 for a high DPI display. |
| 110 | const char kAshHostWindowBounds[] = "ash-host-window-bounds"; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 111 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 112 | // Hides the small tab indicators at the top of the screen during immersive |
| 113 | // fullscreen mode. |
| 114 | const char kAshImmersiveHideTabIndicators[] = |
| 115 | "ash-immersive-hide-tab-indicators"; |
| 116 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 117 | // Specifies the layout mode and offsets for the secondary display for |
| 118 | // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
| 119 | // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
| 120 | // is positioned on the right with -100 offset. (above than primary) |
| 121 | const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
| 122 | |
| 123 | // Enables the heads-up display for tracking touch points. |
| 124 | const char kAshTouchHud[] = "ash-touch-hud"; |
| 125 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 126 | // Uses the 1st display in --ash-host-window-bounds as internal display. |
| 127 | // This is for debugging on linux desktop. |
| 128 | const char kAshUseFirstDisplayAsInternal[] = |
| 129 | "ash-use-first-display-as-internal"; |
| 130 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 131 | // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| 132 | // Standard hardware reports releases immediately after presses. If set, we |
| 133 | // lock the screen or shutdown the system immediately in response to a press |
| 134 | // instead of displaying an interactive animation. |
| 135 | const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 136 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 137 | #if defined(OS_WIN) |
| 138 | // Force Ash to open its root window on the desktop, even on Windows 8 where |
| 139 | // it would normally end up in metro. |
| 140 | const char kForceAshToDesktop[] = "ash-force-desktop"; |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame^] | 141 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 142 | #endif |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 143 | |
Torne (Richard Coles) | b2df76e | 2013-05-13 16:52:09 +0100 | [diff] [blame^] | 144 | // Allow items to be dragged from the app launcher list into the launcher. |
| 145 | const char kAshDragAndDropAppListToLauncher[] = |
| 146 | "ash-drag-and-drop-applist-to-launcher"; |
| 147 | |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 148 | // Enables a mode which enforces all browser & application windows to be created |
| 149 | // in maximized mode. |
| 150 | const char kForcedMaximizeMode[] = "forced-maximize-mode"; |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 151 | } // namespace switches |
| 152 | } // namespace ash |