| 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 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 scoped_refptr<base::MessageLoopProxy> | 1296 scoped_refptr<base::MessageLoopProxy> |
| 1297 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1297 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1298 DCHECK(message_loop() == base::MessageLoop::current()); | 1298 DCHECK(message_loop() == base::MessageLoop::current()); |
| 1299 if (!file_thread_) { | 1299 if (!file_thread_) { |
| 1300 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1300 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1301 file_thread_->Start(); | 1301 file_thread_->Start(); |
| 1302 } | 1302 } |
| 1303 return file_thread_->message_loop_proxy(); | 1303 return file_thread_->message_loop_proxy(); |
| 1304 } | 1304 } |
| 1305 | 1305 |
| 1306 scoped_refptr<base::MessageLoopProxy> |
| 1307 RenderThreadImpl::GetMediaThreadMessageLoopProxy() { |
| 1308 DCHECK(message_loop() == MessageLoop::current()); |
| 1309 if (!media_thread_) { |
| 1310 media_thread_.reset(new base::Thread("Media")); |
| 1311 media_thread_->Start(); |
| 1312 } |
| 1313 return media_thread_->message_loop_proxy(); |
| 1314 } |
| 1315 |
| 1306 void RenderThreadImpl::SetFlingCurveParameters( | 1316 void RenderThreadImpl::SetFlingCurveParameters( |
| 1307 const std::vector<float>& new_touchpad, | 1317 const std::vector<float>& new_touchpad, |
| 1308 const std::vector<float>& new_touchscreen) { | 1318 const std::vector<float>& new_touchscreen) { |
| 1309 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1319 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1310 new_touchscreen); | 1320 new_touchscreen); |
| 1311 | 1321 |
| 1312 } | 1322 } |
| 1313 | 1323 |
| 1314 } // namespace content | 1324 } // namespace content |
| OLD | NEW |