| 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 26 matching lines...) Expand all Loading... |
| 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 WebRuntimeFeatures::enableNewMediaPlaybackUi(true); | 42 WebRuntimeFeatures::enableNewMediaPlaybackUi(true); |
| 43 // Android does not yet support switching of audio output devices | 43 // Android does not yet support switching of audio output devices |
| 44 WebRuntimeFeatures::enableAudioOutputDevices(false); | 44 WebRuntimeFeatures::enableAudioOutputDevices(false); |
| 45 #else | 45 #else |
| 46 WebRuntimeFeatures::enableNavigatorContentUtils(true); | 46 WebRuntimeFeatures::enableNavigatorContentUtils(true); |
| 47 WebRuntimeFeatures::enableWebShare(false); |
| 47 #endif // defined(OS_ANDROID) | 48 #endif // defined(OS_ANDROID) |
| 48 | 49 |
| 49 #if defined(OS_ANDROID) || defined(USE_AURA) | 50 #if defined(OS_ANDROID) || defined(USE_AURA) |
| 50 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); | 51 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); |
| 51 #endif | 52 #endif |
| 52 | 53 |
| 53 #if !(defined OS_ANDROID || defined OS_CHROMEOS) | 54 #if !(defined OS_ANDROID || defined OS_CHROMEOS) |
| 54 // Only Android, ChromeOS support NetInfo right now. | 55 // Only Android, ChromeOS support NetInfo right now. |
| 55 WebRuntimeFeatures::enableNetworkInformation(false); | 56 WebRuntimeFeatures::enableNetworkInformation(false); |
| 56 #endif | 57 #endif |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { | 283 if (command_line.HasSwitch(switches::kDisableBlinkFeatures)) { |
| 283 std::vector<std::string> disabled_features = base::SplitString( | 284 std::vector<std::string> disabled_features = base::SplitString( |
| 284 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), | 285 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), |
| 285 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); | 286 ",", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
| 286 for (const std::string& feature : disabled_features) | 287 for (const std::string& feature : disabled_features) |
| 287 WebRuntimeFeatures::enableFeatureFromString(feature, false); | 288 WebRuntimeFeatures::enableFeatureFromString(feature, false); |
| 288 } | 289 } |
| 289 } | 290 } |
| 290 | 291 |
| 291 } // namespace content | 292 } // namespace content |
| OLD | NEW |