| 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/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // Android does not yet support SharedWorker. crbug.com/154571 | 55 // Android does not yet support SharedWorker. crbug.com/154571 |
| 56 WebRuntimeFeatures::enableSharedWorker(false); | 56 WebRuntimeFeatures::enableSharedWorker(false); |
| 57 // Android does not yet support NavigatorContentUtils. | 57 // Android does not yet support NavigatorContentUtils. |
| 58 WebRuntimeFeatures::enableNavigatorContentUtils(false); | 58 WebRuntimeFeatures::enableNavigatorContentUtils(false); |
| 59 WebRuntimeFeatures::enableOrientationEvent(true); | 59 WebRuntimeFeatures::enableOrientationEvent(true); |
| 60 WebRuntimeFeatures::enableFastMobileScrolling(true); | 60 WebRuntimeFeatures::enableFastMobileScrolling(true); |
| 61 WebRuntimeFeatures::enableMediaCapture(true); | 61 WebRuntimeFeatures::enableMediaCapture(true); |
| 62 // Android won't be able to reliably support non-persistent notifications, the | 62 // Android won't be able to reliably support non-persistent notifications, the |
| 63 // intended behavior for which is in flux by itself. | 63 // intended behavior for which is in flux by itself. |
| 64 WebRuntimeFeatures::enableNotificationConstructor(false); | 64 WebRuntimeFeatures::enableNotificationConstructor(false); |
| 65 WebRuntimeFeatures::enableNewMediaPlaybackUi(true); |
| 65 #else | 66 #else |
| 66 WebRuntimeFeatures::enableNavigatorContentUtils(true); | 67 WebRuntimeFeatures::enableNavigatorContentUtils(true); |
| 67 #endif // defined(OS_ANDROID) | 68 #endif // defined(OS_ANDROID) |
| 68 | 69 |
| 69 #if defined(OS_ANDROID) || defined(USE_AURA) | 70 #if defined(OS_ANDROID) || defined(USE_AURA) |
| 70 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); | 71 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); |
| 71 #endif | 72 #endif |
| 72 | 73 |
| 73 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) | 74 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) |
| 74 // Only Android, ChromeOS, and IOS support NetInfo right now. | 75 // Only Android, ChromeOS, and IOS support NetInfo right now. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 222 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 222 std::vector<std::string> disabled_features = base::SplitString( | 223 std::vector<std::string> disabled_features = base::SplitString( |
| 223 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 224 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 224 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 225 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 225 for (const std::string& feature : disabled_features) | 226 for (const std::string& feature : disabled_features) |
| 226 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 227 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 227 } | 228 } |
| 228 } | 229 } |
| 229 | 230 |
| 230 } // namespace content | 231 } // namespace content |
| OLD | NEW |