| 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 26 matching lines...) Expand all Loading... |
| 37 // non-user-writable JPEG files). | 37 // non-user-writable JPEG files). |
| 38 const char kAshDefaultGuestWallpaperLarge[] = | 38 const char kAshDefaultGuestWallpaperLarge[] = |
| 39 "ash-default-guest-wallpaper-large"; | 39 "ash-default-guest-wallpaper-large"; |
| 40 const char kAshDefaultGuestWallpaperSmall[] = | 40 const char kAshDefaultGuestWallpaperSmall[] = |
| 41 "ash-default-guest-wallpaper-small"; | 41 "ash-default-guest-wallpaper-small"; |
| 42 | 42 |
| 43 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). | 43 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). |
| 44 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; | 44 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; |
| 45 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; | 45 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; |
| 46 | 46 |
| 47 // Disable the alternate shelf layout. |
| 48 const char kAshDisableAlternateShelfLayout[] = |
| 49 "ash-disable-alternate-shelf-layout"; |
| 50 |
| 47 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
| 48 // Disable the status tray volume menu for allowing the user to choose an audio | 52 // Disable the status tray volume menu for allowing the user to choose an audio |
| 49 // input and output device. | 53 // input and output device. |
| 50 const char kAshDisableAudioDeviceMenu[] = | 54 const char kAshDisableAudioDeviceMenu[] = |
| 51 "ash-disable-audio-device-menu"; | 55 "ash-disable-audio-device-menu"; |
| 52 #endif | 56 #endif |
| 53 | 57 |
| 54 // Disable auto window maximization logic. | 58 // Disable auto window maximization logic. |
| 55 const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing"; | 59 const char kAshDisableAutoMaximizing[] = "ash-disable-auto-maximizing"; |
| 56 | 60 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 181 |
| 178 // Disallow items to be dragged from the app launcher list into the launcher. | 182 // Disallow items to be dragged from the app launcher list into the launcher. |
| 179 const char kAshDisableDragAndDropAppListToLauncher[] = | 183 const char kAshDisableDragAndDropAppListToLauncher[] = |
| 180 "ash-disable-drag-and-drop-applist-to-launcher"; | 184 "ash-disable-drag-and-drop-applist-to-launcher"; |
| 181 | 185 |
| 182 // Enables a mode which enforces all browser & application windows to be created | 186 // Enables a mode which enforces all browser & application windows to be created |
| 183 // in maximized mode. | 187 // in maximized mode. |
| 184 const char kForcedMaximizeMode[] = "forced-maximize-mode"; | 188 const char kForcedMaximizeMode[] = "forced-maximize-mode"; |
| 185 | 189 |
| 186 bool UseAlternateShelfLayout() { | 190 bool UseAlternateShelfLayout() { |
| 187 return CommandLine::ForCurrentProcess()-> | 191 return !CommandLine::ForCurrentProcess()-> |
| 188 HasSwitch(ash::switches::kAshUseAlternateShelfLayout); | 192 HasSwitch(ash::switches::kAshDisableAlternateShelfLayout); |
| 189 } | 193 } |
| 190 | 194 |
| 191 bool ShowShelfAlignmentMenu() { | 195 bool ShowShelfAlignmentMenu() { |
| 192 return CommandLine::ForCurrentProcess()-> | 196 return !CommandLine::ForCurrentProcess()-> |
| 193 HasSwitch(switches::kShowShelfAlignmentMenu); | 197 HasSwitch(switches::kHideShelfAlignmentMenu); |
| 194 } | 198 } |
| 195 | 199 |
| 196 #if defined(OS_CHROMEOS) | 200 #if defined(OS_CHROMEOS) |
| 197 bool ShowAudioDeviceMenu() { | 201 bool ShowAudioDeviceMenu() { |
| 198 return !CommandLine::ForCurrentProcess()-> | 202 return !CommandLine::ForCurrentProcess()-> |
| 199 HasSwitch(ash::switches::kAshDisableAudioDeviceMenu); | 203 HasSwitch(ash::switches::kAshDisableAudioDeviceMenu); |
| 200 } | 204 } |
| 201 | 205 |
| 202 bool UseUsbChargerNotification() { | 206 bool UseUsbChargerNotification() { |
| 203 return !CommandLine::ForCurrentProcess()-> | 207 return !CommandLine::ForCurrentProcess()-> |
| 204 HasSwitch(ash::switches::kAshDisableUsbChargerNotification); | 208 HasSwitch(ash::switches::kAshDisableUsbChargerNotification); |
| 205 } | 209 } |
| 206 #endif | 210 #endif |
| 207 | 211 |
| 208 } // namespace switches | 212 } // namespace switches |
| 209 } // namespace ash | 213 } // namespace ash |
| OLD | NEW |