Home | History | Annotate | Download | only in ash
      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 #include "base/command_line.h"
      8 
      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 
     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 
     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 
     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 
     41 // Disables LockLayoutManager used for LockScreenContainer, return back to
     42 // WorkspaceLayoutManager.
     43 const char kAshDisableLockLayoutManager[] = "ash-disable-lock-layout-manager";
     44 
     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";
     50 
     51 #if defined(OS_CHROMEOS)
     52 // Enables key bindings to scroll magnified screen.
     53 const char kAshEnableMagnifierKeyScroller[] =
     54     "ash-enable-magnifier-key-scroller";
     55 #endif
     56 
     57 // Enables text filtering with the keyboard in Overview Mode.
     58 const char kAshDisableTextFilteringInOverviewMode[] =
     59     "ash-disable-text-filtering-in-overview-mode";
     60 
     61 // Enables quick, non-cancellable locking of the screen when in maximize mode.
     62 const char kAshEnablePowerButtonQuickLock[] =
     63     "ash-enable-power-button-quick-lock";
     64 
     65 // Enables software based mirroring.
     66 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring";
     67 
     68 // Enables touch view testing.
     69 // TODO(skuhne): Remove TOGGLE_TOUCH_VIEW_TESTING accelerator once this
     70 // flag is removed.
     71 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing";
     72 
     73 // Enables additional visual feedback to touch input.
     74 const char kAshEnableTouchViewTouchFeedback[] =
     75     "ash-enable-touch-view-touch-feedback";
     76 
     77 // When this flag is set, system sounds will be played whether the
     78 // ChromeVox is enabled or not.
     79 const char kAshEnableSystemSounds[] = "ash-enable-system-sounds";
     80 
     81 // Enables showing the tray bubble by dragging on the shelf.
     82 const char kAshEnableTrayDragging[] = "ash-enable-tray-dragging";
     83 
     84 // Wallpaper to use in guest mode (as paths to trusted, non-user-writable JPEG
     85 // files).
     86 const char kAshGuestWallpaperLarge[] = "ash-guest-wallpaper-large";
     87 const char kAshGuestWallpaperSmall[] = "ash-guest-wallpaper-small";
     88 
     89 // Hides notifications that are irrelevant to Chrome OS device factory testing,
     90 // such as battery level updates.
     91 const char kAshHideNotificationsForFactory[] =
     92     "ash-hide-notifications-for-factory";
     93 
     94 // Sets a window size, optional position, and optional scale factor.
     95 // "1024x768" creates a window of size 1024x768.
     96 // "100+200-1024x768" positions the window at 100,200.
     97 // "1024x768*2" sets the scale factor to 2 for a high DPI display.
     98 const char kAshHostWindowBounds[] = "ash-host-window-bounds";
     99 
    100 // Specifies the layout mode and offsets for the secondary display for
    101 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
    102 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
    103 // is positioned on the right with -100 offset. (above than primary)
    104 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout";
    105 
    106 // Enables the heads-up display for tracking touch points.
    107 const char kAshTouchHud[] = "ash-touch-hud";
    108 
    109 // Uses the 1st display in --ash-host-window-bounds as internal display.
    110 // This is for debugging on linux desktop.
    111 const char kAshUseFirstDisplayAsInternal[] =
    112     "ash-use-first-display-as-internal";
    113 
    114 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
    115 // Standard hardware reports releases immediately after presses.  If set, we
    116 // lock the screen or shutdown the system immediately in response to a press
    117 // instead of displaying an interactive animation.
    118 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
    119 
    120 #if defined(OS_WIN)
    121 // Force Ash to open its root window on the desktop, even on Windows 8 where
    122 // it would normally end up in metro.
    123 const char kForceAshToDesktop[] = "ash-force-desktop";
    124 
    125 #endif
    126 
    127 }  // namespace switches
    128 }  // namespace ash
    129