| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // RAF aligned mouse input events support. | 170 // RAF aligned mouse input events support. |
| 171 const base::Feature kRafAlignedMouseInputEvents{ | 171 const base::Feature kRafAlignedMouseInputEvents{ |
| 172 "RafAlignedMouseInput", base::FEATURE_DISABLED_BY_DEFAULT}; | 172 "RafAlignedMouseInput", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 173 | 173 |
| 174 // RAF aligned touch input events support. | 174 // RAF aligned touch input events support. |
| 175 const base::Feature kRafAlignedTouchInputEvents{ | 175 const base::Feature kRafAlignedTouchInputEvents{ |
| 176 "RafAlignedTouchInput", base::FEATURE_DISABLED_BY_DEFAULT}; | 176 "RafAlignedTouchInput", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 177 | 177 |
| 178 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is | 178 // If Pepper 3D Image Chromium is allowed, this feature controls whether it is |
| 179 // enabled. | 179 // enabled. |
| 180 const base::Feature kPepper3DImageChromium{"Pepper3DImageChromium", | 180 const base::Feature kPepper3DImageChromium { |
| 181 base::FEATURE_ENABLED_BY_DEFAULT}; | 181 "Pepper3DImageChromium", |
| 182 #if defined(OS_MACOSX) |
| 183 base::FEATURE_ENABLED_BY_DEFAULT |
| 184 #else |
| 185 base::FEATURE_DISABLED_BY_DEFAULT |
| 186 #endif |
| 187 }; |
| 182 | 188 |
| 183 // Throttle Blink's rendering pipeline based on frame visibility. | 189 // Throttle Blink's rendering pipeline based on frame visibility. |
| 184 const base::Feature kRenderingPipelineThrottling{ | 190 const base::Feature kRenderingPipelineThrottling{ |
| 185 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; | 191 "RenderingPipelineThrottling", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 186 | 192 |
| 187 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). | 193 // Scrolls to compensate for layout movements (bit.ly/scroll-anchoring). |
| 188 const base::Feature kScrollAnchoring{"ScrollAnchoring", | 194 const base::Feature kScrollAnchoring{"ScrollAnchoring", |
| 189 base::FEATURE_ENABLED_BY_DEFAULT}; | 195 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 190 | 196 |
| 191 // Navigation preload feature of service workers. | 197 // Navigation preload feature of service workers. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 #endif // !defined(OS_ANDROID) | 289 #endif // !defined(OS_ANDROID) |
| 284 | 290 |
| 285 #if defined(OS_WIN) | 291 #if defined(OS_WIN) |
| 286 // Emergency "off switch" for new Windows sandbox security mitigation, | 292 // Emergency "off switch" for new Windows sandbox security mitigation, |
| 287 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. | 293 // sandbox::MITIGATION_EXTENSION_POINT_DISABLE. |
| 288 const base::Feature kWinSboxDisableExtensionPoints{ | 294 const base::Feature kWinSboxDisableExtensionPoints{ |
| 289 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; | 295 "WinSboxDisableExtensionPoint", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 290 #endif | 296 #endif |
| 291 | 297 |
| 292 } // namespace features | 298 } // namespace features |
| OLD | NEW |