| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "webkit/child/webkitplatformsupport_child_impl.h" | 5 #include "webkit/child/webkitplatformsupport_child_impl.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 8 #include "webkit/child/fling_curve_configuration.h" | 8 #include "webkit/child/fling_curve_configuration.h" |
| 9 #include "webkit/child/worker_task_runner.h" |
| 9 | 10 |
| 10 #if defined(OS_ANDROID) | 11 #if defined(OS_ANDROID) |
| 11 #include "webkit/child/fling_animator_impl_android.h" | 12 #include "webkit/child/fling_animator_impl_android.h" |
| 12 #endif | 13 #endif |
| 13 | 14 |
| 14 namespace webkit_glue { | 15 namespace webkit_glue { |
| 15 | 16 |
| 16 WebKitPlatformSupportChildImpl::WebKitPlatformSupportChildImpl() | 17 WebKitPlatformSupportChildImpl::WebKitPlatformSupportChildImpl() |
| 17 : fling_curve_configuration_(new FlingCurveConfiguration) {} | 18 : fling_curve_configuration_(new FlingCurveConfiguration) {} |
| 18 | 19 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 #endif | 36 #endif |
| 36 | 37 |
| 37 if (device_source == WebKit::WebGestureEvent::Touchscreen) | 38 if (device_source == WebKit::WebGestureEvent::Touchscreen) |
| 38 return fling_curve_configuration_->CreateForTouchScreen(velocity, | 39 return fling_curve_configuration_->CreateForTouchScreen(velocity, |
| 39 cumulative_scroll); | 40 cumulative_scroll); |
| 40 | 41 |
| 41 return fling_curve_configuration_->CreateForTouchPad(velocity, | 42 return fling_curve_configuration_->CreateForTouchPad(velocity, |
| 42 cumulative_scroll); | 43 cumulative_scroll); |
| 43 } | 44 } |
| 44 | 45 |
| 46 void WebKitPlatformSupportChildImpl::didStartWorkerRunLoop( |
| 47 const WebKit::WebWorkerRunLoop& runLoop) { |
| 48 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
| 49 worker_task_runner->OnWorkerRunLoopStarted(runLoop); |
| 50 } |
| 51 |
| 52 void WebKitPlatformSupportChildImpl::didStopWorkerRunLoop( |
| 53 const WebKit::WebWorkerRunLoop& runLoop) { |
| 54 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); |
| 55 worker_task_runner->OnWorkerRunLoopStopped(runLoop); |
| 56 } |
| 57 |
| 45 } // namespace webkit_glue | 58 } // namespace webkit_glue |
| OLD | NEW |