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 // Enables the <appview> tag in platform apps. |
| 20 const char kAppView[] = "app-view"; |
| 21 |
19 // Enables extension options to be embedded in chrome://extensions rather than | 22 // Enables extension options to be embedded in chrome://extensions rather than |
20 // a new tab. | 23 // a new tab. |
21 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; | 24 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; |
22 | 25 |
23 // Show apps windows after the first paint. Windows will be shown significantly | 26 // Show apps windows after the first paint. Windows will be shown significantly |
24 // later for heavy apps loading resources synchronously but it will be | 27 // later for heavy apps loading resources synchronously but it will be |
25 // insignificant for apps that load most of their resources asynchronously. | 28 // insignificant for apps that load most of their resources asynchronously. |
26 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; | 29 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; |
27 | 30 |
28 // Enables the <appview> tag in platform apps. | 31 // Hack so that feature switch can work with about_flags. See |
| 32 // kEnableScriptsRequireAction. |
29 const char kEnableAppView[] = "enable-app-view"; | 33 const char kEnableAppView[] = "enable-app-view"; |
30 | 34 |
31 // Hack so that feature switch can work with about_flags. See | 35 // Hack so that feature switch can work with about_flags. See |
32 // kEnableScriptsRequireAction. | 36 // kEnableScriptsRequireAction. |
33 const char kEnableEmbeddedExtensionOptions[] = | 37 const char kEnableEmbeddedExtensionOptions[] = |
34 "enable-embedded-extension-options"; | 38 "enable-embedded-extension-options"; |
35 | 39 |
36 // Enables extension APIs that are in development. | 40 // Enables extension APIs that are in development. |
37 const char kEnableExperimentalExtensionApis[] = | 41 const char kEnableExperimentalExtensionApis[] = |
38 "enable-experimental-extension-apis"; | 42 "enable-experimental-extension-apis"; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Makes component extensions appear in chrome://settings/extensions. | 89 // Makes component extensions appear in chrome://settings/extensions. |
86 const char kShowComponentExtensionOptions[] = | 90 const char kShowComponentExtensionOptions[] = |
87 "show-component-extension-options"; | 91 "show-component-extension-options"; |
88 | 92 |
89 // Adds the given extension ID to all the permission whitelists. | 93 // Adds the given extension ID to all the permission whitelists. |
90 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 94 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
91 | 95 |
92 } // namespace switches | 96 } // namespace switches |
93 | 97 |
94 } // namespace extensions | 98 } // namespace extensions |
OLD | NEW |