options_switches.cc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. // Copyright (c) 2013 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include "atom/common/options_switches.h"
  5. namespace atom {
  6. namespace options {
  7. const char kTitle[] = "title";
  8. const char kIcon[] = "icon";
  9. const char kFrame[] = "frame";
  10. const char kShow[] = "show";
  11. const char kCenter[] = "center";
  12. const char kX[] = "x";
  13. const char kY[] = "y";
  14. const char kWidth[] = "width";
  15. const char kHeight[] = "height";
  16. const char kMinWidth[] = "minWidth";
  17. const char kMinHeight[] = "minHeight";
  18. const char kMaxWidth[] = "maxWidth";
  19. const char kMaxHeight[] = "maxHeight";
  20. const char kResizable[] = "resizable";
  21. const char kMovable[] = "movable";
  22. const char kMinimizable[] = "minimizable";
  23. const char kMaximizable[] = "maximizable";
  24. const char kFullScreenable[] = "fullscreenable";
  25. const char kClosable[] = "closable";
  26. const char kFullscreen[] = "fullscreen";
  27. // Whether the window should show in taskbar.
  28. const char kSkipTaskbar[] = "skipTaskbar";
  29. // Start with the kiosk mode, see Opera's page for description:
  30. // http://www.opera.com/support/mastering/kiosk/
  31. const char kKiosk[] = "kiosk";
  32. // Make windows stays on the top of all other windows.
  33. const char kAlwaysOnTop[] = "alwaysOnTop";
  34. // Enable the NSView to accept first mouse event.
  35. const char kAcceptFirstMouse[] = "acceptFirstMouse";
  36. // Whether window size should include window frame.
  37. const char kUseContentSize[] = "useContentSize";
  38. // The requested title bar style for the window
  39. const char kTitleBarStyle[] = "titleBarStyle";
  40. // The menu bar is hidden unless "Alt" is pressed.
  41. const char kAutoHideMenuBar[] = "autoHideMenuBar";
  42. // Enable window to be resized larger than screen.
  43. const char kEnableLargerThanScreen[] = "enableLargerThanScreen";
  44. // Forces to use dark theme on Linux.
  45. const char kDarkTheme[] = "darkTheme";
  46. // Whether the window should be transparent.
  47. const char kTransparent[] = "transparent";
  48. // Window type hint.
  49. const char kType[] = "type";
  50. // Disable auto-hiding cursor.
  51. const char kDisableAutoHideCursor[] = "disableAutoHideCursor";
  52. // Use the macOS' standard window instead of the textured window.
  53. const char kStandardWindow[] = "standardWindow";
  54. // Default browser window background color.
  55. const char kBackgroundColor[] = "backgroundColor";
  56. // Whether the window should have a shadow.
  57. const char kHasShadow[] = "hasShadow";
  58. // Whether the window can be activated.
  59. const char kFocusable[] = "focusable";
  60. // The WebPreferences.
  61. const char kWebPreferences[] = "webPreferences";
  62. // The factor of which page should be zoomed.
  63. const char kZoomFactor[] = "zoomFactor";
  64. // Script that will be loaded by guest WebContents before other scripts.
  65. const char kPreloadScript[] = "preload";
  66. // Like --preload, but the passed argument is an URL.
  67. const char kPreloadURL[] = "preloadURL";
  68. // Enable the node integration.
  69. const char kNodeIntegration[] = "nodeIntegration";
  70. // Instancd ID of guest WebContents.
  71. const char kGuestInstanceID[] = "guestInstanceId";
  72. // Web runtime features.
  73. const char kExperimentalFeatures[] = "experimentalFeatures";
  74. const char kExperimentalCanvasFeatures[] = "experimentalCanvasFeatures";
  75. // Opener window's ID.
  76. const char kOpenerID[] = "openerId";
  77. // Enable the rubber banding effect.
  78. const char kScrollBounce[] = "scrollBounce";
  79. // Enable blink features.
  80. // TODO(kevinsawicki) Rename to enableBlinkFeatures in 2.0
  81. const char kBlinkFeatures[] = "blinkFeatures";
  82. // Disable blink features.
  83. const char kDisableBlinkFeatures[] = "disableBlinkFeatures";
  84. } // namespace options
  85. namespace switches {
  86. // Enable plugins.
  87. const char kEnablePlugins[] = "enable-plugins";
  88. // Ppapi Flash path.
  89. const char kPpapiFlashPath[] = "ppapi-flash-path";
  90. // Ppapi Flash version.
  91. const char kPpapiFlashVersion[] = "ppapi-flash-version";
  92. // Disable HTTP cache.
  93. const char kDisableHttpCache[] = "disable-http-cache";
  94. // The list of standard schemes.
  95. const char kStandardSchemes[] = "standard-schemes";
  96. // Register schemes to handle service worker.
  97. const char kRegisterServiceWorkerSchemes[] = "register-service-worker-schemes";
  98. // The minimum SSL/TLS version ("tls1", "tls1.1", or "tls1.2") that
  99. // TLS fallback will accept.
  100. const char kSSLVersionFallbackMin[] = "ssl-version-fallback-min";
  101. // Comma-separated list of SSL cipher suites to disable.
  102. const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
  103. // The browser process app model ID
  104. const char kAppUserModelId[] = "app-user-model-id";
  105. // The command line switch versions of the options.
  106. const char kBackgroundColor[] = "background-color";
  107. const char kZoomFactor[] = "zoom-factor";
  108. const char kPreloadScript[] = "preload";
  109. const char kPreloadURL[] = "preload-url";
  110. const char kNodeIntegration[] = "node-integration";
  111. const char kGuestInstanceID[] = "guest-instance-id";
  112. const char kOpenerID[] = "opener-id";
  113. const char kScrollBounce[] = "scroll-bounce";
  114. // Widevine options
  115. // Path to Widevine CDM binaries.
  116. const char kWidevineCdmPath[] = "widevine-cdm-path";
  117. // Widevine CDM version.
  118. const char kWidevineCdmVersion[] = "widevine-cdm-version";
  119. } // namespace switches
  120. } // namespace atom