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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 #endif | 641 #endif |
642 | 642 |
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 |
| 652 WebRuntimeFeatures::enablePagePopup(false); |
651 #endif | 653 #endif |
652 } | 654 } |
653 | 655 |
654 static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) { | 656 static void AdjustRuntimeFeaturesFromArgs(const CommandLine& command_line) { |
655 if (command_line.HasSwitch(switches::kDisableDatabases)) | 657 if (command_line.HasSwitch(switches::kDisableDatabases)) |
656 WebRuntimeFeatures::enableDatabase(false); | 658 WebRuntimeFeatures::enableDatabase(false); |
657 | 659 |
658 if (command_line.HasSwitch(switches::kDisableApplicationCache)) | 660 if (command_line.HasSwitch(switches::kDisableApplicationCache)) |
659 WebRuntimeFeatures::enableApplicationCache(false); | 661 WebRuntimeFeatures::enableApplicationCache(false); |
660 | 662 |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 | 1317 |
1316 void RenderThreadImpl::SetFlingCurveParameters( | 1318 void RenderThreadImpl::SetFlingCurveParameters( |
1317 const std::vector<float>& new_touchpad, | 1319 const std::vector<float>& new_touchpad, |
1318 const std::vector<float>& new_touchscreen) { | 1320 const std::vector<float>& new_touchscreen) { |
1319 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1321 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
1320 new_touchscreen); | 1322 new_touchscreen); |
1321 | 1323 |
1322 } | 1324 } |
1323 | 1325 |
1324 } // namespace content | 1326 } // namespace content |
OLD | NEW |