| 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 |
| 11 // Allows non-https URL for background_page for hosted apps. | 11 // Allows non-https URL for background_page for hosted apps. |
| 12 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; | 12 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page"; |
| 13 | 13 |
| 14 // Allows the browser to load extensions that lack a modern manifest when that | 14 // Allows the browser to load extensions that lack a modern manifest when that |
| 15 // would otherwise be forbidden. | 15 // would otherwise be forbidden. |
| 16 const char kAllowLegacyExtensionManifests[] = | 16 const char kAllowLegacyExtensionManifests[] = |
| 17 "allow-legacy-extension-manifests"; | 17 "allow-legacy-extension-manifests"; |
| 18 | 18 |
| 19 // Disables the App Info dialog from being launched from the chrome://extensions | |
| 20 // page (reverts to the old-style permissions dialog instead). | |
| 21 const char kDisableExtensionInfoDialog[] = "disable-extension-info-dialog"; | |
| 22 | |
| 23 // Enables extension options to be embedded in chrome://extensions rather than | 19 // Enables extension options to be embedded in chrome://extensions rather than |
| 24 // a new tab. | 20 // a new tab. |
| 25 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; | 21 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; |
| 26 | 22 |
| 27 // Show apps windows after the first paint. Windows will be shown significantly | 23 // Show apps windows after the first paint. Windows will be shown significantly |
| 28 // later for heavy apps loading resources synchronously but it will be | 24 // later for heavy apps loading resources synchronously but it will be |
| 29 // insignificant for apps that load most of their resources asynchronously. | 25 // insignificant for apps that load most of their resources asynchronously. |
| 30 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; | 26 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; |
| 31 | 27 |
| 32 // Enables the <window-controls> tag in platform apps. | 28 // Enables the <window-controls> tag in platform apps. |
| 33 const char kEnableAppWindowControls[] = "enable-app-window-controls"; | 29 const char kEnableAppWindowControls[] = "enable-app-window-controls"; |
| 34 | 30 |
| 35 // Hack so that feature switch can work with about_flags. See | 31 // Hack so that feature switch can work with about_flags. See |
| 36 // kEnableScriptsRequireAction. | 32 // kEnableScriptsRequireAction. |
| 37 const char kEnableEmbeddedExtensionOptions[] = | 33 const char kEnableEmbeddedExtensionOptions[] = |
| 38 "enable-embedded-extension-options"; | 34 "enable-embedded-extension-options"; |
| 39 | 35 |
| 40 // Enables extension APIs that are in development. | 36 // Enables extension APIs that are in development. |
| 41 const char kEnableExperimentalExtensionApis[] = | 37 const char kEnableExperimentalExtensionApis[] = |
| 42 "enable-experimental-extension-apis"; | 38 "enable-experimental-extension-apis"; |
| 43 | 39 |
| 44 // Hack so that feature switch can work with about_flags. See | 40 // Hack so that feature switch can work with about_flags. See |
| 45 // kEnableScriptsRequireAction. | 41 // kEnableScriptsRequireAction. |
| 46 const char kEnableExtensionActionRedesign[] = | 42 const char kEnableExtensionActionRedesign[] = |
| 47 "enable-extension-action-redesign"; | 43 "enable-extension-action-redesign"; |
| 48 | 44 |
| 45 // Enables the App Info dialog to be launched from the chrome://extensions page. |
| 46 const char kEnableExtensionInfoDialog[] = "enable-extension-info-dialog"; |
| 47 |
| 49 // Hack so that feature switch can work with about_flags. See | 48 // Hack so that feature switch can work with about_flags. See |
| 50 // kEnableScriptsRequireAction. | 49 // kEnableScriptsRequireAction. |
| 51 const char kEnableMimeHandlerView[] = "enable-mime-handler-view"; | 50 const char kEnableMimeHandlerView[] = "enable-mime-handler-view"; |
| 52 | 51 |
| 53 // Enables extensions to hide bookmarks UI elements. | 52 // Enables extensions to hide bookmarks UI elements. |
| 54 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; | 53 const char kEnableOverrideBookmarksUI[] = "enable-override-bookmarks-ui"; |
| 55 | 54 |
| 56 // Allows remote assistance connection to this computer using the Chrome Remote | 55 // Allows remote assistance connection to this computer using the Chrome Remote |
| 57 // Desktop app on Chrome OS. | 56 // Desktop app on Chrome OS. |
| 58 const char kEnableRemoteAssistance[] = "enable-remote-assistance"; | 57 const char kEnableRemoteAssistance[] = "enable-remote-assistance"; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Makes component extensions appear in chrome://settings/extensions. | 91 // Makes component extensions appear in chrome://settings/extensions. |
| 93 const char kShowComponentExtensionOptions[] = | 92 const char kShowComponentExtensionOptions[] = |
| 94 "show-component-extension-options"; | 93 "show-component-extension-options"; |
| 95 | 94 |
| 96 // Adds the given extension ID to all the permission whitelists. | 95 // Adds the given extension ID to all the permission whitelists. |
| 97 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 96 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
| 98 | 97 |
| 99 } // namespace switches | 98 } // namespace switches |
| 100 | 99 |
| 101 } // namespace extensions | 100 } // namespace extensions |
| OLD | NEW |