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

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

Issue 2314853003: Move ash::DisplayManager switches to ui::display (Closed)
Patch Set: Created 4 years, 3 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 "ash-disable-touch-exploration-mode"; 44 "ash-disable-touch-exploration-mode";
45 45
46 #if defined(OS_CHROMEOS) 46 #if defined(OS_CHROMEOS)
47 // Enables fullscreen app list if Ash is in maximize mode. 47 // Enables fullscreen app list if Ash is in maximize mode.
48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list"; 48 const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
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 unified desktop mode.
55 const char kAshEnableUnifiedDesktop[] = "ash-enable-unified-desktop";
56
57 // Enables the palette next to the status area. 54 // Enables the palette next to the status area.
58 const char kAshEnablePalette[] = "ash-enable-palette"; 55 const char kAshEnablePalette[] = "ash-enable-palette";
59 56
60 // Enables experimental ash palette tools. 57 // Enables experimental ash palette tools.
61 const char kAshEnableExperimentalPaletteFeatures[] = 58 const char kAshEnableExperimentalPaletteFeatures[] =
62 "ash-enable-experimental-palette-features"; 59 "ash-enable-experimental-palette-features";
63 #endif 60 #endif
64 61
65 // Enables the observation of accelerometer events to enter touch-view mode. 62 // Enables the observation of accelerometer events to enter touch-view mode.
66 const char kAshEnableTouchView[] = "enable-touchview"; 63 const char kAshEnableTouchView[] = "enable-touchview";
67 64
68 // Enables mirrored screen. 65 // Enables mirrored screen.
69 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; 66 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen";
70 67
71 // Enables / disables a stable order between overview sessions, independent of 68 // Enables / disables a stable order between overview sessions, independent of
72 // the MRU order which attempts to preserve relative window positions. 69 // the MRU order which attempts to preserve relative window positions.
73 const char kAshDisableStableOverviewOrder[] = 70 const char kAshDisableStableOverviewOrder[] =
74 "ash-disable-stable-overview-order"; 71 "ash-disable-stable-overview-order";
75 const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order"; 72 const char kAshEnableStableOverviewOrder[] = "ash-enable-stable-overview-order";
76 73
77 // Enables software based mirroring.
78 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring";
79 74
80 // Enables touch view testing. 75 // Enables touch view testing.
81 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is 76 // TODO(skuhne): Remove DEBUG_TOGGLE_TOUCH_VIEW accelerator once this flag is
82 // removed. 77 // removed.
83 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing"; 78 const char kAshEnableTouchViewTesting[] = "ash-enable-touch-view-testing";
84 79
85 // Hides notifications that are irrelevant to Chrome OS device factory testing, 80 // Hides notifications that are irrelevant to Chrome OS device factory testing,
86 // such as battery level updates. 81 // such as battery level updates.
87 const char kAshHideNotificationsForFactory[] = 82 const char kAshHideNotificationsForFactory[] =
88 "ash-hide-notifications-for-factory"; 83 "ash-hide-notifications-for-factory";
89 84
90 // Sets a window size, optional position, and optional scale factor.
91 // "1024x768" creates a window of size 1024x768.
92 // "100+200-1024x768" positions the window at 100,200.
93 // "1024x768*2" sets the scale factor to 2 for a high DPI display.
94 // "800,0+800-800x800" for two displays at 800x800 resolution.
95 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution.
96 const char kAshHostWindowBounds[] = "ash-host-window-bounds";
97
98 // Specifies if Material Design elements in Chrome OS system UI are enabled. 85 // Specifies if Material Design elements in Chrome OS system UI are enabled.
99 // Can be disabled / enabled / experimental allowing to launch incrementally. 86 // Can be disabled / enabled / experimental allowing to launch incrementally.
100 const char kAshMaterialDesign[] = "ash-md"; 87 const char kAshMaterialDesign[] = "ash-md";
101 const char kAshMaterialDesignDisabled[] = "disabled"; 88 const char kAshMaterialDesignDisabled[] = "disabled";
102 const char kAshMaterialDesignEnabled[] = "enabled"; 89 const char kAshMaterialDesignEnabled[] = "enabled";
103 const char kAshMaterialDesignExperimental[] = "experimental"; 90 const char kAshMaterialDesignExperimental[] = "experimental";
104 91
105 // Specifies a maximum number of preview windows in overview mode that still 92 // Specifies a maximum number of preview windows in overview mode that still
106 // allows using mask layers to hide the original window header and use rounded 93 // allows using mask layers to hide the original window header and use rounded
107 // corners. 94 // corners.
108 const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask"; 95 const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask";
109 96
110 // Specifies a maximum number of preview windows in overview mode that still 97 // Specifies a maximum number of preview windows in overview mode that still
111 // allows using alpha shapes to hide the original window header. 98 // allows using alpha shapes to hide the original window header.
112 const char kAshMaxWindowsToUseShapeInOverview[] = 99 const char kAshMaxWindowsToUseShapeInOverview[] =
113 "ash-max-previews-to-use-shape"; 100 "ash-max-previews-to-use-shape";
114 101
115 // Enables the heads-up display for tracking touch points. 102 // Enables the heads-up display for tracking touch points.
116 const char kAshTouchHud[] = "ash-touch-hud"; 103 const char kAshTouchHud[] = "ash-touch-hud";
117 104
118 // Uses the 1st display in --ash-host-window-bounds as internal display.
119 // This is for debugging on linux desktop.
120 const char kAshUseFirstDisplayAsInternal[] =
121 "ash-use-first-display-as-internal";
122
123 // (Most) Chrome OS hardware reports ACPI power button releases correctly. 105 // (Most) Chrome OS hardware reports ACPI power button releases correctly.
124 // Standard hardware reports releases immediately after presses. If set, we 106 // Standard hardware reports releases immediately after presses. If set, we
125 // lock the screen or shutdown the system immediately in response to a press 107 // lock the screen or shutdown the system immediately in response to a press
126 // instead of displaying an interactive animation. 108 // instead of displaying an interactive animation.
127 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; 109 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button";
128 110
129 #if defined(OS_WIN) 111 #if defined(OS_WIN)
130 // Force Ash to open its root window on the desktop, even on Windows 8 where 112 // Force Ash to open its root window on the desktop, even on Windows 8 where
131 // it would normally end up in metro. 113 // it would normally end up in metro.
132 const char kForceAshToDesktop[] = "ash-force-desktop"; 114 const char kForceAshToDesktop[] = "ash-force-desktop";
133 115
134 #endif 116 #endif
135 117
136 #if defined(OS_CHROMEOS) 118 #if defined(OS_CHROMEOS)
137 // Constrains the pointer movement within a root window on desktop. 119 // Constrains the pointer movement within a root window on desktop.
138 bool ConstrainPointerToRoot() { 120 bool ConstrainPointerToRoot() {
139 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; 121 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root";
140 122
141 return base::SysInfo::IsRunningOnChromeOS() || 123 return base::SysInfo::IsRunningOnChromeOS() ||
142 base::CommandLine::ForCurrentProcess()->HasSwitch( 124 base::CommandLine::ForCurrentProcess()->HasSwitch(
143 kAshConstrainPointerToRoot); 125 kAshConstrainPointerToRoot);
144 } 126 }
145 127
146 #endif 128 #endif
147 129
148 } // namespace switches 130 } // namespace switches
149 } // namespace ash 131 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698