| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "content/public/common/content_features.h" | 6 #include "content/public/common/content_features.h" |
| 7 | 7 |
| 8 namespace features { | 8 namespace features { |
| 9 | 9 |
| 10 // All features in alphabetical order. | 10 // All features in alphabetical order. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 // Whether we should force a touchstart and first touchmove per scroll event | 144 // Whether we should force a touchstart and first touchmove per scroll event |
| 145 // listeners to be non-blocking during fling. | 145 // listeners to be non-blocking during fling. |
| 146 const base::Feature kPassiveEventListenersDueToFling{ | 146 const base::Feature kPassiveEventListenersDueToFling{ |
| 147 "PassiveEventListenersDueToFling", base::FEATURE_ENABLED_BY_DEFAULT}; | 147 "PassiveEventListenersDueToFling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 148 | 148 |
| 149 // Pointer events support. | 149 // Pointer events support. |
| 150 const base::Feature kPointerEvents{"PointerEvent", | 150 const base::Feature kPointerEvents{"PointerEvent", |
| 151 base::FEATURE_ENABLED_BY_DEFAULT}; | 151 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 152 | 152 |
| 153 // Enables purge and suspend. | 153 // Enables Purge+Throttle on platforms except Android and MacOS. |
| 154 const base::Feature kPurgeAndSuspend{"PurgeAndSuspend", | 154 // (Android) Purge+Throttle depends on TabManager, but TabManager doesn't |
| 155 base::FEATURE_DISABLED_BY_DEFAULT}; | 155 // support Android. Enable after Android is supported. |
| 156 // (MacOS X) Enable after Purge+Throttle handles memory pressure signals |
| 157 // send by OS correctly. |
| 158 const base::Feature kPurgeAndSuspend { |
| 159 "PurgeAndSuspend", |
| 160 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 161 base::FEATURE_DISABLED_BY_DEFAULT |
| 162 #else |
| 163 base::FEATURE_ENABLED_BY_DEFAULT |
| 164 #endif |
| 165 }; |
| 156 | 166 |
| 157 // RAF aligned mouse input events support. | 167 // RAF aligned mouse input events support. |
| 158 const base::Feature kRafAlignedMouseInputEvents{ | 168 const base::Feature kRafAlignedMouseInputEvents{ |
| 159 "RafAlignedMouseInput", base::FEATURE_DISABLED_BY_DEFAULT}; | 169 "RafAlignedMouseInput", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 160 | 170 |
| 161 // RAF aligned touch input events support. | 171 // RAF aligned touch input events support. |
| 162 const base::Feature kRafAlignedTouchInputEvents{ | 172 const base::Feature kRafAlignedTouchInputEvents{ |
| 163 "RafAlignedTouchInput", base::FEATURE_ENABLED_BY_DEFAULT}; | 173 "RafAlignedTouchInput", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 164 | 174 |
| 165 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is | 175 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 #endif // !defined(OS_ANDROID) | 299 #endif // !defined(OS_ANDROID) |
| 290 | 300 |
| 291 #if defined(OS_WIN) | 301 #if defined(OS_WIN) |
| 292 // Emergency "off switch" for new Windows sandbox security mitigation, | 302 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 293 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 303 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 294 const base::Feature kWinSboxDisableExtensionPoints{ | 304 const base::Feature kWinSboxDisableExtensionPoints{ |
| 295 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 305 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 296 #endif | 306 #endif |
| 297 | 307 |
| 298 } // namespace features | 308 } // namespace features |
| OLD | NEW |