2014-10-31 18:17:05 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-04-12 07:04:46 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-03-16 00:30:26 +00:00
|
|
|
#include "atom/common/options_switches.h"
|
2013-04-12 07:04:46 +00:00
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
2015-11-13 05:58:31 +00:00
|
|
|
namespace options {
|
2013-04-12 07:04:46 +00:00
|
|
|
|
|
|
|
const char kTitle[] = "title";
|
|
|
|
const char kIcon[] = "icon";
|
|
|
|
const char kFrame[] = "frame";
|
|
|
|
const char kShow[] = "show";
|
2013-05-10 12:34:05 +00:00
|
|
|
const char kCenter[] = "center";
|
2013-04-12 07:04:46 +00:00
|
|
|
const char kX[] = "x";
|
|
|
|
const char kY[] = "y";
|
|
|
|
const char kWidth[] = "width";
|
|
|
|
const char kHeight[] = "height";
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kMinWidth[] = "minWidth";
|
|
|
|
const char kMinHeight[] = "minHeight";
|
|
|
|
const char kMaxWidth[] = "maxWidth";
|
|
|
|
const char kMaxHeight[] = "maxHeight";
|
2013-04-12 07:04:46 +00:00
|
|
|
const char kResizable[] = "resizable";
|
2016-01-15 02:45:19 +00:00
|
|
|
const char kMovable[] = "movable";
|
2013-04-12 07:04:46 +00:00
|
|
|
const char kFullscreen[] = "fullscreen";
|
|
|
|
|
2014-06-16 02:29:51 +00:00
|
|
|
// Whether the window should show in taskbar.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kSkipTaskbar[] = "skipTaskbar";
|
2014-06-16 02:29:51 +00:00
|
|
|
|
2013-04-12 07:04:46 +00:00
|
|
|
// Start with the kiosk mode, see Opera's page for description:
|
|
|
|
// http://www.opera.com/support/mastering/kiosk/
|
|
|
|
const char kKiosk[] = "kiosk";
|
|
|
|
|
|
|
|
// Make windows stays on the top of all other windows.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kAlwaysOnTop[] = "alwaysOnTop";
|
2013-04-12 07:04:46 +00:00
|
|
|
|
2014-03-15 11:28:23 +00:00
|
|
|
// Enable the NSView to accept first mouse event.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kAcceptFirstMouse[] = "acceptFirstMouse";
|
2014-03-15 11:28:23 +00:00
|
|
|
|
2014-05-15 07:18:46 +00:00
|
|
|
// Whether window size should include window frame.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kUseContentSize[] = "useContentSize";
|
2014-05-15 07:18:46 +00:00
|
|
|
|
2015-09-14 12:15:41 +00:00
|
|
|
// The requested title bar style for the window
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kTitleBarStyle[] = "titleBarStyle";
|
2015-09-14 12:15:41 +00:00
|
|
|
|
2014-08-07 05:47:58 +00:00
|
|
|
// The menu bar is hidden unless "Alt" is pressed.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kAutoHideMenuBar[] = "autoHideMenuBar";
|
2014-08-07 05:47:58 +00:00
|
|
|
|
2014-08-17 04:23:00 +00:00
|
|
|
// Enable window to be resized larger than screen.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kEnableLargerThanScreen[] = "enableLargerThanScreen";
|
2014-08-17 04:23:00 +00:00
|
|
|
|
2014-08-21 04:24:55 +00:00
|
|
|
// Forces to use dark theme on Linux.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kDarkTheme[] = "darkTheme";
|
2014-08-21 04:24:55 +00:00
|
|
|
|
2014-12-23 01:48:54 +00:00
|
|
|
// Whether the window should be transparent.
|
|
|
|
const char kTransparent[] = "transparent";
|
|
|
|
|
2015-02-11 04:12:22 +00:00
|
|
|
// Window type hint.
|
|
|
|
const char kType[] = "type";
|
|
|
|
|
2015-04-27 04:08:22 +00:00
|
|
|
// Disable auto-hiding cursor.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kDisableAutoHideCursor[] = "disableAutoHideCursor";
|
2015-04-27 04:08:22 +00:00
|
|
|
|
2015-05-08 20:28:24 +00:00
|
|
|
// Use the OS X's standard window instead of the textured window.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kStandardWindow[] = "standardWindow";
|
2015-05-08 20:28:24 +00:00
|
|
|
|
2015-10-21 10:17:28 +00:00
|
|
|
// Default browser window background color.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kBackgroundColor[] = "backgroundColor";
|
2015-10-21 10:17:28 +00:00
|
|
|
|
2016-01-23 00:15:49 +00:00
|
|
|
// Whether the window should have a shadow.
|
|
|
|
const char kHasShadow[] = "hasShadow";
|
|
|
|
|
2015-11-10 14:17:27 +00:00
|
|
|
// The WebPreferences.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kWebPreferences[] = "webPreferences";
|
2015-11-10 14:17:27 +00:00
|
|
|
|
|
|
|
// The factor of which page should be zoomed.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kZoomFactor[] = "zoomFactor";
|
2015-11-10 14:17:27 +00:00
|
|
|
|
|
|
|
// Script that will be loaded by guest WebContents before other scripts.
|
|
|
|
const char kPreloadScript[] = "preload";
|
|
|
|
|
|
|
|
// Like --preload, but the passed argument is an URL.
|
2015-11-13 08:03:40 +00:00
|
|
|
const char kPreloadURL[] = "preloadURL";
|
2015-11-10 14:17:27 +00:00
|
|
|
|
|
|
|
// Enable the node integration.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kNodeIntegration[] = "nodeIntegration";
|
2015-11-10 14:17:27 +00:00
|
|
|
|
|
|
|
// Instancd ID of guest WebContents.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kGuestInstanceID[] = "guestInstanceId";
|
2015-06-03 20:57:06 +00:00
|
|
|
|
2015-11-13 05:58:31 +00:00
|
|
|
// Enable DirectWrite on Windows.
|
|
|
|
const char kDirectWrite[] = "directWrite";
|
|
|
|
|
2014-09-09 05:21:15 +00:00
|
|
|
// Web runtime features.
|
2015-11-10 14:23:21 +00:00
|
|
|
const char kExperimentalFeatures[] = "experimentalFeatures";
|
|
|
|
const char kExperimentalCanvasFeatures[] = "experimentalCanvasFeatures";
|
2014-09-09 02:33:31 +00:00
|
|
|
|
2016-01-07 06:10:18 +00:00
|
|
|
// Opener window's ID.
|
|
|
|
const char kOpenerID[] = "openerId";
|
|
|
|
|
|
|
|
// Enable blink features.
|
|
|
|
const char kBlinkFeatures[] = "blinkFeatures";
|
|
|
|
|
2015-11-13 05:58:31 +00:00
|
|
|
} // namespace options
|
|
|
|
|
|
|
|
namespace switches {
|
|
|
|
|
2015-11-10 14:17:27 +00:00
|
|
|
// Enable plugins.
|
|
|
|
const char kEnablePlugins[] = "enable-plugins";
|
|
|
|
|
|
|
|
// Ppapi Flash path.
|
|
|
|
const char kPpapiFlashPath[] = "ppapi-flash-path";
|
|
|
|
|
|
|
|
// Ppapi Flash version.
|
|
|
|
const char kPpapiFlashVersion[] = "ppapi-flash-version";
|
|
|
|
|
|
|
|
// Path to client certificate.
|
|
|
|
const char kClientCertificate[] = "client-certificate";
|
|
|
|
|
2015-01-05 21:40:38 +00:00
|
|
|
// Disable HTTP cache.
|
|
|
|
const char kDisableHttpCache[] = "disable-http-cache";
|
|
|
|
|
2015-06-12 07:58:23 +00:00
|
|
|
// Register schemes to standard.
|
|
|
|
const char kRegisterStandardSchemes[] = "register-standard-schemes";
|
|
|
|
|
2015-12-08 19:21:46 +00:00
|
|
|
// Register schemes to handle service worker.
|
|
|
|
const char kRegisterServiceWorkerSchemes[] = "register-service-worker-schemes";
|
|
|
|
|
2015-09-21 16:43:32 +00:00
|
|
|
// The minimum SSL/TLS version ("tls1", "tls1.1", or "tls1.2") that
|
|
|
|
// TLS fallback will accept.
|
|
|
|
const char kSSLVersionFallbackMin[] = "ssl-version-fallback-min";
|
|
|
|
|
2015-10-19 20:56:01 +00:00
|
|
|
// Comma-separated list of SSL cipher suites to disable.
|
|
|
|
const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
|
|
|
|
|
2015-07-09 22:57:17 +00:00
|
|
|
// The browser process app model ID
|
|
|
|
const char kAppUserModelId[] = "app-user-model-id";
|
|
|
|
|
2015-11-13 05:58:31 +00:00
|
|
|
// The command line switch versions of the options.
|
|
|
|
const char kZoomFactor[] = "zoom-factor";
|
|
|
|
const char kPreloadScript[] = "preload";
|
2015-11-13 08:03:40 +00:00
|
|
|
const char kPreloadURL[] = "preload-url";
|
2015-11-13 05:58:31 +00:00
|
|
|
const char kNodeIntegration[] = "node-integration";
|
|
|
|
const char kGuestInstanceID[] = "guest-instance-id";
|
2015-12-17 13:27:14 +00:00
|
|
|
const char kOpenerID[] = "opener-id";
|
2015-11-13 05:58:31 +00:00
|
|
|
|
2015-12-16 10:06:38 +00:00
|
|
|
// Widevine options
|
|
|
|
// Path to Widevine CDM binaries.
|
|
|
|
const char kWidevineCdmPath[] = "widevine-cdm-path";
|
|
|
|
// Widevine CDM version.
|
|
|
|
const char kWidevineCdmVersion[] = "widevine-cdm-version";
|
|
|
|
|
2013-04-12 07:04:46 +00:00
|
|
|
} // namespace switches
|
|
|
|
|
|
|
|
} // namespace atom
|