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/common/ash_switches.h" | 5 #include "ash/common/ash_switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. | 91 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. |
92 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; | 92 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; |
93 | 93 |
94 // Specifies if Material Design elements in Chrome OS system UI are enabled. | 94 // Specifies if Material Design elements in Chrome OS system UI are enabled. |
95 // Can be disabled / enabled / experimental allowing to launch incrementally. | 95 // Can be disabled / enabled / experimental allowing to launch incrementally. |
96 const char kAshMaterialDesign[] = "ash-md"; | 96 const char kAshMaterialDesign[] = "ash-md"; |
97 const char kAshMaterialDesignDisabled[] = "disabled"; | 97 const char kAshMaterialDesignDisabled[] = "disabled"; |
98 const char kAshMaterialDesignEnabled[] = "enabled"; | 98 const char kAshMaterialDesignEnabled[] = "enabled"; |
99 const char kAshMaterialDesignExperimental[] = "experimental"; | 99 const char kAshMaterialDesignExperimental[] = "experimental"; |
100 | 100 |
| 101 // Specifies a maximum number of preview windows in overview mode that still |
| 102 // allows using mask layers to hide the original window header and use rounded |
| 103 // corners. |
| 104 const char kAshMaxWindowsToUseMaskInOverview[] = "ash-max-previews-to-use-mask"; |
| 105 |
| 106 // Specifies a maximum number of preview windows in overview mode that still |
| 107 // allows using alpha shapes to hide the original window header. |
| 108 const char kAshMaxWindowsToUseShapeInOverview[] = |
| 109 "ash-max-previews-to-use-shape"; |
| 110 |
101 // Specifies the layout mode and offsets for the secondary display for | 111 // Specifies the layout mode and offsets for the secondary display for |
102 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | 112 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
103 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | 113 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
104 // is positioned on the right with -100 offset. (above than primary) | 114 // is positioned on the right with -100 offset. (above than primary) |
105 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; | 115 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
106 | 116 |
107 // Enables the heads-up display for tracking touch points. | 117 // Enables the heads-up display for tracking touch points. |
108 const char kAshTouchHud[] = "ash-touch-hud"; | 118 const char kAshTouchHud[] = "ash-touch-hud"; |
109 | 119 |
110 // Uses the 1st display in --ash-host-window-bounds as internal display. | 120 // Uses the 1st display in --ash-host-window-bounds as internal display. |
(...skipping 21 matching lines...) Expand all Loading... |
132 | 142 |
133 return base::SysInfo::IsRunningOnChromeOS() || | 143 return base::SysInfo::IsRunningOnChromeOS() || |
134 base::CommandLine::ForCurrentProcess()->HasSwitch( | 144 base::CommandLine::ForCurrentProcess()->HasSwitch( |
135 kAshConstrainPointerToRoot); | 145 kAshConstrainPointerToRoot); |
136 } | 146 } |
137 | 147 |
138 #endif | 148 #endif |
139 | 149 |
140 } // namespace switches | 150 } // namespace switches |
141 } // namespace ash | 151 } // namespace ash |
OLD | NEW |