| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // restore, close). The alternate style: | 54 // restore, close). The alternate style: |
| 55 // - Adds a dedicated button for minimize. | 55 // - Adds a dedicated button for minimize. |
| 56 // - Removes the maximize button's help bubble. | 56 // - Removes the maximize button's help bubble. |
| 57 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | 57 const char kAshEnableAlternateFrameCaptionButtonStyle[] = |
| 58 "ash-enable-alternate-caption-button"; | 58 "ash-enable-alternate-caption-button"; |
| 59 | 59 |
| 60 // Always enable brightness control. Used by machines that don't report their | 60 // Always enable brightness control. Used by machines that don't report their |
| 61 // main monitor as internal. | 61 // main monitor as internal. |
| 62 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; | 62 const char kAshEnableBrightnessControl[] = "ash-enable-brightness-control"; |
| 63 | 63 |
| 64 // Enables putting all windows into immersive fullscreen via <F4>. | |
| 65 const char kAshEnableImmersiveFullscreenForAllWindows[] = | |
| 66 "ash-enable-immersive-all-windows"; | |
| 67 | |
| 68 // Enables putting only browser windows into immersive fullscreen via <F4>. | |
| 69 // <F4> puts all other windows into non-immersive fullscreen. | |
| 70 const char kAshEnableImmersiveFullscreenForBrowserOnly[] = | |
| 71 "ash-enable-immersive-browser-only"; | |
| 72 | |
| 73 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
| 74 // Enables key bindings to scroll magnified screen. | 65 // Enables key bindings to scroll magnified screen. |
| 75 const char kAshEnableMagnifierKeyScroller[] = | 66 const char kAshEnableMagnifierKeyScroller[] = |
| 76 "ash-enable-magnifier-key-scroller"; | 67 "ash-enable-magnifier-key-scroller"; |
| 77 #endif | 68 #endif |
| 78 | 69 |
| 79 // Enables software based mirroring. | 70 // Enables software based mirroring. |
| 80 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | 71 const char kAshEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
| 81 | 72 |
| 82 // Enables touch view testing. | 73 // Enables touch view testing. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 bool UseAlternateFrameCaptionButtonStyle() { | 134 bool UseAlternateFrameCaptionButtonStyle() { |
| 144 return !CommandLine::ForCurrentProcess()-> | 135 return !CommandLine::ForCurrentProcess()-> |
| 145 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); | 136 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); |
| 146 } | 137 } |
| 147 | 138 |
| 148 bool UseAlternateShelfLayout() { | 139 bool UseAlternateShelfLayout() { |
| 149 return !CommandLine::ForCurrentProcess()-> | 140 return !CommandLine::ForCurrentProcess()-> |
| 150 HasSwitch(kAshDisableAlternateShelfLayout); | 141 HasSwitch(kAshDisableAlternateShelfLayout); |
| 151 } | 142 } |
| 152 | 143 |
| 153 bool UseImmersiveFullscreenForAllWindows() { | |
| 154 return !CommandLine::ForCurrentProcess()->HasSwitch( | |
| 155 kAshEnableImmersiveFullscreenForBrowserOnly); | |
| 156 } | |
| 157 | |
| 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 |