| 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 23 matching lines...) Expand all Loading... |
| 34 // Android does not yet support NavigatorContentUtils. | 34 // Android does not yet support NavigatorContentUtils. |
| 35 WebRuntimeFeatures::enableNavigatorContentUtils(false); | 35 WebRuntimeFeatures::enableNavigatorContentUtils(false); |
| 36 WebRuntimeFeatures::enableOrientationEvent(true); | 36 WebRuntimeFeatures::enableOrientationEvent(true); |
| 37 WebRuntimeFeatures::enableFastMobileScrolling(true); | 37 WebRuntimeFeatures::enableFastMobileScrolling(true); |
| 38 WebRuntimeFeatures::enableMediaCapture(true); | 38 WebRuntimeFeatures::enableMediaCapture(true); |
| 39 // Android won't be able to reliably support non-persistent notifications, the | 39 // Android won't be able to reliably support non-persistent notifications, the |
| 40 // intended behavior for which is in flux by itself. | 40 // intended behavior for which is in flux by itself. |
| 41 WebRuntimeFeatures::enableNotificationConstructor(false); | 41 WebRuntimeFeatures::enableNotificationConstructor(false); |
| 42 // Android does not yet support switching of audio output devices | 42 // Android does not yet support switching of audio output devices |
| 43 WebRuntimeFeatures::enableAudioOutputDevices(false); | 43 WebRuntimeFeatures::enableAudioOutputDevices(false); |
| 44 WebRuntimeFeatures::enableAutoplayMutedVideos(true); |
| 44 #else | 45 #else |
| 45 WebRuntimeFeatures::enableNavigatorContentUtils(true); | 46 WebRuntimeFeatures::enableNavigatorContentUtils(true); |
| 46 #endif // defined(OS_ANDROID) | 47 #endif // defined(OS_ANDROID) |
| 47 | 48 |
| 48 #if defined(OS_ANDROID) || defined(USE_AURA) | 49 #if defined(OS_ANDROID) || defined(USE_AURA) |
| 49 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); | 50 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); |
| 50 #endif | 51 #endif |
| 51 | 52 |
| 52 #if !(defined OS_ANDROID || defined OS_CHROMEOS) | 53 #if !(defined OS_ANDROID || defined OS_CHROMEOS) |
| 53 // Only Android, ChromeOS support NetInfo right now. | 54 // Only Android, ChromeOS support NetInfo right now. |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 330 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 330 std::vector<std::string> disabled_features = base::SplitString( | 331 std::vector<std::string> disabled_features = base::SplitString( |
| 331 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 332 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 332 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 333 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 333 for (const std::string& feature : disabled_features) | 334 for (const std::string& feature : disabled_features) |
| 334 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 335 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 335 } | 336 } |
| 336 } | 337 } |
| 337 | 338 |
| 338 } // namespace content | 339 } // namespace content |
| OLD | NEW |