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

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

Issue 136343002: Remove Chrome for TV code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 11 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 | Annotate | Revision Log
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/public/common/content_switches.h" 8 #include "content/public/common/content_switches.h"
9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 9 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
10 10
11 #if defined(OS_ANDROID) 11 #if defined(OS_ANDROID)
12 #include <cpu-features.h> 12 #include <cpu-features.h>
13 #include "media/base/android/media_codec_bridge.h" 13 #include "media/base/android/media_codec_bridge.h"
14 #endif 14 #endif
15 15
16 using blink::WebRuntimeFeatures; 16 using blink::WebRuntimeFeatures;
17 17
18 namespace content { 18 namespace content {
19 19
20 static void SetRuntimeFeatureDefaultsForPlatform() { 20 static void SetRuntimeFeatureDefaultsForPlatform() {
21 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
22 #if !defined(GOOGLE_TV)
23 // MSE/EME implementation needs Android MediaCodec API. 22 // MSE/EME implementation needs Android MediaCodec API.
24 if (!media::MediaCodecBridge::IsAvailable()) { 23 if (!media::MediaCodecBridge::IsAvailable()) {
25 WebRuntimeFeatures::enableWebKitMediaSource(false); 24 WebRuntimeFeatures::enableWebKitMediaSource(false);
26 WebRuntimeFeatures::enableMediaSource(false); 25 WebRuntimeFeatures::enableMediaSource(false);
27 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false); 26 WebRuntimeFeatures::enablePrefixedEncryptedMedia(false);
28 } 27 }
29 #endif // !defined(GOOGLE_TV)
30 // WebAudio is enabled by default only on ARM and only when the 28 // WebAudio is enabled by default only on ARM and only when the
31 // MediaCodec API is available. 29 // MediaCodec API is available.
32 WebRuntimeFeatures::enableWebAudio( 30 WebRuntimeFeatures::enableWebAudio(
33 media::MediaCodecBridge::IsAvailable() && 31 media::MediaCodecBridge::IsAvailable() &&
34 (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM)); 32 (android_getCpuFamily() == ANDROID_CPU_FAMILY_ARM));
35 // Android does not support the Gamepad API. 33 // Android does not support the Gamepad API.
36 WebRuntimeFeatures::enableGamepad(false); 34 WebRuntimeFeatures::enableGamepad(false);
37 // Android does not have support for PagePopup 35 // Android does not have support for PagePopup
38 WebRuntimeFeatures::enablePagePopup(false); 36 WebRuntimeFeatures::enablePagePopup(false);
39 // Android does not yet support the Web Notification API. crbug.com/115320 37 // Android does not yet support the Web Notification API. crbug.com/115320
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 WebRuntimeFeatures::enableInputModeAttribute(true); 179 WebRuntimeFeatures::enableInputModeAttribute(true);
182 180
183 if (command_line.HasSwitch(switches::kEnableFastTextAutosizing)) 181 if (command_line.HasSwitch(switches::kEnableFastTextAutosizing))
184 WebRuntimeFeatures::enableFastTextAutosizing(true); 182 WebRuntimeFeatures::enableFastTextAutosizing(true);
185 183
186 if (command_line.HasSwitch(switches::kEnableRepaintAfterLayout)) 184 if (command_line.HasSwitch(switches::kEnableRepaintAfterLayout))
187 WebRuntimeFeatures::enableRepaintAfterLayout(true); 185 WebRuntimeFeatures::enableRepaintAfterLayout(true);
188 } 186 }
189 187
190 } // namespace content 188 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/media/media_player_messages_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698