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 // Enable the Touch Exploration Mode. Touch Exploration Mode will be turned on | 44 // Enable the Touch Exploration Mode. Touch Exploration Mode will be turned on |
50 // automatically when spoken feedback is enabled when this flag is set. | 45 // automatically when spoken feedback is enabled when this flag is set. |
51 const char kAshEnableTouchExplorationMode[] = | 46 const char kAshEnableTouchExplorationMode[] = |
52 "ash-enable-touch-exploration-mode"; | 47 "ash-enable-touch-exploration-mode"; |
53 | 48 |
54 // Use alternate visual style for the caption buttons (minimize, maximize, | |
55 // restore, close). The alternate style: | |
56 // - Adds a dedicated button for minimize. | |
57 // - Removes the maximize button's help bubble. | |
58 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | |
59 "ash-enable-alternate-caption-button"; | |
60 | |
61 #if defined(OS_CHROMEOS) | 49 #if defined(OS_CHROMEOS) |
62 // Enables key bindings to scroll magnified screen. | 50 // Enables key bindings to scroll magnified screen. |
63 const char kAshEnableMagnifierKeyScroller[] = | 51 const char kAshEnableMagnifierKeyScroller[] = |
64 "ash-enable-magnifier-key-scroller"; | 52 "ash-enable-magnifier-key-scroller"; |
65 #endif | 53 #endif |
66 | 54 |
67 // Enables software based mirroring. | 55 // Enables software based mirroring. |
68 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | 56 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
69 | 57 |
70 // Enables touch view testing. | 58 // Enables touch view testing. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // instead of displaying an interactive animation. | 103 // instead of displaying an interactive animation. |
116 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 104 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
117 | 105 |
118 #if defined(OS_WIN) | 106 #if defined(OS_WIN) |
119 // Force Ash to open its root window on the desktop, even on Windows 8 where | 107 // Force Ash to open its root window on the desktop, even on Windows 8 where |
120 // it would normally end up in metro. | 108 // it would normally end up in metro. |
121 const char kForceAshToDesktop[] = "ash-force-desktop"; | 109 const char kForceAshToDesktop[] = "ash-force-desktop"; |
122 | 110 |
123 #endif | 111 #endif |
124 | 112 |
125 bool UseAlternateFrameCaptionButtonStyle() { | |
126 return !CommandLine::ForCurrentProcess()-> | |
127 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); | |
128 } | |
129 | |
130 bool UseDockedWindows() { | 113 bool UseDockedWindows() { |
131 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 114 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
132 } | 115 } |
133 | 116 |
134 } // namespace switches | 117 } // namespace switches |
135 } // namespace ash | 118 } // namespace ash |
OLD | NEW |