droger | f83b9126 | 2015-03-05 19:45:19 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "ios/chrome/browser/chrome_switches.h" |
| 6 | |
| 7 | namespace switches { |
| 8 | |
| 9 | // ----------------------------------------------------------------------------- |
| 10 | // When commenting your switch, please use the same voice as surrounding |
| 11 | // comments. Imagine "This switch..." at the beginning of the phrase, and it'll |
| 12 | // all work out. |
| 13 | // ----------------------------------------------------------------------------- |
| 14 | |
noyau | c7892c1 | 2016-05-12 12:22:01 | [diff] [blame] | 15 | // Disables all bookmarks view in bookmark manager. |
| 16 | const char kDisableAllBookmarksView[] = "disable-all-bookmarks-view"; |
| 17 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 18 | // Disables Contextual Search. |
| 19 | const char kDisableContextualSearch[] = "disable-contextual-search"; |
| 20 | |
| 21 | // Disables a workaround for fast inset updates for UIWebView.scrollView. |
| 22 | const char kDisableIOSFastWebScrollViewInsets[] = |
| 23 | "disable-fast-web-scroll-view-insets"; |
| 24 | |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 25 | // Lists separated by commas the name of features to disable. |
| 26 | // See base::FeatureList::InitializeFromCommandLine for details. |
| 27 | const char kDisableIOSFeatures[] = "disable-features"; |
| 28 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 29 | // Disable password generation for iOS. |
| 30 | const char kDisableIOSPasswordGeneration[] = "disable-ios-password-generation"; |
| 31 | |
| 32 | // Disable showing available password credentials in the keyboard accessory |
| 33 | // view when focused on form fields. |
| 34 | const char kDisableIOSPasswordSuggestions[] = |
| 35 | "disable-ios-password-suggestions"; |
| 36 | |
sdefresne | b53a987 | 2015-05-18 20:01:49 | [diff] [blame] | 37 | // Disables the use of WKWebView instead of UIWebView. |
| 38 | const char kDisableIOSWKWebView[] = "disable-wkwebview"; |
| 39 | |
gchatz | 339541b4 | 2015-12-21 14:23:01 | [diff] [blame] | 40 | // Disable the snapshots lru cache. |
| 41 | const char kDisableLRUSnapshotCache[] = "disable-lru-snapshot-cache"; |
| 42 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 43 | // Disable auto-reload of error pages if offline. |
| 44 | const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
| 45 | |
gchatz | 339541b4 | 2015-12-21 14:23:01 | [diff] [blame] | 46 | // Disables the tab switcher. |
| 47 | const char kDisableTabSwitcher[] = "disable-tab-switcher"; |
| 48 | |
mattreynolds | c9f1df5 | 2016-06-29 08:30:04 | [diff] [blame] | 49 | // Disables Physical Web scanning for nearby URLs. |
| 50 | const char kDisableIOSPhysicalWeb[] = "disable-ios-physical-web"; |
| 51 | |
noyau | c7892c1 | 2016-05-12 12:22:01 | [diff] [blame] | 52 | // Enables all bookmarks view in bookmark manager. |
| 53 | const char kEnableAllBookmarksView[] = "enable-all-bookmarks-view"; |
| 54 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 55 | // Enables Contextual Search. |
| 56 | const char kEnableContextualSearch[] = "enable-contextual-search"; |
| 57 | |
| 58 | // Enable the experimental Credential Manager JavaScript API. |
| 59 | const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; |
| 60 | |
| 61 | // Enables a workaround for fast inset updates for UIWebView.scrollView. |
| 62 | const char kEnableIOSFastWebScrollViewInsets[] = |
| 63 | "enable-fast-web-scroll-view-insets"; |
| 64 | |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 65 | // Lists separated by commas the name of features to disable. |
| 66 | // See base::FeatureList::InitializeFromCommandLine for details. |
| 67 | const char kEnableIOSFeatures[] = "enable-features"; |
| 68 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 69 | // Enables support for Handoff from Chrome on iOS to the default browser of |
| 70 | // other Apple devices. |
| 71 | const char kEnableIOSHandoffToOtherDevices[] = |
| 72 | "enable-ios-handoff-to-other-devices"; |
| 73 | |
| 74 | // Enable password generation for iOS. |
| 75 | const char kEnableIOSPasswordGeneration[] = "enable-ios-password-generation"; |
| 76 | |
sdefresne | b53a987 | 2015-05-18 20:01:49 | [diff] [blame] | 77 | // Enables the use of WKWebView instead of UIWebView. |
| 78 | const char kEnableIOSWKWebView[] = "enable-wkwebview"; |
| 79 | |
gchatz | 339541b4 | 2015-12-21 14:23:01 | [diff] [blame] | 80 | // Enables the snapshot lru cache. |
| 81 | const char kEnableLRUSnapshotCache[] = "enable-lru-snapshot-cache"; |
| 82 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 83 | // Enable auto-reload of error pages if offline. |
| 84 | const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload"; |
| 85 | |
sklencarova | 39c8887a | 2016-07-19 14:45:57 | [diff] [blame] | 86 | // Enables the QR Code scanner. |
| 87 | const char kEnableQRScanner[] = "enable-qr-scanner"; |
| 88 | |
sdefresne | e265e23 | 2015-05-19 21:32:15 | [diff] [blame] | 89 | // Enables context-sensitive reader mode button in the toolbar. |
| 90 | const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon"; |
| 91 | |
gchatz | 339541b4 | 2015-12-21 14:23:01 | [diff] [blame] | 92 | // Enables the tab switcher. |
| 93 | const char kEnableTabSwitcher[] = "enable-tab-switcher"; |
| 94 | |
mattreynolds | c9f1df5 | 2016-06-29 08:30:04 | [diff] [blame] | 95 | // Enables Physical Web scanning for nearby URLs. |
| 96 | const char kEnableIOSPhysicalWeb[] = "enable-ios-physical-web"; |
| 97 | |
sdefresne | 14957be | 2015-12-07 15:49:13 | [diff] [blame] | 98 | // Forces additional Chrome Variation Ids that will be sent in X-Client-Data |
| 99 | // header, specified as a 64-bit encoded list of numeric experiment ids. Ids |
| 100 | // prefixed with the character "t" will be treated as Trigger Variation Ids. |
| 101 | const char kIOSForceVariationIds[] = "force-variation-ids"; |
| 102 | |
blundell | 498aca68 | 2015-10-26 07:08:44 | [diff] [blame] | 103 | // Enables the recording of metrics reports but disables reporting. In contrast |
| 104 | // to kDisableMetrics, this executes all the code that a normal client would |
| 105 | // use for reporting, except the report is dropped rather than sent to the |
| 106 | // server. This is useful for finding issues in the metrics code during UI and |
| 107 | // performance tests. |
| 108 | const char kIOSMetricsRecordingOnly[] = "metrics-recording-only"; |
| 109 | |
sdefresne | 89aa425 | 2015-11-05 09:29:15 | [diff] [blame] | 110 | // A string used to override the default user agent with a custom one. |
| 111 | const char kUserAgent[] = "user-agent"; |
| 112 | |
sdefresne | 0de3b61f | 2015-11-18 15:22:29 | [diff] [blame] | 113 | // These mappings only apply to the host resolver. |
| 114 | const char kIOSHostResolverRules[] = "host-resolver-rules"; |
| 115 | |
sdefresne | 7557365 | 2015-11-26 14:57:03 | [diff] [blame] | 116 | // Ignores certificate-related errors. |
| 117 | const char kIOSIgnoreCertificateErrors[] = "ignore-certificate-errors"; |
| 118 | |
sdefresne | 2b8a387 | 2015-11-18 18:11:03 | [diff] [blame] | 119 | // Allows for forcing socket connections to http/https to use fixed ports. |
| 120 | const char kIOSTestingFixedHttpPort[] = "testing-fixed-http-port"; |
| 121 | const char kIOSTestingFixedHttpsPort[] = "testing-fixed-https-port"; |
| 122 | |
sdefresne | 14957be | 2015-12-07 15:49:13 | [diff] [blame] | 123 | // Enables grouping websites by domain and filtering them by period. |
| 124 | const char kHistoryEnableGroupByDomain[] = "enable-grouped-history"; |
| 125 | |
| 126 | // Use to opt-in to marking HTTP as non-secure. |
| 127 | const char kMarkNonSecureAs[] = "mark-non-secure-as"; |
| 128 | const char kMarkNonSecureAsNeutral[] = "neutral"; |
| 129 | const char kMarkNonSecureAsNonSecure[] = "non-secure"; |
| 130 | |
droger | f83b9126 | 2015-03-05 19:45:19 | [diff] [blame] | 131 | } // namespace switches |