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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Android does not have support for PagePopup | 53 // Android does not have support for PagePopup |
54 WebRuntimeFeatures::enablePagePopup(false); | 54 WebRuntimeFeatures::enablePagePopup(false); |
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 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); | |
63 // 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 |
64 // intended behavior for which is in flux by itself. | 63 // intended behavior for which is in flux by itself. |
65 WebRuntimeFeatures::enableNotificationConstructor(false); | 64 WebRuntimeFeatures::enableNotificationConstructor(false); |
66 #else | 65 #else |
67 WebRuntimeFeatures::enableNavigatorContentUtils(true); | 66 WebRuntimeFeatures::enableNavigatorContentUtils(true); |
68 #endif // defined(OS_ANDROID) | 67 #endif // defined(OS_ANDROID) |
| 68 WebRuntimeFeatures::enableCompositedSelectionUpdate(true); |
69 | 69 |
70 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) | 70 #if !(defined OS_ANDROID || defined OS_CHROMEOS || defined OS_IOS) |
71 // Only Android, ChromeOS, and IOS support NetInfo right now. | 71 // Only Android, ChromeOS, and IOS support NetInfo right now. |
72 WebRuntimeFeatures::enableNetworkInformation(false); | 72 WebRuntimeFeatures::enableNetworkInformation(false); |
73 #endif | 73 #endif |
74 | 74 |
75 #if defined(OS_WIN) | 75 #if defined(OS_WIN) |
76 // Screen Orientation API is currently broken on Windows 8 Metro mode and | 76 // Screen Orientation API is currently broken on Windows 8 Metro mode and |
77 // until we can find how to disable it only for Blink instances running in a | 77 // until we can find how to disable it only for Blink instances running in a |
78 // renderer process in Metro, we need to disable the API altogether for Win8. | 78 // renderer process in Metro, we need to disable the API altogether for Win8. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',', | 226 command_line.GetSwitchValueASCII(switches::kDisableBlinkFeatures), ',', |
227 &disabled_features); | 227 &disabled_features); |
228 for (const std::string& feature : disabled_features) { | 228 for (const std::string& feature : disabled_features) { |
229 WebRuntimeFeatures::enableFeatureFromString( | 229 WebRuntimeFeatures::enableFeatureFromString( |
230 blink::WebString::fromLatin1(feature), false); | 230 blink::WebString::fromLatin1(feature), false); |
231 } | 231 } |
232 } | 232 } |
233 } | 233 } |
234 | 234 |
235 } // namespace content | 235 } // namespace content |
OLD | NEW |