| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/child/runtime_features.h" | 5 #include "content/child/runtime_features.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 | 253 |
| 254 WebRuntimeFeatures::enableMediaDocumentDownloadButton( | 254 WebRuntimeFeatures::enableMediaDocumentDownloadButton( |
| 255 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); | 255 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); |
| 256 | 256 |
| 257 WebRuntimeFeatures::enablePointerEvent( | 257 WebRuntimeFeatures::enablePointerEvent( |
| 258 base::FeatureList::IsEnabled(features::kPointerEvents)); | 258 base::FeatureList::IsEnabled(features::kPointerEvents)); |
| 259 | 259 |
| 260 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing)) | 260 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing)) |
| 261 WebRuntimeFeatures::enablePointerEventV1SpecCapturing(true); | 261 WebRuntimeFeatures::enablePointerEventV1SpecCapturing(true); |
| 262 | 262 |
| 263 if (base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)) | 263 WebRuntimeFeatures::enablePassiveDocumentEventListeners( |
| 264 WebRuntimeFeatures::enablePassiveDocumentEventListeners(true); | 264 base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)); |
| 265 | 265 |
| 266 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) | 266 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) |
| 267 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); | 267 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); |
| 268 | 268 |
| 269 WebRuntimeFeatures::enableFeatureFromString( | 269 WebRuntimeFeatures::enableFeatureFromString( |
| 270 "FontCacheScaling", | 270 "FontCacheScaling", |
| 271 base::FeatureList::IsEnabled(features::kFontCacheScaling)); | 271 base::FeatureList::IsEnabled(features::kFontCacheScaling)); |
| 272 | 272 |
| 273 WebRuntimeFeatures::enableFeatureFromString( | 273 WebRuntimeFeatures::enableFeatureFromString( |
| 274 "FramebustingNeedsSameOriginOrUserGesture", | 274 "FramebustingNeedsSameOriginOrUserGesture", |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 338 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 339 std::vector<std::string> disabled_features = base::SplitString( | 339 std::vector<std::string> disabled_features = base::SplitString( |
| 340 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 340 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 341 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 341 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 342 for (const std::string& feature : disabled_features) | 342 for (const std::string& feature : disabled_features) |
| 343 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 343 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 344 } | 344 } |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace content | 347 } // namespace content |
| OLD | NEW |