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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // instead of displaying an interactive animation. | 131 // instead of displaying an interactive animation. |
132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 132 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
133 | 133 |
134 #if defined(OS_WIN) | 134 #if defined(OS_WIN) |
135 // Force Ash to open its root window on the desktop, even on Windows 8 where | 135 // Force Ash to open its root window on the desktop, even on Windows 8 where |
136 // it would normally end up in metro. | 136 // it would normally end up in metro. |
137 const char kForceAshToDesktop[] = "ash-force-desktop"; | 137 const char kForceAshToDesktop[] = "ash-force-desktop"; |
138 | 138 |
139 #endif | 139 #endif |
140 | 140 |
141 // Allow items to be dragged from the app launcher list into the launcher. | 141 // Disallow items to be dragged from the app launcher list into the launcher. |
142 const char kAshDragAndDropAppListToLauncher[] = | 142 const char kAshDisableDragAndDropAppListToLauncher[] = |
143 "ash-drag-and-drop-applist-to-launcher"; | 143 "ash-disable-drag-and-drop-applist-to-launcher"; |
144 | 144 |
145 // Enables a mode which enforces all browser & application windows to be created | 145 // Enables a mode which enforces all browser & application windows to be created |
146 // in maximized mode. | 146 // in maximized mode. |
147 const char kForcedMaximizeMode[] = "forced-maximize-mode"; | 147 const char kForcedMaximizeMode[] = "forced-maximize-mode"; |
148 | 148 |
149 bool UseNewAudioHandler() { | 149 bool UseNewAudioHandler() { |
150 return !CommandLine::ForCurrentProcess()-> | 150 return !CommandLine::ForCurrentProcess()-> |
151 HasSwitch(ash::switches::kAshDisableNewAudioHandler); | 151 HasSwitch(ash::switches::kAshDisableNewAudioHandler); |
152 } | 152 } |
153 | 153 |
154 bool ShowAudioDeviceMenu() { | 154 bool ShowAudioDeviceMenu() { |
155 return ash::switches::UseNewAudioHandler() && | 155 return ash::switches::UseNewAudioHandler() && |
156 CommandLine::ForCurrentProcess()-> | 156 CommandLine::ForCurrentProcess()-> |
157 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); | 157 HasSwitch(ash::switches::kAshEnableAudioDeviceMenu); |
158 } | 158 } |
159 | 159 |
160 } // namespace switches | 160 } // namespace switches |
161 } // namespace ash | 161 } // namespace ash |
OLD | NEW |