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 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // Hides notifications that are irrelevant to Chrome OS device factory testing, | 85 // Hides notifications that are irrelevant to Chrome OS device factory testing, |
86 // such as battery level updates. | 86 // such as battery level updates. |
87 const char kAshHideNotificationsForFactory[] = | 87 const char kAshHideNotificationsForFactory[] = |
88 "ash-hide-notifications-for-factory"; | 88 "ash-hide-notifications-for-factory"; |
89 | 89 |
90 // Sets a window size, optional position, and optional scale factor. | 90 // Sets a window size, optional position, and optional scale factor. |
91 // "1024x768" creates a window of size 1024x768. | 91 // "1024x768" creates a window of size 1024x768. |
92 // "100+200-1024x768" positions the window at 100,200. | 92 // "100+200-1024x768" positions the window at 100,200. |
93 // "1024x768*2" sets the scale factor to 2 for a high DPI display. | 93 // "1024x768*2" sets the scale factor to 2 for a high DPI display. |
| 94 // "800,0+800-800x800" for two displays at 800x800 resolution. |
| 95 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. |
94 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; | 96 const char kAshHostWindowBounds[] = "ash-host-window-bounds"; |
95 | 97 |
96 // Specifies the layout mode and offsets for the secondary display for | 98 // Specifies the layout mode and offsets for the secondary display for |
97 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | 99 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
98 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | 100 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
99 // is positioned on the right with -100 offset. (above than primary) | 101 // is positioned on the right with -100 offset. (above than primary) |
100 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; | 102 const char kAshSecondaryDisplayLayout[] = "ash-secondary-display-layout"; |
101 | 103 |
102 // Enables the heads-up display for tracking touch points. | 104 // Enables the heads-up display for tracking touch points. |
103 const char kAshTouchHud[] = "ash-touch-hud"; | 105 const char kAshTouchHud[] = "ash-touch-hud"; |
(...skipping 23 matching lines...) Expand all Loading... |
127 | 129 |
128 return base::SysInfo::IsRunningOnChromeOS() || | 130 return base::SysInfo::IsRunningOnChromeOS() || |
129 base::CommandLine::ForCurrentProcess()->HasSwitch( | 131 base::CommandLine::ForCurrentProcess()->HasSwitch( |
130 kAshConstrainPointerToRoot); | 132 kAshConstrainPointerToRoot); |
131 } | 133 } |
132 | 134 |
133 #endif | 135 #endif |
134 | 136 |
135 } // namespace switches | 137 } // namespace switches |
136 } // namespace ash | 138 } // namespace ash |
OLD | NEW |