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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 // Specifies the layout mode and offsets for the secondary display for | 114 // Specifies the layout mode and offsets for the secondary display for |
115 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | 115 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
116 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | 116 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
117 // is positioned on the right with -100 offset. (above than primary) | 117 // is positioned on the right with -100 offset. (above than primary) |
118 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; | 118 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
119 | 119 |
120 // Enables the heads-up display for tracking touch points. | 120 // Enables the heads-up display for tracking touch points. |
121 const char kAshTouchHud[] = "ash-touch-hud"; | 121 const char kAshTouchHud[] = "ash-touch-hud"; |
122 | 122 |
| 123 // Use alternate layout of the shelf for testing a new look and feel: |
| 124 // Slightly smaller profile, only 2 states for the "bar highlight" on |
| 125 // launcher buttons, app list icon with more visible state indication, |
| 126 // app list icon repositionable and defaulting as 1st item in shelf, |
| 127 // more visible state indication for background on status area. |
| 128 // crbug's [244983, 244990, 244994, 245005, 245012] |
| 129 const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf"; |
| 130 |
123 // Uses the 1st display in --ash-host-window-bounds as internal display. | 131 // Uses the 1st display in --ash-host-window-bounds as internal display. |
124 // This is for debugging on linux desktop. | 132 // This is for debugging on linux desktop. |
125 const char kAshUseFirstDisplayAsInternal[] = | 133 const char kAshUseFirstDisplayAsInternal[] = |
126 "ash-use-first-display-as-internal"; | 134 "ash-use-first-display-as-internal"; |
127 | 135 |
128 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 136 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
129 // Standard hardware reports releases immediately after presses. If set, we | 137 // Standard hardware reports releases immediately after presses. If set, we |
130 // lock the screen or shutdown the system immediately in response to a press | 138 // lock the screen or shutdown the system immediately in response to a press |
131 // instead of displaying an interactive animation. | 139 // instead of displaying an interactive animation. |
132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 140 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
(...skipping 17 matching lines...) Expand all Loading... |
150 return !CommandLine::ForCurrentProcess()-> | 158 return !CommandLine::ForCurrentProcess()-> |
151 HasSwitch(ash::switches::kAshDisableNewAudioHandler); | 159 HasSwitch(ash::switches::kAshDisableNewAudioHandler); |
152 } | 160 } |
153 | 161 |
154 bool ShowAudioDeviceMenu() { | 162 bool ShowAudioDeviceMenu() { |
155 return ash::switches::UseNewAudioHandler() && | 163 return ash::switches::UseNewAudioHandler() && |
156 CommandLine::ForCurrentProcess()-> | 164 CommandLine::ForCurrentProcess()-> |
157 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); | 165 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); |
158 } | 166 } |
159 | 167 |
| 168 bool UseAlternateShelfLayout() { |
| 169 return CommandLine::ForCurrentProcess()-> |
| 170 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); |
| 171 } |
| 172 |
160 } // namespace switches | 173 } // namespace switches |
161 } // namespace ash | 174 } // namespace ash |
OLD | NEW |