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.
|
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#ifndef ELECTRON_SHELL_COMMON_OPTIONS_SWITCHES_H_
|
|
|
|
#define ELECTRON_SHELL_COMMON_OPTIONS_SWITCHES_H_
|
2013-04-12 07:04:46 +00:00
|
|
|
|
2019-09-18 16:52:06 +00:00
|
|
|
#include "electron/buildflags/buildflags.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2013-04-12 07:04:46 +00:00
|
|
|
|
2015-11-13 05:58:31 +00:00
|
|
|
namespace options {
|
2013-04-12 07:04:46 +00:00
|
|
|
|
|
|
|
extern const char kTitle[];
|
|
|
|
extern const char kIcon[];
|
|
|
|
extern const char kFrame[];
|
|
|
|
extern const char kShow[];
|
2013-05-10 12:34:05 +00:00
|
|
|
extern const char kCenter[];
|
2013-04-12 07:04:46 +00:00
|
|
|
extern const char kX[];
|
|
|
|
extern const char kY[];
|
|
|
|
extern const char kWidth[];
|
|
|
|
extern const char kHeight[];
|
|
|
|
extern const char kMinWidth[];
|
|
|
|
extern const char kMinHeight[];
|
|
|
|
extern const char kMaxWidth[];
|
|
|
|
extern const char kMaxHeight[];
|
|
|
|
extern const char kResizable[];
|
2016-01-15 02:45:19 +00:00
|
|
|
extern const char kMovable[];
|
2016-01-18 22:46:35 +00:00
|
|
|
extern const char kMinimizable[];
|
2016-01-22 21:24:33 +00:00
|
|
|
extern const char kMaximizable[];
|
2016-01-23 07:47:37 +00:00
|
|
|
extern const char kFullScreenable[];
|
2016-01-18 22:46:35 +00:00
|
|
|
extern const char kClosable[];
|
2022-11-01 20:43:42 +00:00
|
|
|
extern const char kHiddenInMissionControl[];
|
2013-04-12 07:04:46 +00:00
|
|
|
extern const char kFullscreen[];
|
2014-06-16 02:29:51 +00:00
|
|
|
extern const char kSkipTaskbar[];
|
2013-04-12 07:04:46 +00:00
|
|
|
extern const char kKiosk[];
|
2017-08-13 06:28:33 +00:00
|
|
|
extern const char kSimpleFullScreen[];
|
2013-04-12 07:04:46 +00:00
|
|
|
extern const char kAlwaysOnTop[];
|
2014-03-15 11:28:23 +00:00
|
|
|
extern const char kAcceptFirstMouse[];
|
2014-05-15 07:18:46 +00:00
|
|
|
extern const char kUseContentSize[];
|
2016-10-27 18:29:51 +00:00
|
|
|
extern const char kZoomToPageWidth[];
|
2017-06-26 20:58:45 +00:00
|
|
|
extern const char kFullscreenWindowTitle[];
|
2015-09-14 12:15:41 +00:00
|
|
|
extern const char kTitleBarStyle[];
|
2017-03-27 14:15:17 +00:00
|
|
|
extern const char kTabbingIdentifier[];
|
2014-08-07 05:47:58 +00:00
|
|
|
extern const char kAutoHideMenuBar[];
|
2014-08-17 04:23:00 +00:00
|
|
|
extern const char kEnableLargerThanScreen[];
|
2014-08-21 04:24:55 +00:00
|
|
|
extern const char kDarkTheme[];
|
2014-12-23 01:48:54 +00:00
|
|
|
extern const char kTransparent[];
|
2015-02-11 04:12:22 +00:00
|
|
|
extern const char kType[];
|
2015-04-27 04:08:22 +00:00
|
|
|
extern const char kDisableAutoHideCursor[];
|
2015-05-08 20:28:24 +00:00
|
|
|
extern const char kStandardWindow[];
|
2015-10-21 10:17:28 +00:00
|
|
|
extern const char kBackgroundColor[];
|
2016-01-23 00:15:49 +00:00
|
|
|
extern const char kHasShadow[];
|
2017-09-29 02:26:02 +00:00
|
|
|
extern const char kOpacity[];
|
2016-06-13 08:10:28 +00:00
|
|
|
extern const char kFocusable[];
|
2015-11-10 14:17:27 +00:00
|
|
|
extern const char kWebPreferences[];
|
2016-11-07 20:22:41 +00:00
|
|
|
extern const char kVibrancyType[];
|
2020-08-24 15:44:48 +00:00
|
|
|
extern const char kVisualEffectState[];
|
2020-01-23 18:13:08 +00:00
|
|
|
extern const char kTrafficLightPosition[];
|
2021-02-09 16:38:35 +00:00
|
|
|
extern const char kRoundedCorners[];
|
2021-07-01 19:25:40 +00:00
|
|
|
extern const char ktitleBarOverlay[];
|
2021-08-11 18:07:36 +00:00
|
|
|
extern const char kOverlayButtonColor[];
|
|
|
|
extern const char kOverlaySymbolColor[];
|
2022-01-24 22:09:21 +00:00
|
|
|
extern const char kOverlayHeight[];
|
2013-04-12 07:04:46 +00:00
|
|
|
|
2015-11-10 14:17:27 +00:00
|
|
|
// WebPreferences.
|
|
|
|
extern const char kZoomFactor[];
|
|
|
|
extern const char kPreloadScript[];
|
2020-11-10 17:06:03 +00:00
|
|
|
extern const char kPreloadScripts[];
|
2015-11-10 14:17:27 +00:00
|
|
|
extern const char kNodeIntegration[];
|
2016-12-15 21:20:17 +00:00
|
|
|
extern const char kContextIsolation[];
|
2014-09-09 02:33:31 +00:00
|
|
|
extern const char kExperimentalFeatures[];
|
2016-05-06 05:57:43 +00:00
|
|
|
extern const char kScrollBounce[];
|
2018-05-23 21:01:34 +00:00
|
|
|
extern const char kEnableBlinkFeatures[];
|
2016-06-07 20:42:42 +00:00
|
|
|
extern const char kDisableBlinkFeatures[];
|
2017-03-15 09:51:21 +00:00
|
|
|
extern const char kNodeIntegrationInWorker[];
|
2017-05-17 20:09:24 +00:00
|
|
|
extern const char kWebviewTag[];
|
2018-02-12 17:54:31 +00:00
|
|
|
extern const char kCustomArgs[];
|
2018-05-29 08:09:51 +00:00
|
|
|
extern const char kPlugins[];
|
|
|
|
extern const char kSandbox[];
|
|
|
|
extern const char kWebSecurity[];
|
|
|
|
extern const char kAllowRunningInsecureContent[];
|
|
|
|
extern const char kOffscreen[];
|
2019-01-22 19:24:46 +00:00
|
|
|
extern const char kNodeIntegrationInSubFrames[];
|
2019-03-07 23:29:37 +00:00
|
|
|
extern const char kDisableHtmlFullscreenWindowResize[];
|
2019-04-23 16:14:18 +00:00
|
|
|
extern const char kJavaScript[];
|
|
|
|
extern const char kImages[];
|
2021-06-08 02:00:22 +00:00
|
|
|
extern const char kImageAnimationPolicy[];
|
2019-04-23 16:14:18 +00:00
|
|
|
extern const char kTextAreasAreResizable[];
|
|
|
|
extern const char kWebGL[];
|
|
|
|
extern const char kNavigateOnDragDrop[];
|
2020-05-06 19:52:59 +00:00
|
|
|
extern const char kEnableWebSQL[];
|
2020-10-21 22:44:19 +00:00
|
|
|
extern const char kEnablePreferredSizeMode[];
|
2015-11-13 05:58:31 +00:00
|
|
|
|
2020-11-10 17:06:03 +00:00
|
|
|
extern const char kHiddenPage[];
|
|
|
|
|
2019-10-31 20:11:51 +00:00
|
|
|
#if BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER)
|
|
|
|
extern const char kSpellcheck[];
|
|
|
|
#endif
|
|
|
|
|
2018-04-18 01:44:10 +00:00
|
|
|
} // namespace options
|
2014-09-09 02:33:31 +00:00
|
|
|
|
2015-11-10 14:17:27 +00:00
|
|
|
// Following are actually command line switches, should be moved to other files.
|
2015-11-13 05:58:31 +00:00
|
|
|
|
|
|
|
namespace switches {
|
|
|
|
|
2016-08-15 10:59:08 +00:00
|
|
|
extern const char kEnableSandbox[];
|
2015-11-10 14:17:27 +00:00
|
|
|
extern const char kPpapiFlashPath[];
|
|
|
|
extern const char kPpapiFlashVersion[];
|
2018-08-13 23:16:04 +00:00
|
|
|
extern const char kDisableHttpCache[];
|
2016-06-08 06:46:50 +00:00
|
|
|
extern const char kStandardSchemes[];
|
2019-01-29 07:11:01 +00:00
|
|
|
extern const char kServiceWorkerSchemes[];
|
2016-11-14 16:20:04 +00:00
|
|
|
extern const char kSecureSchemes[];
|
2019-01-29 07:11:01 +00:00
|
|
|
extern const char kBypassCSPSchemes[];
|
|
|
|
extern const char kFetchSchemes[];
|
|
|
|
extern const char kCORSSchemes[];
|
2020-06-08 16:49:36 +00:00
|
|
|
extern const char kStreamingSchemes[];
|
2015-07-09 22:57:17 +00:00
|
|
|
extern const char kAppUserModelId[];
|
2017-04-04 00:36:01 +00:00
|
|
|
extern const char kAppPath[];
|
2015-07-09 22:57:17 +00:00
|
|
|
|
2016-05-06 05:57:43 +00:00
|
|
|
extern const char kScrollBounce[];
|
2017-03-15 09:51:21 +00:00
|
|
|
extern const char kNodeIntegrationInWorker[];
|
2015-11-13 05:58:31 +00:00
|
|
|
|
2015-12-16 10:06:38 +00:00
|
|
|
extern const char kWidevineCdmPath[];
|
|
|
|
extern const char kWidevineCdmVersion[];
|
|
|
|
|
2018-08-14 21:07:53 +00:00
|
|
|
extern const char kDiskCacheSize[];
|
2018-08-23 09:55:13 +00:00
|
|
|
extern const char kIgnoreConnectionsLimit[];
|
2018-10-04 18:08:56 +00:00
|
|
|
extern const char kAuthServerWhitelist[];
|
|
|
|
extern const char kAuthNegotiateDelegateWhitelist[];
|
2019-05-13 18:28:01 +00:00
|
|
|
extern const char kEnableAuthNegotiatePort[];
|
2020-06-02 19:58:00 +00:00
|
|
|
extern const char kDisableNTLMv2[];
|
2018-08-14 21:07:53 +00:00
|
|
|
|
2020-11-10 17:06:03 +00:00
|
|
|
extern const char kEnableWebSQL[];
|
2013-04-12 07:04:46 +00:00
|
|
|
} // namespace switches
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|
2013-04-12 07:04:46 +00:00
|
|
|
|
2021-11-22 07:34:31 +00:00
|
|
|
#endif // ELECTRON_SHELL_COMMON_OPTIONS_SWITCHES_H_
|