Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: ios/chrome/browser/chrome_switches.cc

Issue 1420373005: Upstream some more iOS switches. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-constants
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/chrome_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/chrome_switches.cc
diff --git a/ios/chrome/browser/chrome_switches.cc b/ios/chrome/browser/chrome_switches.cc
index 4af3f0110667ede3dd73934c097a32647f7420a0..ae18f94faa23fc63c14a2bc7db9197effd956090 100644
--- a/ios/chrome/browser/chrome_switches.cc
+++ b/ios/chrome/browser/chrome_switches.cc
@@ -12,17 +12,68 @@ namespace switches {
// all work out.
// -----------------------------------------------------------------------------
+// Disables Contextual Search.
+const char kDisableContextualSearch[] = "disable-contextual-search";
+
+// Disables a workaround for fast inset updates for UIWebView.scrollView.
+const char kDisableIOSFastWebScrollViewInsets[] =
+ "disable-fast-web-scroll-view-insets";
+
+// Disable password generation for iOS.
+const char kDisableIOSPasswordGeneration[] = "disable-ios-password-generation";
+
+// Disable showing available password credentials in the keyboard accessory
+// view when focused on form fields.
+const char kDisableIOSPasswordSuggestions[] =
+ "disable-ios-password-suggestions";
+
// Disables the use of WKWebView instead of UIWebView.
const char kDisableIOSWKWebView[] = "disable-wkwebview";
+// Disables support for keyboard commands.
+const char kDisableKeyboardCommands[] = "disable-keyboard-commands";
+
+// Disables NTP favicons.
+const char kDisableNTPFavicons[] = "disable-ntp-favicons";
+
+// Disable auto-reload of error pages if offline.
+const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
+
+// Disables the tab switcher.
+const char kDisableTabSwitcher[] = "disable-tab-switcher";
+
+// Enables Contextual Search.
+const char kEnableContextualSearch[] = "enable-contextual-search";
+
+// Enable the experimental Credential Manager JavaScript API.
+const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api";
+
+// Enables a workaround for fast inset updates for UIWebView.scrollView.
+const char kEnableIOSFastWebScrollViewInsets[] =
+ "enable-fast-web-scroll-view-insets";
+
+// Enables support for Handoff from Chrome on iOS to the default browser of
+// other Apple devices.
+const char kEnableIOSHandoffToOtherDevices[] =
+ "enable-ios-handoff-to-other-devices";
+
+// Enable password generation for iOS.
+const char kEnableIOSPasswordGeneration[] = "enable-ios-password-generation";
+
// Enables the use of WKWebView instead of UIWebView.
const char kEnableIOSWKWebView[] = "enable-wkwebview";
+// Enables NTP favicons.
+const char kEnableNTPFavicons[] = "enable-ntp-favicons";
+
+// Enable auto-reload of error pages if offline.
+const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
+
// Enables context-sensitive reader mode button in the toolbar.
const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon";
-// Disables support for keyboard commands.
-const char kDisableKeyboardCommands[] = "disable-keyboard-commands";
+// Enables the tab switcher.
+const char kEnableTabSwitcher[] = "enable-tab-switcher";
// Enables the recording of metrics reports but disables reporting. In contrast
// to kDisableMetrics, this executes all the code that a normal client would
@@ -31,4 +82,7 @@ const char kDisableKeyboardCommands[] = "disable-keyboard-commands";
// performance tests.
const char kIOSMetricsRecordingOnly[] = "metrics-recording-only";
+// A string used to override the default user agent with a custom one.
+const char kUserAgent[] = "user-agent";
+
} // namespace switches
« no previous file with comments | « ios/chrome/browser/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698