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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 } | 249 } |
250 | 250 |
251 bool UseOverviewMode() { | 251 bool UseOverviewMode() { |
252 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | 252 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); |
253 } | 253 } |
254 | 254 |
255 bool UseDockedWindows() { | 255 bool UseDockedWindows() { |
256 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 256 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
257 } | 257 } |
258 | 258 |
| 259 #if defined(OS_CHROMEOS) |
259 bool ShowAudioDeviceMenu() { | 260 bool ShowAudioDeviceMenu() { |
260 #if defined(OS_CHROMEOS) | |
261 return !CommandLine::ForCurrentProcess()-> | 261 return !CommandLine::ForCurrentProcess()-> |
262 HasSwitch(kAshDisableAudioDeviceMenu); | 262 HasSwitch(kAshDisableAudioDeviceMenu); |
263 #else | |
264 return false; | |
265 #endif | |
266 } | 263 } |
267 | 264 |
268 #if defined(OS_CHROMEOS) | |
269 bool UseUsbChargerNotification() { | 265 bool UseUsbChargerNotification() { |
270 return !CommandLine::ForCurrentProcess()-> | 266 return !CommandLine::ForCurrentProcess()-> |
271 HasSwitch(kAshDisableUsbChargerNotification); | 267 HasSwitch(kAshDisableUsbChargerNotification); |
272 } | 268 } |
273 #endif | 269 #endif |
274 | 270 |
275 } // namespace switches | 271 } // namespace switches |
276 } // namespace ash | 272 } // namespace ash |
OLD | NEW |