| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 WebRuntimeFeatures::enableSeamlessIFrames( | 789 WebRuntimeFeatures::enableSeamlessIFrames( |
| 790 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); | 790 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures)); |
| 791 | 791 |
| 792 // Enabled by default for testing. | 792 // Enabled by default for testing. |
| 793 // TODO(urvang): Go back to using the command-line option after a few days. | 793 // TODO(urvang): Go back to using the command-line option after a few days. |
| 794 WebRuntimeFeatures::enableWebPInAcceptHeader(true); | 794 WebRuntimeFeatures::enableWebPInAcceptHeader(true); |
| 795 | 795 |
| 796 WebRuntimeFeatures::enableExperimentalWebSocket( | 796 WebRuntimeFeatures::enableExperimentalWebSocket( |
| 797 command_line.HasSwitch(switches::kEnableExperimentalWebSocket)); | 797 command_line.HasSwitch(switches::kEnableExperimentalWebSocket)); |
| 798 | 798 |
| 799 WebRuntimeFeatures::enableSpeechSynthesis( |
| 800 command_line.HasSwitch(switches::kEnableSpeechSynthesis)); |
| 801 |
| 799 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); | 802 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); |
| 800 | 803 |
| 801 devtools_agent_message_filter_ = new DevToolsAgentFilter(); | 804 devtools_agent_message_filter_ = new DevToolsAgentFilter(); |
| 802 AddFilter(devtools_agent_message_filter_.get()); | 805 AddFilter(devtools_agent_message_filter_.get()); |
| 803 | 806 |
| 804 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) | 807 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) |
| 805 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 808 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 806 } | 809 } |
| 807 | 810 |
| 808 void RenderThreadImpl::RegisterSchemes() { | 811 void RenderThreadImpl::RegisterSchemes() { |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 | 1317 |
| 1315 void RenderThreadImpl::SetFlingCurveParameters( | 1318 void RenderThreadImpl::SetFlingCurveParameters( |
| 1316 const std::vector<float>& new_touchpad, | 1319 const std::vector<float>& new_touchpad, |
| 1317 const std::vector<float>& new_touchscreen) { | 1320 const std::vector<float>& new_touchscreen) { |
| 1318 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1321 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1319 new_touchscreen); | 1322 new_touchscreen); |
| 1320 | 1323 |
| 1321 } | 1324 } |
| 1322 | 1325 |
| 1323 } // namespace content | 1326 } // namespace content |
| OLD | NEW |