| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) | 238 if (base::FeatureList::IsEnabled(features::kDocumentWriteEvaluator)) |
| 239 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); | 239 WebRuntimeFeatures::enableDocumentWriteEvaluator(true); |
| 240 | 240 |
| 241 WebRuntimeFeatures::enableMediaDocumentDownloadButton( | 241 WebRuntimeFeatures::enableMediaDocumentDownloadButton( |
| 242 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); | 242 base::FeatureList::IsEnabled(features::kMediaDocumentDownloadButton)); |
| 243 | 243 |
| 244 if (base::FeatureList::IsEnabled(features::kPointerEvents)) | 244 if (base::FeatureList::IsEnabled(features::kPointerEvents)) |
| 245 WebRuntimeFeatures::enablePointerEvent(true); | 245 WebRuntimeFeatures::enablePointerEvent(true); |
| 246 | 246 |
| 247 if (base::FeatureList::IsEnabled(features::kPointerEventV1SpecCapturing)) |
| 248 WebRuntimeFeatures::enablePointerEventV1SpecCapturing(true); |
| 249 |
| 247 if (base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)) | 250 if (base::FeatureList::IsEnabled(features::kPassiveDocumentEventListeners)) |
| 248 WebRuntimeFeatures::enablePassiveDocumentEventListeners(true); | 251 WebRuntimeFeatures::enablePassiveDocumentEventListeners(true); |
| 249 | 252 |
| 250 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) | 253 if (base::FeatureList::IsEnabled(features::kPassiveEventListenersDueToFling)) |
| 251 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); | 254 WebRuntimeFeatures::enablePassiveEventListenersDueToFling(true); |
| 252 | 255 |
| 253 WebRuntimeFeatures::enableFeatureFromString( | 256 WebRuntimeFeatures::enableFeatureFromString( |
| 254 "FontCacheScaling", | 257 "FontCacheScaling", |
| 255 base::FeatureList::IsEnabled(features::kFontCacheScaling)); | 258 base::FeatureList::IsEnabled(features::kFontCacheScaling)); |
| 256 | 259 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 293 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 291 std::vector<std::string> disabled_features = base::SplitString( | 294 std::vector<std::string> disabled_features = base::SplitString( |
| 292 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 295 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 293 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 296 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 294 for (const std::string& feature : disabled_features) | 297 for (const std::string& feature : disabled_features) |
| 295 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 298 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 296 } | 299 } |
| 297 } | 300 } |
| 298 | 301 |
| 299 } // namespace content | 302 } // namespace content |
| OLD | NEW |