| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "ash/common/ash_switches.h" |
| |
| #include "base/command_line.h" |
| #include "base/sys_info.h" |
| |
| namespace ash { |
| namespace switches { |
| |
| // Enables an animated transition from the boot splash screen (Chrome logo on a |
| // white background) to the login screen. Implies |
| // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in |
| // conjunction with |kDisableBootAnimation| (since the transition begins at the |
| // same time as the white/grayscale login screen animation). |
| const char kAshAnimateFromBootSplashScreen[] = |
| "ash-animate-from-boot-splash-screen"; |
| |
| // Copies the host window's content to the system background layer at startup. |
| // Can make boot slightly slower, but also hides an even-longer awkward period |
| // where we display a white background if the login wallpaper takes a long time |
| // to load. |
| const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot"; |
| |
| // Enable keyboard shortcuts useful for debugging. |
| const char kAshDebugShortcuts[] = "ash-debug-shortcuts"; |
| |
| // Disables the window backdrops normally used in maximize mode (TouchView). |
| const char kAshDisableMaximizeModeWindowBackdrop[] = |
| "ash-disable-maximize-mode-window-backdrop"; |
| |
| #if defined(OS_CHROMEOS) |
| // Disable the support for WebContents to lock the screen orientation. |
| const char kAshDisableScreenOrientationLock[] = |
| "ash-disable-screen-orientation-lock"; |
| #endif |
| |
| // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be |
| // turned on automatically when spoken feedback is enabled when this flag is |
| // set. |
| const char kAshDisableTouchExplorationMode[] = |
| "ash-disable-touch-exploration-mode"; |
| |
| #if defined(OS_CHROMEOS) |
| // Enables fullscreen app list if Ash is in maximize mode. |
| const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; |
| |
| // Enables key bindings to scroll magnified screen. |
| const char kAshEnableMagnifierKeyScroller[] = |
| "ash-enable-magnifier-key-scroller"; |
| |
| // Enables the palette next to the status area. |
| const char kAshEnablePalette[] = "ash-enable-palette"; |
| |
| // Enables experimental ash palette tools. |
| const char kAshEnablePaletteExperimentalFeatures[] = |
| "ash-enable-palette-experimental-features"; |
| |
| // Enables the palette on every display, instead of only the internal one. |
| const char kAshEnablePaletteOnAllDisplays[] = |
| "ash-enable-palette-on-all-displays"; |
| |
| #endif |
| |
| // Enables the observation of accelerometer events to enter touch-view mode. |
| const char kAshEnableTouchView[] = "enable-touchview"; |
| |
| // Enables mirrored screen. |
| const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| |
| // Enables / disables a stable order between overview sessions, independent of |
| // the MRU order which attempts to preserve relative window positions. |
| const char kAshDisableStableOverviewOrder[] = |
| "ash-disable-stable-overview-order"; |
| const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order"; |
| |
| |
| // Enables touch view testing. |
| // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is |
| // removed. |
| const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; |
| |
| // Hides notifications that are irrelevant to Chrome OS device factory testing, |
| // such as battery level updates. |
| const char kAshHideNotificationsForFactory[] = |
| "ash-hide-notifications-for-factory"; |
| |
| // Specifies if Material Design elements in Chrome OS system UI are enabled. |
| // Can be disabled / enabled / experimental allowing to launch incrementally. |
| const char kAshMaterialDesign[] = "ash-md"; |
| const char kAshMaterialDesignDisabled[] = "disabled"; |
| const char kAshMaterialDesignEnabled[] = "enabled"; |
| const char kAshMaterialDesignExperimental[] = "experimental"; |
| |
| // Specifies a maximum number of preview windows in overview mode that still |
| // allows using mask layers to hide the original window header and use rounded |
| // corners. |
| const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask"; |
| |
| // Specifies a maximum number of preview windows in overview mode that still |
| // allows using alpha shapes to hide the original window header. |
| const char kAshMaxWindowsToUseShapeInOverview[] = |
| "ash-max-previews-to-use-shape"; |
| |
| // Enables the heads-up display for tracking touch points. |
| const char kAshTouchHud[] = "ash-touch-hud"; |
| |
| // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
| // Standard hardware reports releases immediately after presses. If set, we |
| // lock the screen or shutdown the system immediately in response to a press |
| // instead of displaying an interactive animation. |
| const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| |
| #if defined(OS_CHROMEOS) |
| // Constrains the pointer movement within a root window on desktop. |
| bool ConstrainPointerToRoot() { |
| const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| |
| return base::SysInfo::IsRunningOnChromeOS() || |
| base::CommandLine::ForCurrentProcess()->HasSwitch( |
| kAshConstrainPointerToRoot); |
| } |
| |
| #endif |
| |
| } // namespace switches |
| } // namespace ash |