OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "ui/display/display_switches.h" | 6 #include "ui/display/display_switches.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // TODO(rjkroege): Some of these have an "ash" prefix. When ChromeOS startup | 10 // TODO(rjkroege): Some of these have an "ash" prefix. When ChromeOS startup |
11 // scripts have been updated, the leading "ash" prefix should be removed. | 11 // scripts have been updated, the leading "ash" prefix should be removed. |
12 | 12 |
13 // Overrides the device scale factor for the browser UI and the contents. | |
14 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | |
15 | |
16 // Specifies the layout mode and offsets for the secondary display for | |
17 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, | |
18 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display | |
19 // is positioned on the right with -100 offset. (above than primary) | |
20 const char kSecondaryDisplayLayout[] = "secondary-display-layout"; | |
21 | |
22 // Enables software based mirroring. | 13 // Enables software based mirroring. |
23 const char kEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; | 14 const char kEnableSoftwareMirroring[] = "ash-enable-software-mirroring"; |
24 | 15 |
25 // Uses the 1st display in --ash-host-window-bounds as internal display. | 16 // Overrides the device scale factor for the browser UI and the contents. |
26 // This is for debugging on linux desktop. | 17 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
27 const char kUseFirstDisplayAsInternal[] = "ash-use-first-display-as-internal"; | |
28 | 18 |
29 // Sets a window size, optional position, and optional scale factor. | 19 // Sets a window size, optional position, and optional scale factor. |
30 // "1024x768" creates a window of size 1024x768. | 20 // "1024x768" creates a window of size 1024x768. |
31 // "100+200-1024x768" positions the window at 100,200. | 21 // "100+200-1024x768" positions the window at 100,200. |
32 // "1024x768*2" sets the scale factor to 2 for a high DPI display. | 22 // "1024x768*2" sets the scale factor to 2 for a high DPI display. |
33 // "800,0+800-800x800" for two displays at 800x800 resolution. | 23 // "800,0+800-800x800" for two displays at 800x800 resolution. |
34 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. | 24 // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. |
35 const char kHostWindowBounds[] = "ash-host-window-bounds"; | 25 const char kHostWindowBounds[] = "ash-host-window-bounds"; |
36 | 26 |
| 27 // Specifies the layout mode and offsets for the secondary display for |
| 28 // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT, |
| 29 // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display |
| 30 // is positioned on the right with -100 offset. (above than primary) |
| 31 const char kSecondaryDisplayLayout[] = "secondary-display-layout"; |
| 32 |
| 33 // Specifies the initial screen configuration, or state of all displays, for |
| 34 // FakeDisplayDelegate, see class for format details. |
| 35 const char kScreenConfig[] = "screen-config"; |
| 36 |
| 37 // Uses the 1st display in --ash-host-window-bounds as internal display. |
| 38 // This is for debugging on linux desktop. |
| 39 const char kUseFirstDisplayAsInternal[] = "ash-use-first-display-as-internal"; |
| 40 |
37 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
38 const char kDisableDisplayColorCalibration[] = | 42 const char kDisableDisplayColorCalibration[] = |
39 "disable-display-color-calibration"; | 43 "disable-display-color-calibration"; |
40 | 44 |
41 // Enables unified desktop mode. | 45 // Enables unified desktop mode. |
42 const char kEnableUnifiedDesktop[] = "ash-enable-unified-desktop"; | 46 const char kEnableUnifiedDesktop[] = "ash-enable-unified-desktop"; |
43 #endif | 47 #endif |
44 | 48 |
45 } // namespace switches | 49 } // namespace switches |
OLD | NEW |