| 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 extension options to be embedded in chrome://extensions rather than | 19 // Enables extension options to be embedded in chrome://extensions rather than |
| 20 // a new tab. | 20 // a new tab. |
| 21 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; | 21 const char kEmbeddedExtensionOptions[] = "embedded-extension-options"; |
| 22 | 22 |
| 23 // 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 |
| 24 // later for heavy apps loading resources synchronously but it will be | 24 // later for heavy apps loading resources synchronously but it will be |
| 25 // insignificant for apps that load most of their resources asynchronously. | 25 // insignificant for apps that load most of their resources asynchronously. |
| 26 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; | 26 const char kEnableAppsShowOnFirstPaint[] = "enable-apps-show-on-first-paint"; |
| 27 | 27 |
| 28 // Enables the <window-controls> tag in platform apps. | |
| 29 const char kEnableAppWindowControls[] = "enable-app-window-controls"; | |
| 30 | |
| 31 // Enable BLE Advertisiing in apps. | 28 // Enable BLE Advertisiing in apps. |
| 32 const char kEnableBLEAdvertising[] = "enable-ble-advertising-in-apps"; | 29 const char kEnableBLEAdvertising[] = "enable-ble-advertising-in-apps"; |
| 33 | 30 |
| 34 const char kDisableDesktopCaptureAudio[] = | 31 const char kDisableDesktopCaptureAudio[] = |
| 35 "disable-audio-support-for-desktop-share"; | 32 "disable-audio-support-for-desktop-share"; |
| 36 | 33 |
| 37 // Hack so that feature switch can work with about_flags. See | 34 // Hack so that feature switch can work with about_flags. See |
| 38 // kEnableScriptsRequireAction. | 35 // kEnableScriptsRequireAction. |
| 39 const char kEnableEmbeddedExtensionOptions[] = | 36 const char kEnableEmbeddedExtensionOptions[] = |
| 40 "enable-embedded-extension-options"; | 37 "enable-embedded-extension-options"; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Enables the use of C++-based extension bindings (instead of JS generation). | 110 // Enables the use of C++-based extension bindings (instead of JS generation). |
| 114 const char kNativeCrxBindings[] = "native-crx-bindings"; | 111 const char kNativeCrxBindings[] = "native-crx-bindings"; |
| 115 | 112 |
| 116 // Enable package hash check: the .crx file sha256 hash sum should be equal to | 113 // Enable package hash check: the .crx file sha256 hash sum should be equal to |
| 117 // the one received from update manifest. | 114 // the one received from update manifest. |
| 118 const char kEnableCrxHashCheck[] = "enable-crx-hash-check"; | 115 const char kEnableCrxHashCheck[] = "enable-crx-hash-check"; |
| 119 | 116 |
| 120 } // namespace switches | 117 } // namespace switches |
| 121 | 118 |
| 122 } // namespace extensions | 119 } // namespace extensions |
| OLD | NEW |