| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Indicates that the wallpaper images specified by | 32 // Indicates that the wallpaper images specified by |
| 33 // kAshDefaultWallpaper{Large,Small} are OEM-specific (i.e. they are not | 33 // kAshDefaultWallpaper{Large,Small} are OEM-specific (i.e. they are not |
| 34 // downloadable from Google). | 34 // downloadable from Google). |
| 35 const char kAshDefaultWallpaperIsOem[] = "ash-default-wallpaper-is-oem"; | 35 const char kAshDefaultWallpaperIsOem[] = "ash-default-wallpaper-is-oem"; |
| 36 | 36 |
| 37 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). | 37 // Default wallpaper to use (as paths to trusted, non-user-writable JPEG files). |
| 38 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; | 38 const char kAshDefaultWallpaperLarge[] = "ash-default-wallpaper-large"; |
| 39 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; | 39 const char kAshDefaultWallpaperSmall[] = "ash-default-wallpaper-small"; |
| 40 | 40 |
| 41 // Use the normal visual style for the caption buttons (minimize, maximize, | |
| 42 // restore, close). | |
| 43 const char kAshDisableAlternateFrameCaptionButtonStyle[] = | |
| 44 "ash-disable-alternate-caption-button"; | |
| 45 | |
| 46 // Disable ability to dock windows at the desktop edge. | 41 // Disable ability to dock windows at the desktop edge. |
| 47 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; | 42 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; |
| 48 | 43 |
| 49 // Use alternate visual style for the caption buttons (minimize, maximize, | |
| 50 // restore, close). The alternate style: | |
| 51 // - Adds a dedicated button for minimize. | |
| 52 // - Removes the maximize button's help bubble. | |
| 53 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | |
| 54 "ash-enable-alternate-caption-button"; | |
| 55 | |
| 56 #if defined(OS_CHROMEOS) | 44 #if defined(OS_CHROMEOS) |
| 57 // Enables key bindings to scroll magnified screen. | 45 // Enables key bindings to scroll magnified screen. |
| 58 const char kAshEnableMagnifierKeyScroller[] = | 46 const char kAshEnableMagnifierKeyScroller[] = |
| 59 "ash-enable-magnifier-key-scroller"; | 47 "ash-enable-magnifier-key-scroller"; |
| 60 #endif | 48 #endif |
| 61 | 49 |
| 62 // Enables software based mirroring. | 50 // Enables software based mirroring. |
| 63 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | 51 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
| 64 | 52 |
| 65 // Enables touch view testing. | 53 // Enables touch view testing. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // instead of displaying an interactive animation. | 98 // instead of displaying an interactive animation. |
| 111 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 99 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
| 112 | 100 |
| 113 #if defined(OS_WIN) | 101 #if defined(OS_WIN) |
| 114 // Force Ash to open its root window on the desktop, even on Windows 8 where | 102 // Force Ash to open its root window on the desktop, even on Windows 8 where |
| 115 // it would normally end up in metro. | 103 // it would normally end up in metro. |
| 116 const char kForceAshToDesktop[] = "ash-force-desktop"; | 104 const char kForceAshToDesktop[] = "ash-force-desktop"; |
| 117 | 105 |
| 118 #endif | 106 #endif |
| 119 | 107 |
| 120 bool UseAlternateFrameCaptionButtonStyle() { | |
| 121 return !CommandLine::ForCurrentProcess()-> | |
| 122 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); | |
| 123 } | |
| 124 | |
| 125 bool UseDockedWindows() { | 108 bool UseDockedWindows() { |
| 126 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 109 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
| 127 } | 110 } |
| 128 | 111 |
| 129 } // namespace switches | 112 } // namespace switches |
| 130 } // namespace ash | 113 } // namespace ash |
| OLD | NEW |