| 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 all bookmarks view in bookmark manager. | |
| 16 const char kDisableAllBookmarksView[] = "disable-all-bookmarks-view"; | |
| 17 | |
| 18 // Disables Contextual Search. | 15 // Disables Contextual Search. |
| 19 const char kDisableContextualSearch[] = "disable-contextual-search"; | 16 const char kDisableContextualSearch[] = "disable-contextual-search"; |
| 20 | 17 |
| 21 // Disables a workaround for fast inset updates for UIWebView.scrollView. | 18 // Disables a workaround for fast inset updates for UIWebView.scrollView. |
| 22 const char kDisableIOSFastWebScrollViewInsets[] = | 19 const char kDisableIOSFastWebScrollViewInsets[] = |
| 23 "disable-fast-web-scroll-view-insets"; | 20 "disable-fast-web-scroll-view-insets"; |
| 24 | 21 |
| 25 // Lists separated by commas the name of features to disable. | 22 // Lists separated by commas the name of features to disable. |
| 26 // See base::FeatureList::InitializeFromCommandLine for details. | 23 // See base::FeatureList::InitializeFromCommandLine for details. |
| 27 const char kDisableIOSFeatures[] = "disable-features"; | 24 const char kDisableIOSFeatures[] = "disable-features"; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 58 | 55 |
| 59 // Disables Physical Web scanning for nearby URLs. | 56 // Disables Physical Web scanning for nearby URLs. |
| 60 const char kDisableIOSPhysicalWeb[] = "disable-ios-physical-web"; | 57 const char kDisableIOSPhysicalWeb[] = "disable-ios-physical-web"; |
| 61 | 58 |
| 62 // Disables the string change from "Save Image" to "Download Image". | 59 // Disables the string change from "Save Image" to "Download Image". |
| 63 const char kDisableDownloadImageRenaming[] = "disable-download-image-renaming"; | 60 const char kDisableDownloadImageRenaming[] = "disable-download-image-renaming"; |
| 64 | 61 |
| 65 // Disables the Suggestions UI | 62 // Disables the Suggestions UI |
| 66 const char kDisableSuggestionsUI[] = "disable-suggestions-ui"; | 63 const char kDisableSuggestionsUI[] = "disable-suggestions-ui"; |
| 67 | 64 |
| 68 // Enables all bookmarks view in bookmark manager. | |
| 69 const char kEnableAllBookmarksView[] = "enable-all-bookmarks-view"; | |
| 70 | |
| 71 // Enables Contextual Search. | 65 // Enables Contextual Search. |
| 72 const char kEnableContextualSearch[] = "enable-contextual-search"; | 66 const char kEnableContextualSearch[] = "enable-contextual-search"; |
| 73 | 67 |
| 74 // Enables a workaround for fast inset updates for UIWebView.scrollView. | 68 // Enables a workaround for fast inset updates for UIWebView.scrollView. |
| 75 const char kEnableIOSFastWebScrollViewInsets[] = | 69 const char kEnableIOSFastWebScrollViewInsets[] = |
| 76 "enable-fast-web-scroll-view-insets"; | 70 "enable-fast-web-scroll-view-insets"; |
| 77 | 71 |
| 78 // Lists separated by commas the name of features to disable. | 72 // Lists separated by commas the name of features to disable. |
| 79 // See base::FeatureList::InitializeFromCommandLine for details. | 73 // See base::FeatureList::InitializeFromCommandLine for details. |
| 80 const char kEnableIOSFeatures[] = "enable-features"; | 74 const char kEnableIOSFeatures[] = "enable-features"; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const char kIOSIgnoreCertificateErrors[] = "ignore-certificate-errors"; | 133 const char kIOSIgnoreCertificateErrors[] = "ignore-certificate-errors"; |
| 140 | 134 |
| 141 // Allows for forcing socket connections to http/https to use fixed ports. | 135 // Allows for forcing socket connections to http/https to use fixed ports. |
| 142 const char kIOSTestingFixedHttpPort[] = "testing-fixed-http-port"; | 136 const char kIOSTestingFixedHttpPort[] = "testing-fixed-http-port"; |
| 143 const char kIOSTestingFixedHttpsPort[] = "testing-fixed-https-port"; | 137 const char kIOSTestingFixedHttpsPort[] = "testing-fixed-https-port"; |
| 144 | 138 |
| 145 // Enables grouping websites by domain and filtering them by period. | 139 // Enables grouping websites by domain and filtering them by period. |
| 146 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history"; | 140 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history"; |
| 147 | 141 |
| 148 } // namespace switches | 142 } // namespace switches |
| OLD | NEW |