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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // Disable immersive fullscreen mode, regardless of default setting. | 56 // Disable immersive fullscreen mode, regardless of default setting. |
57 const char kAshDisableImmersiveFullscreen[] = | 57 const char kAshDisableImmersiveFullscreen[] = |
58 "ash-disable-immersive-fullscreen"; | 58 "ash-disable-immersive-fullscreen"; |
59 | 59 |
60 // Disables ui scaling. | 60 // Disables ui scaling. |
61 const char kAshDisableUIScaling[] = "ash-disable-ui-scaling"; | 61 const char kAshDisableUIScaling[] = "ash-disable-ui-scaling"; |
62 | 62 |
63 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
64 // Disable compositor based mirroring. | 64 // Disable compositor based mirroring. |
65 const char kAshDisableSoftwareMirroring[] = "ash-disable-software-mirroring"; | 65 const char kAshDisableSoftwareMirroring[] = "ash-disable-software-mirroring"; |
| 66 |
| 67 // Disable the notification when a low-power USB charger is connected. |
| 68 const char kAshDisableUsbChargerNotification[] = |
| 69 "ash-disable-usb-charger-notification"; |
66 #endif | 70 #endif |
67 | 71 |
68 // Extend the status tray volume item to allow the user to choose an audio | 72 // Extend the status tray volume item to allow the user to choose an audio |
69 // input and output device. | 73 // input and output device. |
70 const char kAshEnableAudioDeviceMenu[] = | 74 const char kAshEnableAudioDeviceMenu[] = |
71 "ash-enable-audio-device-menu"; | 75 "ash-enable-audio-device-menu"; |
72 | 76 |
73 // Enable advanced gestures (e.g. for window management). | 77 // Enable advanced gestures (e.g. for window management). |
74 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; | 78 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; |
75 | 79 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return ash::switches::UseNewAudioHandler() && | 175 return ash::switches::UseNewAudioHandler() && |
172 CommandLine::ForCurrentProcess()-> | 176 CommandLine::ForCurrentProcess()-> |
173 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); | 177 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); |
174 } | 178 } |
175 | 179 |
176 bool UseAlternateShelfLayout() { | 180 bool UseAlternateShelfLayout() { |
177 return CommandLine::ForCurrentProcess()-> | 181 return CommandLine::ForCurrentProcess()-> |
178 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); | 182 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); |
179 } | 183 } |
180 | 184 |
| 185 #if defined(OS_CHROMEOS) |
| 186 bool UseUsbChargerNotification() { |
| 187 return !CommandLine::ForCurrentProcess()-> |
| 188 HasSwitch(ash::switches::kAshDisableUsbChargerNotification); |
| 189 } |
| 190 #endif |
| 191 |
181 } // namespace switches | 192 } // namespace switches |
182 } // namespace ash | 193 } // namespace ash |
OLD | NEW |