display_switches.cc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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
  3. // found in the LICENSE file.
  4. #include "ui/display/display_switches.h"
  5. #include "build/build_config.h"
  6. #include "build/chromeos_buildflags.h"
  7. namespace switches {
  8. // TODO(rjkroege): Some of these have an "ash" prefix. When ChromeOS startup
  9. // scripts have been updated, the leading "ash" prefix should be removed.
  10. // Enables software based mirroring.
  11. const char kEnableSoftwareMirroring[] = "ash-enable-software-mirroring";
  12. // Crash the browser at startup if the display's color profile does not match
  13. // the forced color profile. This is necessary on Mac because Chrome's pixel
  14. // output is always subject to the color conversion performed by the operating
  15. // system. On all other platforms, this is a no-op.
  16. const char kEnsureForcedColorProfile[] = "ensure-forced-color-profile";
  17. // Force all monitors to be treated as though they have the specified color
  18. // profile. Accepted values are "srgb" and "generic-rgb" (currently used by Mac
  19. // layout tests) and "color-spin-gamma24" (used by layout tests).
  20. const char kForceDisplayColorProfile[] = "force-color-profile";
  21. // Force rastering to take place in the specified color profile. Accepted values
  22. // are the same as for the kForceDisplayColorProfile case above.
  23. const char kForceRasterColorProfile[] = "force-raster-color-profile";
  24. // Overrides the device scale factor for the browser UI and the contents.
  25. const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
  26. // Sets a window size, optional position, and optional scale factor.
  27. // "1024x768" creates a window of size 1024x768.
  28. // "100+200-1024x768" positions the window at 100,200.
  29. // "1024x768*2" sets the scale factor to 2 for a high DPI display.
  30. // "800,0+800-800x800" for two displays at 800x800 resolution.
  31. // "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution.
  32. const char kHostWindowBounds[] = "ash-host-window-bounds";
  33. // Specifies the layout mode and offsets for the secondary display for
  34. // testing. The format is "<t|r|b|l>,<offset>" where t=TOP, r=RIGHT,
  35. // b=BOTTOM and L=LEFT. For example, 'r,-100' means the secondary display
  36. // is positioned on the right with -100 offset. (above than primary)
  37. const char kSecondaryDisplayLayout[] = "secondary-display-layout";
  38. // Specifies the initial screen configuration, or state of all displays, for
  39. // FakeDisplayDelegate, see class for format details.
  40. const char kScreenConfig[] = "screen-config";
  41. // Uses the 1st display in --ash-host-window-bounds as internal display.
  42. // This is for debugging on linux desktop.
  43. const char kUseFirstDisplayAsInternal[] = "use-first-display-as-internal";
  44. #if BUILDFLAG(IS_CHROMEOS_ASH)
  45. // Enables unified desktop mode.
  46. const char kEnableUnifiedDesktop[] = "ash-enable-unified-desktop";
  47. // Used to find the test that uses square display.
  48. const char kRejectSquareDisplay[] = "reject-square-display";
  49. #endif
  50. } // namespace switches