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

Side by Side Diff: ash/ash_switches.cc

Issue 17157007: cros: Show notification when low-power charger connected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash_switches.h ('k') | ash/system/chromeos/power/tray_power.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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
OLDNEW
« no previous file with comments | « ash/ash_switches.h ('k') | ash/system/chromeos/power/tray_power.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698