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 | 19 // Disables the App Info dialog from being launched from the chrome://extensions |
20 // page (reverts to the old-style permissions dialog instead). | 20 // page (reverts to the old-style permissions dialog instead). |
21 const char kDisableExtensionInfoDialog[] = "disable-extension-info-dialog"; | 21 const char kDisableExtensionInfoDialog[] = "disable-extension-info-dialog"; |
22 | 22 |
23 // Enables extension options to be embedded in chrome://extensions rather than | 23 // Enables extension options to be embedded in chrome://extensions rather than |
24 // a new tab. | 24 // a new tab. |
25 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; | 25 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; |
26 | 26 |
27 // Enables the WorkerFrame experiment. | 27 // Enables the SurfaceWorker experiment. |
28 const char kWorkerFrame[] = "worker-frame"; | 28 const char kSurfaceWorker[] = "surface-worker"; |
29 | 29 |
30 // Show apps windows after the first paint. Windows will be shown significantly | 30 // Show apps windows after the first paint. Windows will be shown significantly |
31 // later for heavy apps loading resources synchronously but it will be | 31 // later for heavy apps loading resources synchronously but it will be |
32 // insignificant for apps that load most of their resources asynchronously. | 32 // insignificant for apps that load most of their resources asynchronously. |
33 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; | 33 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; |
34 | 34 |
35 // Enables the <window-controls> tag in platform apps. | 35 // Enables the <window-controls> tag in platform apps. |
36 const char kEnableAppWindowControls[] = "enable-app-window-controls"; | 36 const char kEnableAppWindowControls[] = "enable-app-window-controls"; |
37 | 37 |
38 // Hack so that feature switch can work with about_flags. See | 38 // Hack so that feature switch can work with about_flags. See |
39 // kEnableScriptsRequireAction. | 39 // kEnableScriptsRequireAction. |
40 const char kEnableEmbeddedExtensionOptions[] = | 40 const char kEnableEmbeddedExtensionOptions[] = |
41 "enable-embedded-extension-options"; | 41 "enable-embedded-extension-options"; |
42 | 42 |
43 // Enables the experimental feature <workerframe>. | 43 // Enables the experimental feature SurfaceWorker. |
44 const char kEnableWorkerFrame[] = "enable-worker-frame"; | 44 const char kEnableSurfaceWorker[] = "enable-surface-worker"; |
45 | 45 |
46 // Enables extension APIs that are in development. | 46 // Enables extension APIs that are in development. |
47 const char kEnableExperimentalExtensionApis[] = | 47 const char kEnableExperimentalExtensionApis[] = |
48 "enable-experimental-extension-apis"; | 48 "enable-experimental-extension-apis"; |
49 | 49 |
50 // Hack so that feature switch can work with about_flags. See | 50 // Hack so that feature switch can work with about_flags. See |
51 // kEnableScriptsRequireAction. | 51 // kEnableScriptsRequireAction. |
52 const char kEnableExtensionActionRedesign[] = | 52 const char kEnableExtensionActionRedesign[] = |
53 "enable-extension-action-redesign"; | 53 "enable-extension-action-redesign"; |
54 | 54 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 // Adds the given extension ID to all the permission whitelists. | 98 // Adds the given extension ID to all the permission whitelists. |
99 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; | 99 const char kWhitelistedExtensionID[] = "whitelisted-extension-id"; |
100 | 100 |
101 // Pass launch source to platform apps. | 101 // Pass launch source to platform apps. |
102 const char kTraceAppSource[] = "enable-trace-app-source"; | 102 const char kTraceAppSource[] = "enable-trace-app-source"; |
103 | 103 |
104 } // namespace switches | 104 } // namespace switches |
105 | 105 |
106 } // namespace extensions | 106 } // namespace extensions |
OLD | NEW |