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 "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "content/common/content_switches_internal.h" | 9 #include "content/common/content_switches_internal.h" |
10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // WebAudio is enabled by default but only when the MediaCodec API | 35 // WebAudio is enabled by default but only when the MediaCodec API |
36 // is available. | 36 // is available. |
37 AndroidCpuFamily cpu_family = android_getCpuFamily(); | 37 AndroidCpuFamily cpu_family = android_getCpuFamily(); |
38 WebRuntimeFeatures::enableWebAudio( | 38 WebRuntimeFeatures::enableWebAudio( |
39 media::MediaCodecBridge::IsAvailable() && | 39 media::MediaCodecBridge::IsAvailable() && |
40 ((cpu_family == ANDROID_CPU_FAMILY_ARM) || | 40 ((cpu_family == ANDROID_CPU_FAMILY_ARM) || |
41 (cpu_family == ANDROID_CPU_FAMILY_ARM64) || | 41 (cpu_family == ANDROID_CPU_FAMILY_ARM64) || |
42 (cpu_family == ANDROID_CPU_FAMILY_X86) || | 42 (cpu_family == ANDROID_CPU_FAMILY_X86) || |
43 (cpu_family == ANDROID_CPU_FAMILY_MIPS))); | 43 (cpu_family == ANDROID_CPU_FAMILY_MIPS))); |
44 | 44 |
| 45 // Android does not have support for PagePopup |
| 46 WebRuntimeFeatures::enablePagePopup(false); |
45 // Android does not yet support the Web Notification API. crbug.com/115320 | 47 // Android does not yet support the Web Notification API. crbug.com/115320 |
46 WebRuntimeFeatures::enableNotifications(false); | 48 WebRuntimeFeatures::enableNotifications(false); |
47 // Android does not yet support SharedWorker. crbug.com/154571 | 49 // Android does not yet support SharedWorker. crbug.com/154571 |
48 WebRuntimeFeatures::enableSharedWorker(false); | 50 WebRuntimeFeatures::enableSharedWorker(false); |
49 // Android does not yet support NavigatorContentUtils. | 51 // Android does not yet support NavigatorContentUtils. |
50 WebRuntimeFeatures::enableNavigatorContentUtils(false); | 52 WebRuntimeFeatures::enableNavigatorContentUtils(false); |
51 WebRuntimeFeatures::enableTouchIconLoading(true); | 53 WebRuntimeFeatures::enableTouchIconLoading(true); |
52 WebRuntimeFeatures::enableOrientationEvent(true); | 54 WebRuntimeFeatures::enableOrientationEvent(true); |
53 WebRuntimeFeatures::enableFastMobileScrolling(true); | 55 WebRuntimeFeatures::enableFastMobileScrolling(true); |
54 WebRuntimeFeatures::enableMediaCapture(true); | 56 WebRuntimeFeatures::enableMediaCapture(true); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 command_line.HasSwitch( | 180 command_line.HasSwitch( |
179 switches::kEnableExperimentalWebPlatformFeatures)) { | 181 switches::kEnableExperimentalWebPlatformFeatures)) { |
180 WebRuntimeFeatures::enableNetworkInformation(true); | 182 WebRuntimeFeatures::enableNetworkInformation(true); |
181 } | 183 } |
182 | 184 |
183 if (command_line.HasSwitch(switches::kEnableCredentialManagerAPI)) | 185 if (command_line.HasSwitch(switches::kEnableCredentialManagerAPI)) |
184 WebRuntimeFeatures::enableCredentialManagerAPI(true); | 186 WebRuntimeFeatures::enableCredentialManagerAPI(true); |
185 } | 187 } |
186 | 188 |
187 } // namespace content | 189 } // namespace content |
OLD | NEW |