1 // Copyright 2013 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.
5 #include "extensions/common/switches.h"
11 // Allows non-https URL for background_page for hosted apps.
12 const char kAllowHTTPBackgroundPage
[] = "allow-http-background-page";
14 // Allows the browser to load extensions that lack a modern manifest when that
15 // would otherwise be forbidden.
16 const char kAllowLegacyExtensionManifests
[] =
17 "allow-legacy-extension-manifests";
19 // Enables the <appview> tag in platform apps.
20 const char kAppView
[] = "app-view";
22 // Enables extension options to be embedded in chrome://extensions rather than
24 const char kEmbeddedExtensionOptions
[] = "embedded-extension-options";
26 // Show apps windows after the first paint. Windows will be shown significantly
27 // later for heavy apps loading resources synchronously but it will be
28 // insignificant for apps that load most of their resources asynchronously.
29 const char kEnableAppsShowOnFirstPaint
[] = "enable-apps-show-on-first-paint";
31 // Hack so that feature switch can work with about_flags. See
32 // kEnableScriptsRequireAction.
33 const char kEnableAppView
[] = "enable-app-view";
35 // Enables the <window-controls> tag in platform apps.
36 const char kEnableAppWindowControls
[] = "enable-app-window-controls";
38 // Hack so that feature switch can work with about_flags. See
39 // kEnableScriptsRequireAction.
40 const char kEnableEmbeddedExtensionOptions
[] =
41 "enable-embedded-extension-options";
43 // Enables extension APIs that are in development.
44 const char kEnableExperimentalExtensionApis
[] =
45 "enable-experimental-extension-apis";
47 // Hack so that feature switch can work with about_flags. See
48 // kEnableScriptsRequireAction.
49 const char kEnableExtensionActionRedesign
[] =
50 "enable-extension-action-redesign";
52 // Hack so that feature switch can work with about_flags. See
53 // kEnableScriptsRequireAction.
54 const char kEnableMimeHandlerView
[] = "enable-mime-handler-view";
56 // Enables extensions to hide bookmarks UI elements.
57 const char kEnableOverrideBookmarksUI
[] = "enable-override-bookmarks-ui";
59 // Allows the ErrorConsole to collect runtime and manifest errors, and display
60 // them in the chrome:extensions page.
61 const char kErrorConsole
[] = "error-console";
63 // The time in milliseconds that an extension event page can be idle before it
65 const char kEventPageIdleTime
[] = "event-page-idle-time";
67 // The time in milliseconds that an extension event page has between being
68 // notified of its impending unload and that unload happening.
69 const char kEventPageSuspendingTime
[] = "event-page-unloading-time";
71 // Whether to switch to extension action redesign mode (experimental).
72 const char kExtensionActionRedesign
[] = "extension-action-redesign";
74 // Marks a renderer as extension process.
75 const char kExtensionProcess
[] = "extension-process";
77 // Enables extensions running scripts on chrome:// URLs.
78 // Extensions still need to explicitly request access to chrome:// URLs in the
80 const char kExtensionsOnChromeURLs
[] = "extensions-on-chrome-urls";
82 // Whether to force developer mode extensions highlighting.
83 const char kForceDevModeHighlighting
[] = "force-dev-mode-highlighting";
85 // Whether or not mime handler view guests are enabled.
86 const char kMimeHandlerView
[] = "mime-handler-view";
88 // Notify the user and require consent for extensions running scripts.
89 // Appending --scripts-require-action=1 has the same effect as
90 // --enable-scripts-require-action (see below).
91 const char kScriptsRequireAction
[] = "scripts-require-action";
92 // FeatureSwitch and about_flags don't play nice. Feature switch expects either
93 // --enable-<feature> or --<feature>=1, but about_flags expects the command
94 // line argument to enable it (or a selection). Hack this in, so enabling it
95 // in about_flags enables the feature. Appending this flag has the same effect
96 // as --scripts-require-action=1.
97 const char kEnableScriptsRequireAction
[] = "enable-scripts-require-action";
99 // Makes component extensions appear in chrome://settings/extensions.
100 const char kShowComponentExtensionOptions
[] =
101 "show-component-extension-options";
103 // Adds the given extension ID to all the permission whitelists.
104 const char kWhitelistedExtensionID
[] = "whitelisted-extension-id";
106 } // namespace switches
108 } // namespace extensions