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

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

Issue 2802903003: Implementation of a full screen app list and re-alphabetized switches (Closed)
Patch Set: fixed some formatting/whitespace errors. Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/ash_switches.h" 5 #include "ash/common/ash_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sys_info.h" 8 #include "base/sys_info.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Disable the Touch Exploration Mode. Touch Exploration Mode will no longer be 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 45 // turned on automatically when spoken feedback is enabled when this flag is
46 // set. 46 // set.
47 const char kAshDisableTouchExplorationMode[] = 47 const char kAshDisableTouchExplorationMode[] =
48 "ash-disable-touch-exploration-mode"; 48 "ash-disable-touch-exploration-mode";
49 49
50 // Enables key bindings to scroll magnified screen. 50 // Enables key bindings to scroll magnified screen.
51 const char kAshEnableMagnifierKeyScroller[] = 51 const char kAshEnableMagnifierKeyScroller[] =
52 "ash-enable-magnifier-key-scroller"; 52 "ash-enable-magnifier-key-scroller";
53 53
54 // Enables mirrored screen.
55 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
vadimt 2017/04/10 19:40:10 Good Samaritan! :)
newcomer 2017/04/13 21:13:59 Thanks!
56
54 // Enables the palette on every display, instead of only the internal one. 57 // Enables the palette on every display, instead of only the internal one.
55 const char kAshEnablePaletteOnAllDisplays[] = 58 const char kAshEnablePaletteOnAllDisplays[] =
56 "ash-enable-palette-on-all-displays"; 59 "ash-enable-palette-on-all-displays";
57 60
58 // Enables the observation of accelerometer events to enter touch-view mode. 61 // Enables the observation of accelerometer events to enter touch-view mode.
59 const char kAshEnableTouchView[] = "enable-touchview"; 62 const char kAshEnableTouchView[] = "enable-touchview";
60 63
61 // Enables mirrored screen.
62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
63
64 // Enables a smoother animation for screen rotation. 64 // Enables a smoother animation for screen rotation.
65 const char kAshEnableSmoothScreenRotation[] = 65 const char kAshEnableSmoothScreenRotation[] =
66 "ash-enable-smooth-screen-rotation"; 66 "ash-enable-smooth-screen-rotation";
67 67
68 // Specifies the estimated time (in milliseconds) from VSYNC event until when 68 // Specifies the estimated time (in milliseconds) from VSYNC event until when
69 // visible light can be noticed by the user. 69 // visible light can be noticed by the user.
70 const char kAshEstimatedPresentationDelay[] = 70 const char kAshEstimatedPresentationDelay[] =
71 "ash-estimated-presentation-delay"; 71 "ash-estimated-presentation-delay";
72 72
73 // Enables the palette next to the status area. 73 // Enables the palette next to the status area.
74 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; 74 const char kAshForceEnablePalette[] = "ash-force-enable-palette";
75 75
76 // Enables required things for the selected UI mode, regardless of whether the 76 // Enables required things for the selected UI mode, regardless of whether the
77 // Chromebook is currently in the selected UI mode. 77 // Chromebook is currently in the selected UI mode.
78 const char kAshForceTabletMode[] = "force-tablet-mode"; 78 const char kAshForceTabletMode[] = "force-tablet-mode";
79 79
80 // Values for the kAshForceTabletMode flag. 80 // Values for the kAshForceTabletMode flag.
81 const char kAshForceTabletModeAuto[] = "auto"; 81 const char kAshForceTabletModeAuto[] = "auto";
82 const char kAshForceTabletModeClamshell[] = "clamshell"; 82 const char kAshForceTabletModeClamshell[] = "clamshell";
83 const char kAshForceTabletModeTouchView[] = "touch_view"; 83 const char kAshForceTabletModeTouchView[] = "touch_view";
84 84
85 // Hides notifications that are irrelevant to Chrome OS device factory testing, 85 // Hides notifications that are irrelevant to Chrome OS device factory testing,
86 // such as battery level updates. 86 // such as battery level updates.
87 const char kAshHideNotificationsForFactory[] = 87 const char kAshHideNotificationsForFactory[] =
88 "ash-hide-notifications-for-factory"; 88 "ash-hide-notifications-for-factory";
89 89
90 // Enables the shelf color to be derived from the wallpaper. 90 // Enables the shelf color to be derived from the wallpaper.
91 const char kAshShelfColor[] = "ash-shelf-color"; 91 const char kAshShelfColor[] = "ash-shelf-color";
92 const char kAshShelfColorDisabled[] = "disabled";
92 const char kAshShelfColorEnabled[] = "enabled"; 93 const char kAshShelfColorEnabled[] = "enabled";
93 const char kAshShelfColorDisabled[] = "disabled";
94 94
95 // The color scheme to be used when the |kAshShelfColor| feature is enabled. 95 // The color scheme to be used when the |kAshShelfColor| feature is enabled.
96 const char kAshShelfColorScheme[] = "ash-shelf-color-scheme"; 96 const char kAshShelfColorScheme[] = "ash-shelf-color-scheme";
97 const char kAshShelfColorSchemeDarkMuted[] = "dark_muted";
98 const char kAshShelfColorSchemeDarkVibrant[] = "dark_vibrant";
97 const char kAshShelfColorSchemeLightMuted[] = "light_muted"; 99 const char kAshShelfColorSchemeLightMuted[] = "light_muted";
98 const char kAshShelfColorSchemeLightVibrant[] = "light_vibrant"; 100 const char kAshShelfColorSchemeLightVibrant[] = "light_vibrant";
99 const char kAshShelfColorSchemeNormalMuted[] = "normal_muted"; 101 const char kAshShelfColorSchemeNormalMuted[] = "normal_muted";
100 const char kAshShelfColorSchemeNormalVibrant[] = "normal_vibrant"; 102 const char kAshShelfColorSchemeNormalVibrant[] = "normal_vibrant";
101 const char kAshShelfColorSchemeDarkMuted[] = "dark_muted"; 103
102 const char kAshShelfColorSchemeDarkVibrant[] = "dark_vibrant";
103 104
104 // Enables the heads-up display for tracking touch points. 105 // Enables the heads-up display for tracking touch points.
105 const char kAshTouchHud[] = "ash-touch-hud"; 106 const char kAshTouchHud[] = "ash-touch-hud";
106 107
107 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 108 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
108 // Standard hardware reports releases immediately after presses. If set, we 109 // Standard hardware reports releases immediately after presses. If set, we
109 // lock the screen or shutdown the system immediately in response to a press 110 // lock the screen or shutdown the system immediately in response to a press
110 // instead of displaying an interactive animation. 111 // instead of displaying an interactive animation.
111 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 112 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
112 113
113 // Constrains the pointer movement within a root window on desktop. 114 // Constrains the pointer movement within a root window on desktop.
114 bool ConstrainPointerToRoot() { 115 bool ConstrainPointerToRoot() {
115 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 116 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
116 117
117 return base::SysInfo::IsRunningOnChromeOS() || 118 return base::SysInfo::IsRunningOnChromeOS() ||
118 base::CommandLine::ForCurrentProcess()->HasSwitch( 119 base::CommandLine::ForCurrentProcess()->HasSwitch(
119 kAshConstrainPointerToRoot); 120 kAshConstrainPointerToRoot);
120 } 121 }
121 122
122 } // namespace switches 123 } // namespace switches
123 } // namespace ash 124 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698