| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "content/common/content_switches_internal.h" | 8 #include "content/common/content_switches_internal.h" |
| 9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 10 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (!media::MediaCodecBridge::IsAvailable()) { | 24 if (!media::MediaCodecBridge::IsAvailable()) { |
| 25 WebRuntimeFeatures::enableWebKitMediaSource(false); | 25 WebRuntimeFeatures::enableWebKitMediaSource(false); |
| 26 WebRuntimeFeatures::enableMediaSource(false); | 26 WebRuntimeFeatures::enableMediaSource(false); |
| 27 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); | 27 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); |
| 28 } | 28 } |
| 29 // WebAudio is enabled by default only on ARM and only when the | 29 // WebAudio is enabled by default only on ARM and only when the |
| 30 // MediaCodec API is available. | 30 // MediaCodec API is available. |
| 31 WebRuntimeFeatures::enableWebAudio( | 31 WebRuntimeFeatures::enableWebAudio( |
| 32 media::MediaCodecBridge::IsAvailable() && | 32 media::MediaCodecBridge::IsAvailable() && |
| 33 (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM)); | 33 (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM)); |
| 34 // Android does not support the Gamepad API. | |
| 35 WebRuntimeFeatures::enableGamepad(false); | |
| 36 // Android does not have support for PagePopup | 34 // Android does not have support for PagePopup |
| 37 WebRuntimeFeatures::enablePagePopup(false); | 35 WebRuntimeFeatures::enablePagePopup(false); |
| 38 // Android does not yet support the Web Notification API. crbug.com/115320 | 36 // Android does not yet support the Web Notification API. crbug.com/115320 |
| 39 WebRuntimeFeatures::enableNotifications(false); | 37 WebRuntimeFeatures::enableNotifications(false); |
| 40 // Android does not yet support SharedWorker. crbug.com/154571 | 38 // Android does not yet support SharedWorker. crbug.com/154571 |
| 41 WebRuntimeFeatures::enableSharedWorker(false); | 39 WebRuntimeFeatures::enableSharedWorker(false); |
| 42 // Android does not yet support NavigatorContentUtils. | 40 // Android does not yet support NavigatorContentUtils. |
| 43 WebRuntimeFeatures::enableNavigatorContentUtils(false); | 41 WebRuntimeFeatures::enableNavigatorContentUtils(false); |
| 44 WebRuntimeFeatures::enableTouchIconLoading(true); | 42 WebRuntimeFeatures::enableTouchIconLoading(true); |
| 45 WebRuntimeFeatures::enableOrientationEvent(true); | 43 WebRuntimeFeatures::enableOrientationEvent(true); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 WebRuntimeFeatures::enableRepaintAfterLayout(true); | 164 WebRuntimeFeatures::enableRepaintAfterLayout(true); |
| 167 | 165 |
| 168 if (command_line.HasSwitch(switches::kEnableTargetedStyleRecalc)) | 166 if (command_line.HasSwitch(switches::kEnableTargetedStyleRecalc)) |
| 169 WebRuntimeFeatures::enableTargetedStyleRecalc(true); | 167 WebRuntimeFeatures::enableTargetedStyleRecalc(true); |
| 170 | 168 |
| 171 if (command_line.HasSwitch(switches::kEnableBleedingEdgeRenderingFastPaths)) | 169 if (command_line.HasSwitch(switches::kEnableBleedingEdgeRenderingFastPaths)) |
| 172 WebRuntimeFeatures::enableBleedingEdgeFastPaths(true); | 170 WebRuntimeFeatures::enableBleedingEdgeFastPaths(true); |
| 173 } | 171 } |
| 174 | 172 |
| 175 } // namespace content | 173 } // namespace content |
| OLD | NEW |