Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: ash/common/ash_switches.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/ash_switches.h ('k') | ash/common/ash_view_ids.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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/common/ash_switches.h"
6
7 #include "base/command_line.h"
8 #include "base/sys_info.h"
9
10 namespace ash {
11 namespace switches {
12
13 // Enables adjustable large cursor.
14 const char kAshAdjustableLargeCursor[] = "ash-adjustable-large-cursor";
15
16 // Enables an animated transition from the boot splash screen (Chrome logo on a
17 // white background) to the login screen. Implies
18 // |kAshCopyHostBackgroundAtBoot| and doesn't make much sense if used in
19 // conjunction with |kDisableBootAnimation| (since the transition begins at the
20 // same time as the white/grayscale login screen animation).
21 const char kAshAnimateFromBootSplashScreen[] =
22 "ash-animate-from-boot-splash-screen";
23
24 // Copies the host window's content to the system background layer at startup.
25 // Can make boot slightly slower, but also hides an even-longer awkward period
26 // where we display a white background if the login wallpaper takes a long time
27 // to load.
28 const char kAshCopyHostBackgroundAtBoot[] = "ash-copy-host-background-at-boot";
29
30 // Enable keyboard shortcuts useful for debugging.
31 const char kAshDebugShortcuts[] = "ash-debug-shortcuts";
32
33 // Enable keyboard shortcuts used by developers only.
34 const char kAshDeveloperShortcuts[] = "ash-dev-shortcuts";
35
36 // Disables the window backdrops normally used in maximize mode (TouchView).
37 const char kAshDisableMaximizeModeWindowBackdrop[] =
38 "ash-disable-maximize-mode-window-backdrop";
39
40 // Disable the support for WebContents to lock the screen orientation.
41 const char kAshDisableScreenOrientationLock[] =
42 "ash-disable-screen-orientation-lock";
43
44 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be
45 // turned on automatically when spoken feedback is enabled when this flag is
46 // set.
47 const char kAshDisableTouchExplorationMode[] =
48 "ash-disable-touch-exploration-mode";
49
50 // Enables key bindings to scroll magnified screen.
51 const char kAshEnableMagnifierKeyScroller[] =
52 "ash-enable-magnifier-key-scroller";
53
54 // Enables the palette on every display, instead of only the internal one.
55 const char kAshEnablePaletteOnAllDisplays[] =
56 "ash-enable-palette-on-all-displays";
57
58 // Enables docking windows to the right or left (not to be confused with snapped
59 // windows).
60 const char kAshEnableDockedWindows[] = "ash-enable-docked-windows";
61
62 // Enables the observation of accelerometer events to enter touch-view mode.
63 const char kAshEnableTouchView[] = "enable-touchview";
64
65 // Enables mirrored screen.
66 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
67
68 // Enables the palette next to the status area.
69 const char kAshForceEnablePalette[] = "ash-force-enable-palette";
70
71 // Hides notifications that are irrelevant to Chrome OS device factory testing,
72 // such as battery level updates.
73 const char kAshHideNotificationsForFactory[] =
74 "ash-hide-notifications-for-factory";
75
76 // Enables the shelf color to be derived from the wallpaper.
77 const char kAshShelfColor[] = "ash-shelf-color";
78 const char kAshShelfColorLightMuted[] = "light_muted";
79 const char kAshShelfColorLightVibrant[] = "light_vibrant";
80 const char kAshShelfColorNormalMuted[] = "normal_muted";
81 const char kAshShelfColorNormalVibrant[] = "normal_vibrant";
82 const char kAshShelfColorDarkMuted[] = "dark_muted";
83 const char kAshShelfColorDarkVibrant[] = "dark_vibrant";
84
85 // Enables the heads-up display for tracking touch points.
86 const char kAshTouchHud[] = "ash-touch-hud";
87
88 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
89 // Standard hardware reports releases immediately after presses. If set, we
90 // lock the screen or shutdown the system immediately in response to a press
91 // instead of displaying an interactive animation.
92 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
93
94 // Constrains the pointer movement within a root window on desktop.
95 bool ConstrainPointerToRoot() {
96 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
97
98 return base::SysInfo::IsRunningOnChromeOS() ||
99 base::CommandLine::ForCurrentProcess()->HasSwitch(
100 kAshConstrainPointerToRoot);
101 }
102
103 bool DockedWindowsEnabled() {
104 return base::CommandLine::ForCurrentProcess()->HasSwitch(
105 ash::switches::kAshEnableDockedWindows);
106 }
107
108 } // namespace switches
109 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/ash_switches.h ('k') | ash/common/ash_view_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698