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