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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // restore, close). The alternate style: | 63 // restore, close). The alternate style: |
64 // - Adds a dedicated button for minimize. | 64 // - Adds a dedicated button for minimize. |
65 // - Removes the maximize button's help bubble. | 65 // - Removes the maximize button's help bubble. |
66 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | 66 const char kAshEnableAlternateFrameCaptionButtonStyle[] = |
67 "ash-enable-alternate-caption-button"; | 67 "ash-enable-alternate-caption-button"; |
68 | 68 |
69 // Always enable brightness control. Used by machines that don't report their | 69 // Always enable brightness control. Used by machines that don't report their |
70 // main monitor as internal. | 70 // main monitor as internal. |
71 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; | 71 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
72 | 72 |
73 // Enables putting all windows into immersive fullscreen via <F4>. | |
74 const char kAshEnableImmersiveFullscreenForAllWindows[] = | |
75 "ash-enable-immersive-all-windows"; | |
76 | |
77 // Enables putting only browser windows into immersive fullscreen via <F4>. | |
78 // <F4> puts all other windows into non-immersive fullscreen. | |
79 const char kAshEnableImmersiveFullscreenForBrowserOnly[] = | |
80 "ash-enable-immersive-browser-only"; | |
81 | |
82 #if defined(OS_CHROMEOS) | 73 #if defined(OS_CHROMEOS) |
83 // Enables key bindings to scroll magnified screen. | 74 // Enables key bindings to scroll magnified screen. |
84 const char kAshEnableMagnifierKeyScroller[] = | 75 const char kAshEnableMagnifierKeyScroller[] = |
85 "ash-enable-magnifier-key-scroller"; | 76 "ash-enable-magnifier-key-scroller"; |
86 #endif | 77 #endif |
87 | 78 |
88 // Enables software based mirroring. | 79 // Enables software based mirroring. |
89 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | 80 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
90 | 81 |
91 // Enables touch view testing. | 82 // Enables touch view testing. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // it would normally end up in metro. | 130 // it would normally end up in metro. |
140 const char kForceAshToDesktop[] = "ash-force-desktop"; | 131 const char kForceAshToDesktop[] = "ash-force-desktop"; |
141 | 132 |
142 #endif | 133 #endif |
143 | 134 |
144 bool UseAlternateFrameCaptionButtonStyle() { | 135 bool UseAlternateFrameCaptionButtonStyle() { |
145 return !CommandLine::ForCurrentProcess()-> | 136 return !CommandLine::ForCurrentProcess()-> |
146 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); | 137 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); |
147 } | 138 } |
148 | 139 |
149 bool UseImmersiveFullscreenForAllWindows() { | |
150 return !CommandLine::ForCurrentProcess()->HasSwitch( | |
151 kAshEnableImmersiveFullscreenForBrowserOnly); | |
152 } | |
153 | |
154 bool UseOverviewMode() { | 140 bool UseOverviewMode() { |
155 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | 141 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); |
156 } | 142 } |
157 | 143 |
158 bool UseDockedWindows() { | 144 bool UseDockedWindows() { |
159 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 145 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
160 } | 146 } |
161 | 147 |
162 } // namespace switches | 148 } // namespace switches |
163 } // namespace ash | 149 } // namespace ash |
OLD | NEW |