| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/common/switches.h" | 5 #include "extensions/common/switches.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Enables extension APIs that are in development. | 43 // Enables extension APIs that are in development. |
| 44 const char kEnableExperimentalExtensionApis[] = | 44 const char kEnableExperimentalExtensionApis[] = |
| 45 "enable-experimental-extension-apis"; | 45 "enable-experimental-extension-apis"; |
| 46 | 46 |
| 47 // Hack so that feature switch can work with about_flags. See | 47 // Hack so that feature switch can work with about_flags. See |
| 48 // kEnableScriptsRequireAction. | 48 // kEnableScriptsRequireAction. |
| 49 const char kEnableExtensionActionRedesign[] = | 49 const char kEnableExtensionActionRedesign[] = |
| 50 "enable-extension-action-redesign"; | 50 "enable-extension-action-redesign"; |
| 51 | 51 |
| 52 // Hack so that feature switch can work with about_flags. See |
| 53 // kEnableScriptsRequireAction. |
| 54 const char kEnableMimeHandlerView[] = "enable-mime-handler-view"; |
| 55 |
| 52 // Enables extensions to hide bookmarks UI elements. | 56 // Enables extensions to hide bookmarks UI elements. |
| 53 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; | 57 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; |
| 54 | 58 |
| 55 // Allows the ErrorConsole to collect runtime and manifest errors, and display | 59 // Allows the ErrorConsole to collect runtime and manifest errors, and display |
| 56 // them in the chrome:extensions page. | 60 // them in the chrome:extensions page. |
| 57 const char kErrorConsole[] = "error-console"; | 61 const char kErrorConsole[] = "error-console"; |
| 58 | 62 |
| 59 // The time in milliseconds that an extension event page can be idle before it | 63 // The time in milliseconds that an extension event page can be idle before it |
| 60 // is shut down. | 64 // is shut down. |
| 61 const char kEventPageIdleTime[] = "event-page-idle-time"; | 65 const char kEventPageIdleTime[] = "event-page-idle-time"; |
| 62 | 66 |
| 63 // The time in milliseconds that an extension event page has between being | 67 // The time in milliseconds that an extension event page has between being |
| 64 // notified of its impending unload and that unload happening. | 68 // notified of its impending unload and that unload happening. |
| 65 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; | 69 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; |
| 66 | 70 |
| 67 // Whether to switch to extension action redesign mode (experimental). | 71 // Whether to switch to extension action redesign mode (experimental). |
| 68 const char kExtensionActionRedesign[] = "extension-action-redesign"; | 72 const char kExtensionActionRedesign[] = "extension-action-redesign"; |
| 69 | 73 |
| 70 // Marks a renderer as extension process. | 74 // Marks a renderer as extension process. |
| 71 const char kExtensionProcess[] = "extension-process"; | 75 const char kExtensionProcess[] = "extension-process"; |
| 72 | 76 |
| 73 // Enables extensions running scripts on chrome:// URLs. | 77 // Enables extensions running scripts on chrome:// URLs. |
| 74 // Extensions still need to explicitly request access to chrome:// URLs in the | 78 // Extensions still need to explicitly request access to chrome:// URLs in the |
| 75 // manifest. | 79 // manifest. |
| 76 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; | 80 const char kExtensionsOnChromeURLs[] = "extensions-on-chrome-urls"; |
| 77 | 81 |
| 78 // Whether to force developer mode extensions highlighting. | 82 // Whether to force developer mode extensions highlighting. |
| 79 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; | 83 const char kForceDevModeHighlighting[] = "force-dev-mode-highlighting"; |
| 80 | 84 |
| 85 // Whether or not mime handler view guests are enabled. |
| 86 const char kMimeHandlerView[] = "mime-handler-view"; |
| 87 |
| 81 // Notify the user and require consent for extensions running scripts. | 88 // Notify the user and require consent for extensions running scripts. |
| 82 // Appending --scripts-require-action=1 has the same effect as | 89 // Appending --scripts-require-action=1 has the same effect as |
| 83 // --enable-scripts-require-action (see below). | 90 // --enable-scripts-require-action (see below). |
| 84 const char kScriptsRequireAction[] = "scripts-require-action"; | 91 const char kScriptsRequireAction[] = "scripts-require-action"; |
| 85 // FeatureSwitch and about_flags don't play nice. Feature switch expects either | 92 // FeatureSwitch and about_flags don't play nice. Feature switch expects either |
| 86 // --enable-<feature> or --<feature>=1, but about_flags expects the command | 93 // --enable-<feature> or --<feature>=1, but about_flags expects the command |
| 87 // line argument to enable it (or a selection). Hack this in, so enabling it | 94 // line argument to enable it (or a selection). Hack this in, so enabling it |
| 88 // in about_flags enables the feature. Appending this flag has the same effect | 95 // in about_flags enables the feature. Appending this flag has the same effect |
| 89 // as --scripts-require-action=1. | 96 // as --scripts-require-action=1. |
| 90 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; | 97 const char kEnableScriptsRequireAction[] = "enable-scripts-require-action"; |
| 91 | 98 |
| 92 // Makes component extensions appear in chrome://settings/extensions. | 99 // Makes component extensions appear in chrome://settings/extensions. |
| 93 const char kShowComponentExtensionOptions[] = | 100 const char kShowComponentExtensionOptions[] = |
| 94 "show-component-extension-options"; | 101 "show-component-extension-options"; |
| 95 | 102 |
| 96 // Adds the given extension ID to all the permission whitelists. | 103 // Adds the given extension ID to all the permission whitelists. |
| 97 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 104 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 98 | 105 |
| 99 } // namespace switches | 106 } // namespace switches |
| 100 | 107 |
| 101 } // namespace extensions | 108 } // namespace extensions |
| OLD | NEW |