blob: 530184907c4456ff81ffeb15f7986bbf4d76224c [file] [log] [blame]
drogerf83b91262015-03-05 19:45:191// 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
7namespace 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
noyauc7892c12016-05-12 12:22:0115// Disables all bookmarks view in bookmark manager.
16const char kDisableAllBookmarksView[] = "disable-all-bookmarks-view";
17
sdefresne89aa4252015-11-05 09:29:1518// Disables Contextual Search.
19const char kDisableContextualSearch[] = "disable-contextual-search";
20
21// Disables a workaround for fast inset updates for UIWebView.scrollView.
22const char kDisableIOSFastWebScrollViewInsets[] =
23 "disable-fast-web-scroll-view-insets";
24
sdefresnec9763902015-12-02 10:30:1125// Lists separated by commas the name of features to disable.
26// See base::FeatureList::InitializeFromCommandLine for details.
27const char kDisableIOSFeatures[] = "disable-features";
28
sdefresne89aa4252015-11-05 09:29:1529// Disable password generation for iOS.
30const char kDisableIOSPasswordGeneration[] = "disable-ios-password-generation";
31
32// Disable showing available password credentials in the keyboard accessory
33// view when focused on form fields.
34const char kDisableIOSPasswordSuggestions[] =
35 "disable-ios-password-suggestions";
36
sdefresneb53a9872015-05-18 20:01:4937// Disables the use of WKWebView instead of UIWebView.
38const char kDisableIOSWKWebView[] = "disable-wkwebview";
39
gchatz339541b42015-12-21 14:23:0140// Disable the snapshots lru cache.
41const char kDisableLRUSnapshotCache[] = "disable-lru-snapshot-cache";
42
sdefresne89aa4252015-11-05 09:29:1543// Disable auto-reload of error pages if offline.
44const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
45
gchatz339541b42015-12-21 14:23:0146// Disables the tab switcher.
47const char kDisableTabSwitcher[] = "disable-tab-switcher";
48
mattreynoldsc9f1df52016-06-29 08:30:0449// Disables Physical Web scanning for nearby URLs.
50const char kDisableIOSPhysicalWeb[] = "disable-ios-physical-web";
51
noyauc7892c12016-05-12 12:22:0152// Enables all bookmarks view in bookmark manager.
53const char kEnableAllBookmarksView[] = "enable-all-bookmarks-view";
54
sdefresne89aa4252015-11-05 09:29:1555// Enables Contextual Search.
56const char kEnableContextualSearch[] = "enable-contextual-search";
57
58// Enable the experimental Credential Manager JavaScript API.
59const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api";
60
61// Enables a workaround for fast inset updates for UIWebView.scrollView.
62const char kEnableIOSFastWebScrollViewInsets[] =
63 "enable-fast-web-scroll-view-insets";
64
sdefresnec9763902015-12-02 10:30:1165// Lists separated by commas the name of features to disable.
66// See base::FeatureList::InitializeFromCommandLine for details.
67const char kEnableIOSFeatures[] = "enable-features";
68
sdefresne89aa4252015-11-05 09:29:1569// Enables support for Handoff from Chrome on iOS to the default browser of
70// other Apple devices.
71const char kEnableIOSHandoffToOtherDevices[] =
72 "enable-ios-handoff-to-other-devices";
73
74// Enable password generation for iOS.
75const char kEnableIOSPasswordGeneration[] = "enable-ios-password-generation";
76
sdefresneb53a9872015-05-18 20:01:4977// Enables the use of WKWebView instead of UIWebView.
78const char kEnableIOSWKWebView[] = "enable-wkwebview";
79
gchatz339541b42015-12-21 14:23:0180// Enables the snapshot lru cache.
81const char kEnableLRUSnapshotCache[] = "enable-lru-snapshot-cache";
82
sdefresne89aa4252015-11-05 09:29:1583// Enable auto-reload of error pages if offline.
84const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
85
sklencarova39c8887a2016-07-19 14:45:5786// Enables the QR Code scanner.
87const char kEnableQRScanner[] = "enable-qr-scanner";
88
sdefresnee265e232015-05-19 21:32:1589// Enables context-sensitive reader mode button in the toolbar.
90const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon";
91
gchatz339541b42015-12-21 14:23:0192// Enables the tab switcher.
93const char kEnableTabSwitcher[] = "enable-tab-switcher";
94
mattreynoldsc9f1df52016-06-29 08:30:0495// Enables Physical Web scanning for nearby URLs.
96const char kEnableIOSPhysicalWeb[] = "enable-ios-physical-web";
97
sdefresne14957be2015-12-07 15:49:1398// 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.
101const char kIOSForceVariationIds[] = "force-variation-ids";
102
blundell498aca682015-10-26 07:08:44103// 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.
108const char kIOSMetricsRecordingOnly[] = "metrics-recording-only";
109
sdefresne89aa4252015-11-05 09:29:15110// A string used to override the default user agent with a custom one.
111const char kUserAgent[] = "user-agent";
112
sdefresne0de3b61f2015-11-18 15:22:29113// These mappings only apply to the host resolver.
114const char kIOSHostResolverRules[] = "host-resolver-rules";
115
sdefresne75573652015-11-26 14:57:03116// Ignores certificate-related errors.
117const char kIOSIgnoreCertificateErrors[] = "ignore-certificate-errors";
118
sdefresne2b8a3872015-11-18 18:11:03119// Allows for forcing socket connections to http/https to use fixed ports.
120const char kIOSTestingFixedHttpPort[] = "testing-fixed-http-port";
121const char kIOSTestingFixedHttpsPort[] = "testing-fixed-https-port";
122
sdefresne14957be2015-12-07 15:49:13123// Enables grouping websites by domain and filtering them by period.
124const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
125
126// Use to opt-in to marking HTTP as non-secure.
127const char kMarkNonSecureAs[] = "mark-non-secure-as";
128const char kMarkNonSecureAsNeutral[] = "neutral";
129const char kMarkNonSecureAsNonSecure[] = "non-secure";
130
drogerf83b91262015-03-05 19:45:19131} // namespace switches