Justin Cohen | 2d81c58 | 2018-01-22 14:46:44 | [diff] [blame] | 1 | // Copyright 2018 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/ui/ui_feature_flags.h" |
| 6 | |
Roberto Moura | b87b972 | 2020-06-17 17:12:09 | [diff] [blame] | 7 | const base::Feature kExpandedTabStrip{"ExpandedTabStrip", |
| 8 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 9 | |
edchin | b3e7535 | 2019-03-29 11:14:19 | [diff] [blame] | 10 | // TODO(crbug.com/945811): Using |-drawViewHierarchyInRect:afterScreenUpdates:| |
| 11 | // has adverse flickering when taking a snapshot of the NTP while in the app |
| 12 | // switcher. |
edchin | 5ae0b4c | 2019-01-06 06:52:28 | [diff] [blame] | 13 | const base::Feature kSnapshotDrawView{"SnapshotDrawView", |
edchin | b3e7535 | 2019-03-29 11:14:19 | [diff] [blame] | 14 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Robbie Gibson | 80d732e | 2019-01-10 10:42:49 | [diff] [blame] | 15 | |
Gauthier Ambard | 5f61086 | 2019-01-17 11:43:55 | [diff] [blame] | 16 | const base::Feature kSettingsRefresh{"SettingsRefresh", |
| 17 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Yi Su | 8b117204 | 2019-03-19 10:16:56 | [diff] [blame] | 18 | |
Justin Cohen | c57413a | 2019-09-30 19:42:29 | [diff] [blame] | 19 | const base::Feature kEmbedderBlockRestoreUrl{"EmbedderBlockRestoreUrl", |
Justin Cohen | 25253e8d | 2019-12-17 16:49:59 | [diff] [blame] | 20 | base::FEATURE_DISABLED_BY_DEFAULT}; |
David Jean | a9bf62b | 2019-10-04 11:53:36 | [diff] [blame] | 21 | |
David Jean | faeae6f9 | 2020-06-05 08:51:52 | [diff] [blame] | 22 | const base::Feature kDisableProgressBarAnimation{ |
| 23 | "DisableProgressBarAnimation", base::FEATURE_DISABLED_BY_DEFAULT}; |
Rohit Rao | e7b48931 | 2019-11-12 12:28:55 | [diff] [blame] | 24 | |
| 25 | const base::Feature kVoiceOverUnstackedTabstrip{ |
Rohit Rao | 7e83681 | 2019-11-26 16:09:58 | [diff] [blame] | 26 | "VoiceOverUnstackedTabstrip", base::FEATURE_ENABLED_BY_DEFAULT}; |
Rohit Rao | e7b48931 | 2019-11-12 12:28:55 | [diff] [blame] | 27 | |
| 28 | const base::Feature kForceUnstackedTabstrip{"ForceUnstackedTabstrip", |
| 29 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Gauthier Ambard | e813c07f | 2020-01-09 10:18:49 | [diff] [blame] | 30 | |
Rohit Rao | f94bd87 | 2020-01-22 15:53:53 | [diff] [blame] | 31 | const base::Feature kTestFeature{"TestFeature", |
Stepan Khapugin | 3f2a66df | 2020-01-21 21:44:02 | [diff] [blame] | 32 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Rohit Rao | f94bd87 | 2020-01-22 15:53:53 | [diff] [blame] | 33 | |
Javier Ernesto Flores Robles | 157b0f4 | 2020-03-13 15:07:52 | [diff] [blame] | 34 | const base::Feature kFirstResponderSendAction{ |
| 35 | "FirstResponderSendAction", base::FEATURE_DISABLED_BY_DEFAULT}; |
Nohemi Fernandez | 41e256e | 2020-03-25 11:52:11 | [diff] [blame] | 36 | |
Sebastien Lalancette | 414fc1ce | 2020-06-11 14:43:06 | [diff] [blame] | 37 | const base::Feature kEnableNativeContextMenus{ |
| 38 | "EnableNativeContextMenus", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 39 | |
Éric Noyau | 41b90108f | 2020-04-22 21:37:55 | [diff] [blame] | 40 | #if defined(__IPHONE_13_4) |
| 41 | const base::Feature kPointerSupport{"PointerSupport", |
| 42 | base::FEATURE_ENABLED_BY_DEFAULT}; |
| 43 | #endif // defined(__IPHONE_13_4) |
Nohemi Fernandez | 9402147 | 2020-05-05 08:33:58 | [diff] [blame] | 44 | |
| 45 | const base::Feature kEnableMyGoogle{"EnableMyGoogle", |
Nohemi Fernandez | 5d7983b8 | 2020-06-29 10:04:13 | [diff] [blame] | 46 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Tina Wang | 52aea19d | 2020-05-15 16:47:33 | [diff] [blame] | 47 | |
| 48 | const base::Feature kEnableIOSManagedSettingsUI{ |
Sébastien Séguin-Gagnon | 58198d73 | 2020-06-29 16:05:47 | [diff] [blame] | 49 | "EnableIOSManagedSettingsUI", base::FEATURE_ENABLED_BY_DEFAULT}; |
Sean Harrison | 0ada3b08 | 2020-05-18 19:07:51 | [diff] [blame] | 50 | |
| 51 | const base::Feature kSafetyCheckIOS{"SafetyCheckIOS", |
| 52 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Maxime Charland | 425d9b4 | 2020-06-01 19:47:21 | [diff] [blame] | 53 | |
| 54 | const base::Feature kIllustratedEmptyStates{"IllustratedEmptyStates", |
| 55 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Tommy Martino | 6b4eb7e | 2020-06-25 18:25:41 | [diff] [blame] | 56 | |
| 57 | const base::Feature kSharedHighlightingIOS{"SharedHighlightingIOS", |
| 58 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Julian Mentasti-Meza | 4c0a416 | 2020-07-20 18:51:41 | [diff] [blame] | 59 | |
| 60 | const base::Feature kEnableFullPageScreenshot{ |
| 61 | "EnableFullPageScreenshot", base::FEATURE_DISABLED_BY_DEFAULT}; |
Javier Ernesto Flores Robles | 4c9b6b65 | 2020-08-05 10:35:30 | [diff] [blame] | 62 | |
| 63 | const base::Feature kEnableAutofillPasswordReauthIOS{ |
| 64 | "EnableAutofillPasswordReauthIOS", base::FEATURE_DISABLED_BY_DEFAULT}; |
Chris Lu | 3450330 | 2020-09-11 22:08:07 | [diff] [blame] | 65 | |
| 66 | const base::Feature kDefaultBrowserFullscreenPromo{ |
| 67 | "DefaultBrowserFullscreenPromo", base::FEATURE_DISABLED_BY_DEFAULT}; |
Gauthier Ambard | a1d88a0 | 2020-09-14 11:46:37 | [diff] [blame] | 68 | |
| 69 | const base::Feature kDefaultBrowserSettings{"DefaultBrowserSettings", |
| 70 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Nazerke | 3e993f7 | 2020-09-21 13:00:06 | [diff] [blame] | 71 | |
| 72 | // TODO(crbug.com/1128242): Remove this flag after the refactoring work is |
| 73 | // finished. |
| 74 | const base::Feature kModernTabStrip{"ModernTabStrip", |
| 75 | base::FEATURE_DISABLED_BY_DEFAULT}; |