Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: content/child/runtime_features.cc

Issue 284413005: Revert of Gamepad API support for chrome on android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/gamepad/gamepad_provider.cc ('k') | content/content.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
26 WebRuntimeFeatures::enableMediaSource(false); 26 WebRuntimeFeatures::enableMediaSource(false);
27 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); 27 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false);
28 WebRuntimeFeatures::enableEncryptedMedia(false); 28 WebRuntimeFeatures::enableEncryptedMedia(false);
29 } 29 }
30 // WebAudio is enabled by default on ARM and X86 and only when the 30 // WebAudio is enabled by default on ARM and X86 and only when the
31 // MediaCodec API is available. 31 // MediaCodec API is available.
32 WebRuntimeFeatures::enableWebAudio( 32 WebRuntimeFeatures::enableWebAudio(
33 media::MediaCodecBridge::IsAvailable() && 33 media::MediaCodecBridge::IsAvailable() &&
34 ((android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) || 34 ((android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM) ||
35 (android_getCpuFamily() == ANDROID_CPU_FAMILY_X86))); 35 (android_getCpuFamily() == ANDROID_CPU_FAMILY_X86)));
36 // Android does not support the Gamepad API.
37 WebRuntimeFeatures::enableGamepad(false);
36 // Android does not have support for PagePopup 38 // Android does not have support for PagePopup
37 WebRuntimeFeatures::enablePagePopup(false); 39 WebRuntimeFeatures::enablePagePopup(false);
38 // Android does not yet support the Web Notification API. crbug.com/115320 40 // Android does not yet support the Web Notification API. crbug.com/115320
39 WebRuntimeFeatures::enableNotifications(false); 41 WebRuntimeFeatures::enableNotifications(false);
40 // Android does not yet support SharedWorker. crbug.com/154571 42 // Android does not yet support SharedWorker. crbug.com/154571
41 WebRuntimeFeatures::enableSharedWorker(false); 43 WebRuntimeFeatures::enableSharedWorker(false);
42 // Android does not yet support NavigatorContentUtils. 44 // Android does not yet support NavigatorContentUtils.
43 WebRuntimeFeatures::enableNavigatorContentUtils(false); 45 WebRuntimeFeatures::enableNavigatorContentUtils(false);
44 WebRuntimeFeatures::enableTouchIconLoading(true); 46 WebRuntimeFeatures::enableTouchIconLoading(true);
45 WebRuntimeFeatures::enableOrientationEvent(true); 47 WebRuntimeFeatures::enableOrientationEvent(true);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 WebRuntimeFeatures::enableBleedingEdgeFastPaths(true); 154 WebRuntimeFeatures::enableBleedingEdgeFastPaths(true);
153 155
154 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo)) 156 if (command_line.HasSwitch(switches::kEnablePreciseMemoryInfo))
155 WebRuntimeFeatures::enablePreciseMemoryInfo(true); 157 WebRuntimeFeatures::enablePreciseMemoryInfo(true);
156 158
157 if (command_line.HasSwitch(switches::kEnableLayerSquashing)) 159 if (command_line.HasSwitch(switches::kEnableLayerSquashing))
158 WebRuntimeFeatures::enableLayerSquashing(true); 160 WebRuntimeFeatures::enableLayerSquashing(true);
159 } 161 }
160 162
161 } // namespace content 163 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gamepad/gamepad_provider.cc ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698