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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const char kAshDisableAlternateFrameCaptionButtonStyle[] = | 43 const char kAshDisableAlternateFrameCaptionButtonStyle[] = |
44 "ash-disable-alternate-caption-button"; | 44 "ash-disable-alternate-caption-button"; |
45 | 45 |
46 // Disable the alternate shelf layout. | 46 // Disable the alternate shelf layout. |
47 const char kAshDisableAlternateShelfLayout[] = | 47 const char kAshDisableAlternateShelfLayout[] = |
48 "ash-disable-alternate-shelf-layout"; | 48 "ash-disable-alternate-shelf-layout"; |
49 | 49 |
50 // Disable ability to dock windows at the desktop edge. | 50 // Disable ability to dock windows at the desktop edge. |
51 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; | 51 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; |
52 | 52 |
53 // Disables overview mode for window switching. | |
54 const char kAshDisableOverviewMode[] = "ash-disable-overview-mode"; | |
55 | |
56 // Enable advanced gestures (e.g. for window management). | 53 // Enable advanced gestures (e.g. for window management). |
57 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; | 54 const char kAshEnableAdvancedGestures[] = "ash-enable-advanced-gestures"; |
58 | 55 |
59 // Use alternate visual style for the caption buttons (minimize, maximize, | 56 // Use alternate visual style for the caption buttons (minimize, maximize, |
60 // restore, close). The alternate style: | 57 // restore, close). The alternate style: |
61 // - Adds a dedicated button for minimize. | 58 // - Adds a dedicated button for minimize. |
62 // - Removes the maximize button's help bubble. | 59 // - Removes the maximize button's help bubble. |
63 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | 60 const char kAshEnableAlternateFrameCaptionButtonStyle[] = |
64 "ash-enable-alternate-caption-button"; | 61 "ash-enable-alternate-caption-button"; |
65 | 62 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 bool UseAlternateShelfLayout() { | 151 bool UseAlternateShelfLayout() { |
155 return !CommandLine::ForCurrentProcess()-> | 152 return !CommandLine::ForCurrentProcess()-> |
156 HasSwitch(kAshDisableAlternateShelfLayout); | 153 HasSwitch(kAshDisableAlternateShelfLayout); |
157 } | 154 } |
158 | 155 |
159 bool UseImmersiveFullscreenForAllWindows() { | 156 bool UseImmersiveFullscreenForAllWindows() { |
160 return !CommandLine::ForCurrentProcess()->HasSwitch( | 157 return !CommandLine::ForCurrentProcess()->HasSwitch( |
161 kAshEnableImmersiveFullscreenForBrowserOnly); | 158 kAshEnableImmersiveFullscreenForBrowserOnly); |
162 } | 159 } |
163 | 160 |
164 bool UseOverviewMode() { | |
165 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableOverviewMode); | |
166 } | |
167 | |
168 bool UseDockedWindows() { | 161 bool UseDockedWindows() { |
169 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 162 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
170 } | 163 } |
171 | 164 |
172 } // namespace switches | 165 } // namespace switches |
173 } // namespace ash | 166 } // namespace ash |
OLD | NEW |