Chromium Code Reviews| 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/common/ash_switches.h" | 5 #include "ash/common/ash_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 | 9 |
| 10 namespace ash { | 10 namespace ash { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; | 62 const char kAshEnableMirroredScreen[] = "ash-enable-mirrored-screen"; |
| 63 | 63 |
| 64 // Specifies the estimated time (in milliseconds) from VSYNC event until when | 64 // Specifies the estimated time (in milliseconds) from VSYNC event until when |
| 65 // visible light can be noticed by the user. | 65 // visible light can be noticed by the user. |
| 66 const char kAshEstimatedPresentationDelay[] = | 66 const char kAshEstimatedPresentationDelay[] = |
| 67 "ash-estimated-presentation-delay"; | 67 "ash-estimated-presentation-delay"; |
| 68 | 68 |
| 69 // Enables the palette next to the status area. | 69 // Enables the palette next to the status area. |
| 70 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; | 70 const char kAshForceEnablePalette[] = "ash-force-enable-palette"; |
| 71 | 71 |
| 72 // Enables required things for the selected UI mode, regardless of whether the | |
| 73 // chromebook is currently in the selected UI mode. | |
|
Daniel Erat
2017/03/28 19:30:12
nit: Chromebook
sammiequon
2017/03/28 20:32:00
Done.
| |
| 74 const char kAshForceTabletMode[] = "force-tablet-mode"; | |
| 75 | |
| 76 // Values for the kAshForceTabletMode flag. | |
| 77 const char kAshForceTabletModeAuto[] = "auto"; | |
| 78 const char kAshForceTabletModeClamshell[] = "clamshell"; | |
| 79 const char kAshForceTabletModeTouchView[] = "touch_view"; | |
| 80 | |
| 72 // Hides notifications that are irrelevant to Chrome OS device factory testing, | 81 // Hides notifications that are irrelevant to Chrome OS device factory testing, |
| 73 // such as battery level updates. | 82 // such as battery level updates. |
| 74 const char kAshHideNotificationsForFactory[] = | 83 const char kAshHideNotificationsForFactory[] = |
| 75 "ash-hide-notifications-for-factory"; | 84 "ash-hide-notifications-for-factory"; |
| 76 | 85 |
| 77 // Enables the shelf color to be derived from the wallpaper. | 86 // Enables the shelf color to be derived from the wallpaper. |
| 78 const char kAshShelfColor[] = "ash-shelf-color"; | 87 const char kAshShelfColor[] = "ash-shelf-color"; |
| 79 const char kAshShelfColorLightMuted[] = "light_muted"; | 88 const char kAshShelfColorLightMuted[] = "light_muted"; |
| 80 const char kAshShelfColorLightVibrant[] = "light_vibrant"; | 89 const char kAshShelfColorLightVibrant[] = "light_vibrant"; |
| 81 const char kAshShelfColorNormalMuted[] = "normal_muted"; | 90 const char kAshShelfColorNormalMuted[] = "normal_muted"; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 96 bool ConstrainPointerToRoot() { | 105 bool ConstrainPointerToRoot() { |
| 97 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; | 106 const char kAshConstrainPointerToRoot[] = "ash-constrain-pointer-to-root"; |
| 98 | 107 |
| 99 return base::SysInfo::IsRunningOnChromeOS() || | 108 return base::SysInfo::IsRunningOnChromeOS() || |
| 100 base::CommandLine::ForCurrentProcess()->HasSwitch( | 109 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 101 kAshConstrainPointerToRoot); | 110 kAshConstrainPointerToRoot); |
| 102 } | 111 } |
| 103 | 112 |
| 104 } // namespace switches | 113 } // namespace switches |
| 105 } // namespace ash | 114 } // namespace ash |
| OLD | NEW |