| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/chrome_switches.h" | 5 #include "ios/chrome/browser/chrome_switches.h" |
| 6 | 6 |
| 7 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // ----------------------------------------------------------------------------- | 9 // ----------------------------------------------------------------------------- |
| 10 // When commenting your switch, please use the same voice as surrounding | 10 // When commenting your switch, please use the same voice as surrounding |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // Disable auto-reload of error pages if offline. | 43 // Disable auto-reload of error pages if offline. |
| 44 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 44 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
| 45 | 45 |
| 46 // Disables the tab eviction policy. (applicable iff WKWebView is enabled) | 46 // Disables the tab eviction policy. (applicable iff WKWebView is enabled) |
| 47 const char kDisableTabEviction[] = "disable-tab-eviction"; | 47 const char kDisableTabEviction[] = "disable-tab-eviction"; |
| 48 | 48 |
| 49 // Disables the tab switcher. | 49 // Disables the tab switcher. |
| 50 const char kDisableTabSwitcher[] = "disable-tab-switcher"; | 50 const char kDisableTabSwitcher[] = "disable-tab-switcher"; |
| 51 | 51 |
| 52 // Disables Physical Web scanning for nearby URLs. |
| 53 const char kDisableIOSPhysicalWeb[] = "disable-ios-physical-web"; |
| 54 |
| 52 // Enables all bookmarks view in bookmark manager. | 55 // Enables all bookmarks view in bookmark manager. |
| 53 const char kEnableAllBookmarksView[] = "enable-all-bookmarks-view"; | 56 const char kEnableAllBookmarksView[] = "enable-all-bookmarks-view"; |
| 54 | 57 |
| 55 // Enables Contextual Search. | 58 // Enables Contextual Search. |
| 56 const char kEnableContextualSearch[] = "enable-contextual-search"; | 59 const char kEnableContextualSearch[] = "enable-contextual-search"; |
| 57 | 60 |
| 58 // Enable the experimental Credential Manager JavaScript API. | 61 // Enable the experimental Credential Manager JavaScript API. |
| 59 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; | 62 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; |
| 60 | 63 |
| 61 // Enables a workaround for fast inset updates for UIWebView.scrollView. | 64 // Enables a workaround for fast inset updates for UIWebView.scrollView. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 85 | 88 |
| 86 // Enables context-sensitive reader mode button in the toolbar. | 89 // Enables context-sensitive reader mode button in the toolbar. |
| 87 const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon"; | 90 const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon"; |
| 88 | 91 |
| 89 // Enables the tab eviction policy. (applicable iff WKWebView is enabled) | 92 // Enables the tab eviction policy. (applicable iff WKWebView is enabled) |
| 90 const char kEnableTabEviction[] = "enable-tab-eviction"; | 93 const char kEnableTabEviction[] = "enable-tab-eviction"; |
| 91 | 94 |
| 92 // Enables the tab switcher. | 95 // Enables the tab switcher. |
| 93 const char kEnableTabSwitcher[] = "enable-tab-switcher"; | 96 const char kEnableTabSwitcher[] = "enable-tab-switcher"; |
| 94 | 97 |
| 98 // Enables Physical Web scanning for nearby URLs. |
| 99 const char kEnableIOSPhysicalWeb[] = "enable-ios-physical-web"; |
| 100 |
| 95 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data | 101 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data |
| 96 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids | 102 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids |
| 97 // prefixed with the character "t" will be treated as Trigger Variation Ids. | 103 // prefixed with the character "t" will be treated as Trigger Variation Ids. |
| 98 const char kIOSForceVariationIds[] = "force-variation-ids"; | 104 const char kIOSForceVariationIds[] = "force-variation-ids"; |
| 99 | 105 |
| 100 // Enables the recording of metrics reports but disables reporting. In contrast | 106 // Enables the recording of metrics reports but disables reporting. In contrast |
| 101 // to kDisableMetrics, this executes all the code that a normal client would | 107 // to kDisableMetrics, this executes all the code that a normal client would |
| 102 // use for reporting, except the report is dropped rather than sent to the | 108 // use for reporting, except the report is dropped rather than sent to the |
| 103 // server. This is useful for finding issues in the metrics code during UI and | 109 // server. This is useful for finding issues in the metrics code during UI and |
| 104 // performance tests. | 110 // performance tests. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 119 | 125 |
| 120 // Enables grouping websites by domain and filtering them by period. | 126 // Enables grouping websites by domain and filtering them by period. |
| 121 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history"; | 127 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history"; |
| 122 | 128 |
| 123 // Use to opt-in to marking HTTP as non-secure. | 129 // Use to opt-in to marking HTTP as non-secure. |
| 124 const char kMarkNonSecureAs[] = "mark-non-secure-as"; | 130 const char kMarkNonSecureAs[] = "mark-non-secure-as"; |
| 125 const char kMarkNonSecureAsNeutral[] = "neutral"; | 131 const char kMarkNonSecureAsNeutral[] = "neutral"; |
| 126 const char kMarkNonSecureAsNonSecure[] = "non-secure"; | 132 const char kMarkNonSecureAsNonSecure[] = "non-secure"; |
| 127 | 133 |
| 128 } // namespace switches | 134 } // namespace switches |
| OLD | NEW |