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

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

Issue 23314003: Add support for datalist to text input element on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created custom drawable Created 7 years, 3 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
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
(...skipping 22 matching lines...) Expand all
33 // JellyBean, and also currently needs NEON support for the FFT. 33 // JellyBean, and also currently needs NEON support for the FFT.
34 enable_webaudio = 34 enable_webaudio =
35 (base::android::BuildInfo::GetInstance()->sdk_int() >= 16) && 35 (base::android::BuildInfo::GetInstance()->sdk_int() >= 16) &&
36 ((android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0); 36 ((android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0);
37 #endif // defined(ARCH_CPU_ARMEL) 37 #endif // defined(ARCH_CPU_ARMEL)
38 WebRuntimeFeatures::enableWebAudio(enable_webaudio); 38 WebRuntimeFeatures::enableWebAudio(enable_webaudio);
39 // Android does not support the Gamepad API. 39 // Android does not support the Gamepad API.
40 WebRuntimeFeatures::enableGamepad(false); 40 WebRuntimeFeatures::enableGamepad(false);
41 // Android does not have support for PagePopup 41 // Android does not have support for PagePopup
42 WebRuntimeFeatures::enablePagePopup(false); 42 WebRuntimeFeatures::enablePagePopup(false);
43 // datalist on Android is not enabled
44 WebRuntimeFeatures::enableDataListElement(false);
45 // Android does not yet support the Web Notification API. crbug.com/115320 43 // Android does not yet support the Web Notification API. crbug.com/115320
46 WebRuntimeFeatures::enableNotifications(false); 44 WebRuntimeFeatures::enableNotifications(false);
47 #endif // defined(OS_ANDROID) 45 #endif // defined(OS_ANDROID)
48 } 46 }
49 47
50 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs( 48 void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
51 const CommandLine& command_line) { 49 const CommandLine& command_line) {
52 WebRuntimeFeatures::enableStableFeatures(true); 50 WebRuntimeFeatures::enableStableFeatures(true);
53 51
54 if (command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)) 52 if (command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures))
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 WebRuntimeFeatures::enableHTMLImports(true); 140 WebRuntimeFeatures::enableHTMLImports(true);
143 141
144 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars)) 142 if (command_line.HasSwitch(switches::kEnableOverlayScrollbars))
145 WebRuntimeFeatures::enableOverlayScrollbars(true); 143 WebRuntimeFeatures::enableOverlayScrollbars(true);
146 144
147 if (command_line.HasSwitch(switches::kEnableInputModeAttribute)) 145 if (command_line.HasSwitch(switches::kEnableInputModeAttribute))
148 WebRuntimeFeatures::enableInputModeAttribute(true); 146 WebRuntimeFeatures::enableInputModeAttribute(true);
149 } 147 }
150 148
151 } // namespace content 149 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ui/android/java/res/layout/autofill_text.xml » ('j') | ui/android/java/res/layout/autofill_text.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698