| 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 #if defined(OS_ANDROID) && !defined(GOOGLE_TV) | 626 #if defined(OS_ANDROID) && !defined(GOOGLE_TV) |
| 627 WebRuntimeFeatures::enableMediaSource(false); | 627 WebRuntimeFeatures::enableMediaSource(false); |
| 628 #endif | 628 #endif |
| 629 | 629 |
| 630 #if defined(OS_ANDROID) | 630 #if defined(OS_ANDROID) |
| 631 WebRuntimeFeatures::enableWebAudio(false); | 631 WebRuntimeFeatures::enableWebAudio(false); |
| 632 // Web Speech API Speech recognition is not implemented on Android yet. | 632 // Web Speech API Speech recognition is not implemented on Android yet. |
| 633 WebRuntimeFeatures::enableScriptedSpeech(false); | 633 WebRuntimeFeatures::enableScriptedSpeech(false); |
| 634 // Android does not support the Gamepad API. | 634 // Android does not support the Gamepad API. |
| 635 WebRuntimeFeatures::enableGamepad(false); | 635 WebRuntimeFeatures::enableGamepad(false); |
| 636 // input[type=week] in Android is incomplete. crbug.com/135938 | |
| 637 WebRuntimeFeatures::enableInputTypeWeek(false); | |
| 638 #endif | 636 #endif |
| 639 } | 637 } |
| 640 | 638 |
| 641 static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) { | 639 static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) { |
| 642 if (command_line.HasSwitch(switches::kDisableDatabases)) | 640 if (command_line.HasSwitch(switches::kDisableDatabases)) |
| 643 WebRuntimeFeatures::enableDatabase(false); | 641 WebRuntimeFeatures::enableDatabase(false); |
| 644 | 642 |
| 645 if (command_line.HasSwitch(switches::kDisableApplicationCache)) | 643 if (command_line.HasSwitch(switches::kDisableApplicationCache)) |
| 646 WebRuntimeFeatures::enableApplicationCache(false); | 644 WebRuntimeFeatures::enableApplicationCache(false); |
| 647 | 645 |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 | 1303 |
| 1306 void RenderThreadImpl::SetFlingCurveParameters( | 1304 void RenderThreadImpl::SetFlingCurveParameters( |
| 1307 const std::vector<float>& new_touchpad, | 1305 const std::vector<float>& new_touchpad, |
| 1308 const std::vector<float>& new_touchscreen) { | 1306 const std::vector<float>& new_touchscreen) { |
| 1309 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1307 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1310 new_touchscreen); | 1308 new_touchscreen); |
| 1311 | 1309 |
| 1312 } | 1310 } |
| 1313 | 1311 |
| 1314 } // namespace content | 1312 } // namespace content |
| OLD | NEW |