| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 #if defined(OS_ANDROID) | 643 #if defined(OS_ANDROID) |
| 644 WebRuntimeFeatures::enableWebAudio(false); | 644 WebRuntimeFeatures::enableWebAudio(false); |
| 645 // Web Speech API Speech recognition is not implemented on Android yet. | 645 // Web Speech API Speech recognition is not implemented on Android yet. |
| 646 WebRuntimeFeatures::enableScriptedSpeech(false); | 646 WebRuntimeFeatures::enableScriptedSpeech(false); |
| 647 // Android does not support the Gamepad API. | 647 // Android does not support the Gamepad API. |
| 648 WebRuntimeFeatures::enableGamepad(false); | 648 WebRuntimeFeatures::enableGamepad(false); |
| 649 // input[type=week] in Android is incomplete. crbug.com/135938 | 649 // input[type=week] in Android is incomplete. crbug.com/135938 |
| 650 WebRuntimeFeatures::enableInputTypeWeek(false); | 650 WebRuntimeFeatures::enableInputTypeWeek(false); |
| 651 // Android does not have support for PagePopup | 651 // Android does not have support for PagePopup |
| 652 WebRuntimeFeatures::enablePagePopup(false); | 652 WebRuntimeFeatures::enablePagePopup(false); |
| 653 // datalist on Android is not enabled |
| 654 WebRuntimeFeatures::enableDataListElement(false); |
| 653 #endif | 655 #endif |
| 654 } | 656 } |
| 655 | 657 |
| 656 static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) { | 658 static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) { |
| 657 if (command_line.HasSwitch(switches::kDisableDatabases)) | 659 if (command_line.HasSwitch(switches::kDisableDatabases)) |
| 658 WebRuntimeFeatures::enableDatabase(false); | 660 WebRuntimeFeatures::enableDatabase(false); |
| 659 | 661 |
| 660 if (command_line.HasSwitch(switches::kDisableApplicationCache)) | 662 if (command_line.HasSwitch(switches::kDisableApplicationCache)) |
| 661 WebRuntimeFeatures::enableApplicationCache(false); | 663 WebRuntimeFeatures::enableApplicationCache(false); |
| 662 | 664 |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 | 1319 |
| 1318 void RenderThreadImpl::SetFlingCurveParameters( | 1320 void RenderThreadImpl::SetFlingCurveParameters( |
| 1319 const std::vector<float>& new_touchpad, | 1321 const std::vector<float>& new_touchpad, |
| 1320 const std::vector<float>& new_touchscreen) { | 1322 const std::vector<float>& new_touchscreen) { |
| 1321 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1323 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1322 new_touchscreen); | 1324 new_touchscreen); |
| 1323 | 1325 |
| 1324 } | 1326 } |
| 1325 | 1327 |
| 1326 } // namespace content | 1328 } // namespace content |
| OLD | NEW |