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

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

Issue 2401473002: [ash-md] Erases the pre-MD code path for Overview Mode (Closed)
Patch Set: [ash-md] Erases the pre-MD code path for Overview Mode Created 4 years, 2 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 "ash-enable-palette-on-all-displays"; 66 "ash-enable-palette-on-all-displays";
67 67
68 #endif 68 #endif
69 69
70 // Enables the observation of accelerometer events to enter touch-view mode. 70 // Enables the observation of accelerometer events to enter touch-view mode.
71 const char kAshEnableTouchView[] = "enable-touchview"; 71 const char kAshEnableTouchView[] = "enable-touchview";
72 72
73 // Enables mirrored screen. 73 // Enables mirrored screen.
74 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 74 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
75 75
76 // Enables / disables a stable order between overview sessions, independent of
77 // the MRU order which attempts to preserve relative window positions.
78 const char kAshDisableStableOverviewOrder[] =
79 "ash-disable-stable-overview-order";
80 const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order";
81
82
83 // Enables touch view testing. 76 // Enables touch view testing.
84 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is 77 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is
85 // removed. 78 // removed.
86 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; 79 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing";
87 80
88 // Hides notifications that are irrelevant to Chrome OS device factory testing, 81 // Hides notifications that are irrelevant to Chrome OS device factory testing,
89 // such as battery level updates. 82 // such as battery level updates.
90 const char kAshHideNotificationsForFactory[] = 83 const char kAshHideNotificationsForFactory[] =
91 "ash-hide-notifications-for-factory"; 84 "ash-hide-notifications-for-factory";
92 85
93 // Specifies if Material Design elements in Chrome OS system UI are enabled. 86 // Specifies if Material Design elements in Chrome OS system UI are enabled.
94 // Can be disabled / enabled / experimental allowing to launch incrementally. 87 // Can be disabled / enabled / experimental allowing to launch incrementally.
95 const char kAshMaterialDesign[] = "ash-md"; 88 const char kAshMaterialDesign[] = "ash-md";
96 const char kAshMaterialDesignDisabled[] = "disabled"; 89 const char kAshMaterialDesignDisabled[] = "disabled";
97 const char kAshMaterialDesignEnabled[] = "enabled"; 90 const char kAshMaterialDesignEnabled[] = "enabled";
98 const char kAshMaterialDesignExperimental[] = "experimental"; 91 const char kAshMaterialDesignExperimental[] = "experimental";
99 92
100 // Specifies a maximum number of preview windows in overview mode that still
101 // allows using mask layers to hide the original window header and use rounded
102 // corners.
103 const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask";
104
105 // Specifies a maximum number of preview windows in overview mode that still
106 // allows using alpha shapes to hide the original window header.
107 const char kAshMaxWindowsToUseShapeInOverview[] =
108 "ash-max-previews-to-use-shape";
109
110 // Enables the heads-up display for tracking touch points. 93 // Enables the heads-up display for tracking touch points.
111 const char kAshTouchHud[] = "ash-touch-hud"; 94 const char kAshTouchHud[] = "ash-touch-hud";
112 95
113 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 96 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
114 // Standard hardware reports releases immediately after presses. If set, we 97 // Standard hardware reports releases immediately after presses. If set, we
115 // lock the screen or shutdown the system immediately in response to a press 98 // lock the screen or shutdown the system immediately in response to a press
116 // instead of displaying an interactive animation. 99 // instead of displaying an interactive animation.
117 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 100 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
118 101
119 #if defined(OS_CHROMEOS) 102 #if defined(OS_CHROMEOS)
120 // Constrains the pointer movement within a root window on desktop. 103 // Constrains the pointer movement within a root window on desktop.
121 bool ConstrainPointerToRoot() { 104 bool ConstrainPointerToRoot() {
122 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 105 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
123 106
124 return base::SysInfo::IsRunningOnChromeOS() || 107 return base::SysInfo::IsRunningOnChromeOS() ||
125 base::CommandLine::ForCurrentProcess()->HasSwitch( 108 base::CommandLine::ForCurrentProcess()->HasSwitch(
126 kAshConstrainPointerToRoot); 109 kAshConstrainPointerToRoot);
127 } 110 }
128 111
129 #endif 112 #endif
130 113
131 } // namespace switches 114 } // namespace switches
132 } // namespace ash 115 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698