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 25 matching lines...) Expand all Loading... |
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, | 41 // Use the normal visual style for the caption buttons (minimize, maximize, |
42 // restore, close). | 42 // restore, close). |
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. | |
47 const char kAshDisableAlternateShelfLayout[] = | |
48 "ash-disable-alternate-shelf-layout"; | |
49 | |
50 // Disable ability to dock windows at the desktop edge. | 46 // Disable ability to dock windows at the desktop edge. |
51 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; | 47 const char kAshDisableDockedWindows[] = "ash-disable-docked-windows"; |
52 | 48 |
53 // Use alternate visual style for the caption buttons (minimize, maximize, | 49 // Use alternate visual style for the caption buttons (minimize, maximize, |
54 // restore, close). The alternate style: | 50 // restore, close). The alternate style: |
55 // - Adds a dedicated button for minimize. | 51 // - Adds a dedicated button for minimize. |
56 // - Removes the maximize button's help bubble. | 52 // - Removes the maximize button's help bubble. |
57 const char kAshEnableAlternateFrameCaptionButtonStyle[] = | 53 const char kAshEnableAlternateFrameCaptionButtonStyle[] = |
58 "ash-enable-alternate-caption-button"; | 54 "ash-enable-alternate-caption-button"; |
59 | 55 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 92 |
97 // Specifies the layout mode and offsets for the secondary display for | 93 // Specifies the layout mode and offsets for the secondary display for |
98 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | 94 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
99 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | 95 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
100 // is positioned on the right with -100 offset. (above than primary) | 96 // is positioned on the right with -100 offset. (above than primary) |
101 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; | 97 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
102 | 98 |
103 // Enables the heads-up display for tracking touch points. | 99 // Enables the heads-up display for tracking touch points. |
104 const char kAshTouchHud[] = "ash-touch-hud"; | 100 const char kAshTouchHud[] = "ash-touch-hud"; |
105 | 101 |
106 // Use alternate layout of the shelf for testing a new look and feel: | |
107 // Slightly smaller profile, only 2 states for the "bar highlight" on | |
108 // launcher buttons, app list icon with more visible state indication, | |
109 // app list icon repositionable and defaulting as 1st item in shelf, | |
110 // more visible state indication for background on status area. | |
111 // crbug's [244983, 244990, 244994, 245005, 245012] | |
112 const char kAshUseAlternateShelfLayout[] = "ash-use-alternate-shelf"; | |
113 | |
114 // Uses the 1st display in --ash-host-window-bounds as internal display. | 102 // Uses the 1st display in --ash-host-window-bounds as internal display. |
115 // This is for debugging on linux desktop. | 103 // This is for debugging on linux desktop. |
116 const char kAshUseFirstDisplayAsInternal[] = | 104 const char kAshUseFirstDisplayAsInternal[] = |
117 "ash-use-first-display-as-internal"; | 105 "ash-use-first-display-as-internal"; |
118 | 106 |
119 // (Most) Chrome OS hardware reports ACPI power button releases correctly. | 107 // (Most) Chrome OS hardware reports ACPI power button releases correctly. |
120 // Standard hardware reports releases immediately after presses. If set, we | 108 // Standard hardware reports releases immediately after presses. If set, we |
121 // lock the screen or shutdown the system immediately in response to a press | 109 // lock the screen or shutdown the system immediately in response to a press |
122 // instead of displaying an interactive animation. | 110 // instead of displaying an interactive animation. |
123 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; | 111 const char kAuraLegacyPowerButton[] = "aura-legacy-power-button"; |
124 | 112 |
125 #if defined(OS_WIN) | 113 #if defined(OS_WIN) |
126 // Force Ash to open its root window on the desktop, even on Windows 8 where | 114 // Force Ash to open its root window on the desktop, even on Windows 8 where |
127 // it would normally end up in metro. | 115 // it would normally end up in metro. |
128 const char kForceAshToDesktop[] = "ash-force-desktop"; | 116 const char kForceAshToDesktop[] = "ash-force-desktop"; |
129 | 117 |
130 #endif | 118 #endif |
131 | 119 |
132 bool UseAlternateFrameCaptionButtonStyle() { | 120 bool UseAlternateFrameCaptionButtonStyle() { |
133 return !CommandLine::ForCurrentProcess()-> | 121 return !CommandLine::ForCurrentProcess()-> |
134 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); | 122 HasSwitch(kAshDisableAlternateFrameCaptionButtonStyle); |
135 } | 123 } |
136 | 124 |
137 bool UseAlternateShelfLayout() { | |
138 return !CommandLine::ForCurrentProcess()-> | |
139 HasSwitch(kAshDisableAlternateShelfLayout); | |
140 } | |
141 | |
142 bool UseDockedWindows() { | 125 bool UseDockedWindows() { |
143 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); | 126 return !CommandLine::ForCurrentProcess()->HasSwitch(kAshDisableDockedWindows); |
144 } | 127 } |
145 | 128 |
146 } // namespace switches | 129 } // namespace switches |
147 } // namespace ash | 130 } // namespace ash |
OLD | NEW |