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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // such as battery level updates. | 136 // such as battery level updates. |
137 const char kAshHideNotificationsForFactory[] = | 137 const char kAshHideNotificationsForFactory[] = |
138 "ash-hide-notifications-for-factory"; | 138 "ash-hide-notifications-for-factory"; |
139 | 139 |
140 // Sets a window size, optional position, and optional scale factor. | 140 // Sets a window size, optional position, and optional scale factor. |
141 // "1024x768" creates a window of size 1024x768. | 141 // "1024x768" creates a window of size 1024x768. |
142 // "100+200-1024x768" positions the window at 100,200. | 142 // "100+200-1024x768" positions the window at 100,200. |
143 // "1024x768*2" sets the scale factor to 2 for a high DPI display. | 143 // "1024x768*2" sets the scale factor to 2 for a high DPI display. |
144 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; | 144 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; |
145 | 145 |
146 // OEM-supplied wallpaper (as paths to trusted, non-user-writable JPEG files). | |
147 // TODO(derat): Remove these switches once OEM wallpaper is passed via | |
148 // kAshDefaultWallpaper{Large,Small} and kAshDefaultWallpaperIsOem is set | |
149 // correctly: http://crbug.com/315267 | |
150 const char kAshOemWallpaperLarge[] = "ash-oem-wallpaper-large"; | |
151 const char kAshOemWallpaperSmall[] = "ash-oem-wallpaper-small"; | |
152 | |
153 // Specifies the delay in milliseconds before beginning overview mode after | 146 // Specifies the delay in milliseconds before beginning overview mode after |
154 // getting an alt tab keypress. | 147 // getting an alt tab keypress. |
155 const char kAshOverviewDelayOnAltTab[] = "ash-overview-delay-on-alt-tab"; | 148 const char kAshOverviewDelayOnAltTab[] = "ash-overview-delay-on-alt-tab"; |
156 | 149 |
157 // Specifies the layout mode and offsets for the secondary display for | 150 // Specifies the layout mode and offsets for the secondary display for |
158 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | 151 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
159 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | 152 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
160 // is positioned on the right with -100 offset. (above than primary) | 153 // is positioned on the right with -100 offset. (above than primary) |
161 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; | 154 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
162 | 155 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 235 } |
243 | 236 |
244 bool UseUsbChargerNotification() { | 237 bool UseUsbChargerNotification() { |
245 return !CommandLine::ForCurrentProcess()-> | 238 return !CommandLine::ForCurrentProcess()-> |
246 HasSwitch(kAshDisableUsbChargerNotification); | 239 HasSwitch(kAshDisableUsbChargerNotification); |
247 } | 240 } |
248 #endif | 241 #endif |
249 | 242 |
250 } // namespace switches | 243 } // namespace switches |
251 } // namespace ash | 244 } // namespace ash |
OLD | NEW |