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 |
11 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll | 11 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll |
12 // all work out. | 12 // all work out. |
13 // ----------------------------------------------------------------------------- | 13 // ----------------------------------------------------------------------------- |
14 | 14 |
| 15 // Disables Contextual Search. |
| 16 const char kDisableContextualSearch[] = "disable-contextual-search"; |
| 17 |
| 18 // Disables a workaround for fast inset updates for UIWebView.scrollView. |
| 19 const char kDisableIOSFastWebScrollViewInsets[] = |
| 20 "disable-fast-web-scroll-view-insets"; |
| 21 |
| 22 // Disable password generation for iOS. |
| 23 const char kDisableIOSPasswordGeneration[] = "disable-ios-password-generation"; |
| 24 |
| 25 // Disable showing available password credentials in the keyboard accessory |
| 26 // view when focused on form fields. |
| 27 const char kDisableIOSPasswordSuggestions[] = |
| 28 "disable-ios-password-suggestions"; |
| 29 |
15 // Disables the use of WKWebView instead of UIWebView. | 30 // Disables the use of WKWebView instead of UIWebView. |
16 const char kDisableIOSWKWebView[] = "disable-wkwebview"; | 31 const char kDisableIOSWKWebView[] = "disable-wkwebview"; |
17 | 32 |
| 33 // Disables support for keyboard commands. |
| 34 const char kDisableKeyboardCommands[] = "disable-keyboard-commands"; |
| 35 |
| 36 // Disables NTP favicons. |
| 37 const char kDisableNTPFavicons[] = "disable-ntp-favicons"; |
| 38 |
| 39 // Disable auto-reload of error pages if offline. |
| 40 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
| 41 |
| 42 // Disables the tab switcher. |
| 43 const char kDisableTabSwitcher[] = "disable-tab-switcher"; |
| 44 |
| 45 // Enables Contextual Search. |
| 46 const char kEnableContextualSearch[] = "enable-contextual-search"; |
| 47 |
| 48 // Enable the experimental Credential Manager JavaScript API. |
| 49 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; |
| 50 |
| 51 // Enables a workaround for fast inset updates for UIWebView.scrollView. |
| 52 const char kEnableIOSFastWebScrollViewInsets[] = |
| 53 "enable-fast-web-scroll-view-insets"; |
| 54 |
| 55 // Enables support for Handoff from Chrome on iOS to the default browser of |
| 56 // other Apple devices. |
| 57 const char kEnableIOSHandoffToOtherDevices[] = |
| 58 "enable-ios-handoff-to-other-devices"; |
| 59 |
| 60 // Enable password generation for iOS. |
| 61 const char kEnableIOSPasswordGeneration[] = "enable-ios-password-generation"; |
| 62 |
18 // Enables the use of WKWebView instead of UIWebView. | 63 // Enables the use of WKWebView instead of UIWebView. |
19 const char kEnableIOSWKWebView[] = "enable-wkwebview"; | 64 const char kEnableIOSWKWebView[] = "enable-wkwebview"; |
20 | 65 |
| 66 // Enables NTP favicons. |
| 67 const char kEnableNTPFavicons[] = "enable-ntp-favicons"; |
| 68 |
| 69 // Enable auto-reload of error pages if offline. |
| 70 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload"; |
| 71 |
21 // Enables context-sensitive reader mode button in the toolbar. | 72 // Enables context-sensitive reader mode button in the toolbar. |
22 const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon"; | 73 const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon"; |
23 | 74 |
24 // Disables support for keyboard commands. | 75 // Enables the tab switcher. |
25 const char kDisableKeyboardCommands[] = "disable-keyboard-commands"; | 76 const char kEnableTabSwitcher[] = "enable-tab-switcher"; |
26 | 77 |
27 // Enables the recording of metrics reports but disables reporting. In contrast | 78 // Enables the recording of metrics reports but disables reporting. In contrast |
28 // to kDisableMetrics, this executes all the code that a normal client would | 79 // to kDisableMetrics, this executes all the code that a normal client would |
29 // use for reporting, except the report is dropped rather than sent to the | 80 // use for reporting, except the report is dropped rather than sent to the |
30 // server. This is useful for finding issues in the metrics code during UI and | 81 // server. This is useful for finding issues in the metrics code during UI and |
31 // performance tests. | 82 // performance tests. |
32 const char kIOSMetricsRecordingOnly[] = "metrics-recording-only"; | 83 const char kIOSMetricsRecordingOnly[] = "metrics-recording-only"; |
33 | 84 |
| 85 // A string used to override the default user agent with a custom one. |
| 86 const char kUserAgent[] = "user-agent"; |
| 87 |
34 } // namespace switches | 88 } // namespace switches |
OLD | NEW |