OLD | NEW |
---|---|
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/ash_switches.h" | 5 #include "ash/ash_switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 namespace switches { | 10 namespace switches { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 // This is for debugging on linux desktop. | 117 // This is for debugging on linux desktop. |
118 const char kAshUseFirstDisplayAsInternal[] = | 118 const char kAshUseFirstDisplayAsInternal[] = |
119 "ash-use-first-display-as-internal"; | 119 "ash-use-first-display-as-internal"; |
120 | 120 |
121 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 121 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
122 // Standard hardware reports releases immediately after presses. If set, we | 122 // Standard hardware reports releases immediately after presses. If set, we |
123 // lock the screen or shutdown the system immediately in response to a press | 123 // lock the screen or shutdown the system immediately in response to a press |
124 // instead of displaying an interactive animation. | 124 // instead of displaying an interactive animation. |
125 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 125 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
126 | 126 |
127 // The path to the png file used as an user image. For developers only. | |
128 const char kAshUserImagePath[] = "ash-user-image-path"; | |
Mr4D (OOO till 08-26)
2014/03/14 22:01:30
Wouldn't you get that from the profile?
| |
129 | |
127 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
128 // Force Ash to open its root window on the desktop, even on Windows 8 where | 131 // Force Ash to open its root window on the desktop, even on Windows 8 where |
129 // it would normally end up in metro. | 132 // it would normally end up in metro. |
130 const char kForceAshToDesktop[] = "ash-force-desktop"; | 133 const char kForceAshToDesktop[] = "ash-force-desktop"; |
131 | 134 |
132 #endif | 135 #endif |
133 | 136 |
134 bool UseAlternateFrameCaptionButtonStyle() { | 137 bool UseAlternateFrameCaptionButtonStyle() { |
135 return !CommandLine::ForCurrentProcess()-> | 138 return !CommandLine::ForCurrentProcess()-> |
136 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); | 139 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); |
137 } | 140 } |
138 | 141 |
139 bool UseAlternateShelfLayout() { | 142 bool UseAlternateShelfLayout() { |
140 return !CommandLine::ForCurrentProcess()-> | 143 return !CommandLine::ForCurrentProcess()-> |
141 HasSwitch(kAshDisableAlternateShelfLayout); | 144 HasSwitch(kAshDisableAlternateShelfLayout); |
142 } | 145 } |
143 | 146 |
144 bool UseDockedWindows() { | 147 bool UseDockedWindows() { |
145 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 148 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
146 } | 149 } |
147 | 150 |
148 } // namespace switches | 151 } // namespace switches |
149 } // namespace ash | 152 } // namespace ash |
OLD | NEW |