| 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 "content/renderer/input/input_handler_wrapper.h" | 5 #include "content/renderer/input/input_handler_wrapper.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
| 10 #include "content/renderer/input/input_event_filter.h" | 10 #include "content/renderer/input/input_event_filter.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 base::Bind(&RenderViewImpl::SetNeedsMainFrame, render_view_impl_)); | 39 base::Bind(&RenderViewImpl::SetNeedsMainFrame, render_view_impl_)); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( | 42 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( |
| 43 const blink::WebActiveWheelFlingParameters& params) { | 43 const blink::WebActiveWheelFlingParameters& params) { |
| 44 main_task_runner_->PostTask( | 44 main_task_runner_->PostTask( |
| 45 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, | 45 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, |
| 46 render_view_impl_, params)); | 46 render_view_impl_, params)); |
| 47 } | 47 } |
| 48 | 48 |
| 49 void InputHandlerWrapper::DispatchNonBlockingEventToMainThread( |
| 50 ui::ScopedWebInputEvent event, |
| 51 const ui::LatencyInfo& latency_info) { |
| 52 input_handler_manager_->DispatchNonBlockingEventToMainThread( |
| 53 routing_id_, std::move(event), latency_info); |
| 54 } |
| 55 |
| 49 void InputHandlerWrapper::WillShutdown() { | 56 void InputHandlerWrapper::WillShutdown() { |
| 50 input_handler_manager_->RemoveInputHandler(routing_id_); | 57 input_handler_manager_->RemoveInputHandler(routing_id_); |
| 51 } | 58 } |
| 52 | 59 |
| 53 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( | 60 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( |
| 54 blink::WebGestureDevice deviceSource, | 61 blink::WebGestureDevice deviceSource, |
| 55 const blink::WebFloatPoint& velocity, | 62 const blink::WebFloatPoint& velocity, |
| 56 const blink::WebSize& cumulative_scroll) { | 63 const blink::WebSize& cumulative_scroll) { |
| 57 DidStartFlinging(); | 64 DidStartFlinging(); |
| 58 return blink::Platform::current()->createFlingAnimationCurve( | 65 return blink::Platform::current()->createFlingAnimationCurve( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 78 | 85 |
| 79 void InputHandlerWrapper::DidStopFlinging() { | 86 void InputHandlerWrapper::DidStopFlinging() { |
| 80 input_handler_manager_->DidStopFlinging(routing_id_); | 87 input_handler_manager_->DidStopFlinging(routing_id_); |
| 81 } | 88 } |
| 82 | 89 |
| 83 void InputHandlerWrapper::DidAnimateForInput() { | 90 void InputHandlerWrapper::DidAnimateForInput() { |
| 84 input_handler_manager_->DidAnimateForInput(); | 91 input_handler_manager_->DidAnimateForInput(); |
| 85 } | 92 } |
| 86 | 93 |
| 87 } // namespace content | 94 } // namespace content |
| OLD | NEW |