| 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 22 matching lines...) Expand all Loading... |
| 33 InputHandlerWrapper::~InputHandlerWrapper() { | 33 InputHandlerWrapper::~InputHandlerWrapper() { |
| 34 } | 34 } |
| 35 | 35 |
| 36 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( | 36 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( |
| 37 const blink::WebActiveWheelFlingParameters& params) { | 37 const blink::WebActiveWheelFlingParameters& params) { |
| 38 main_task_runner_->PostTask( | 38 main_task_runner_->PostTask( |
| 39 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, | 39 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, |
| 40 render_view_impl_, params)); | 40 render_view_impl_, params)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void InputHandlerWrapper::DispatchNonBlockingEventToMainThread( |
| 44 ui::ScopedWebInputEvent event, |
| 45 const ui::LatencyInfo& latency_info) { |
| 46 input_handler_manager_->DispatchNonBlockingEventToMainThread( |
| 47 routing_id_, std::move(event), latency_info); |
| 48 } |
| 49 |
| 43 void InputHandlerWrapper::WillShutdown() { | 50 void InputHandlerWrapper::WillShutdown() { |
| 44 input_handler_manager_->RemoveInputHandler(routing_id_); | 51 input_handler_manager_->RemoveInputHandler(routing_id_); |
| 45 } | 52 } |
| 46 | 53 |
| 47 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( | 54 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( |
| 48 blink::WebGestureDevice deviceSource, | 55 blink::WebGestureDevice deviceSource, |
| 49 const blink::WebFloatPoint& velocity, | 56 const blink::WebFloatPoint& velocity, |
| 50 const blink::WebSize& cumulative_scroll) { | 57 const blink::WebSize& cumulative_scroll) { |
| 51 DidStartFlinging(); | 58 DidStartFlinging(); |
| 52 return blink::Platform::current()->createFlingAnimationCurve( | 59 return blink::Platform::current()->createFlingAnimationCurve( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 72 | 79 |
| 73 void InputHandlerWrapper::DidStopFlinging() { | 80 void InputHandlerWrapper::DidStopFlinging() { |
| 74 input_handler_manager_->DidStopFlinging(routing_id_); | 81 input_handler_manager_->DidStopFlinging(routing_id_); |
| 75 } | 82 } |
| 76 | 83 |
| 77 void InputHandlerWrapper::DidAnimateForInput() { | 84 void InputHandlerWrapper::DidAnimateForInput() { |
| 78 input_handler_manager_->DidAnimateForInput(); | 85 input_handler_manager_->DidAnimateForInput(); |
| 79 } | 86 } |
| 80 | 87 |
| 81 } // namespace content | 88 } // namespace content |
| OLD | NEW |