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 15 matching lines...) Expand all Loading... |
26 input_handler_proxy_(input_handler.get(), this), | 26 input_handler_proxy_(input_handler.get(), this), |
27 main_task_runner_(main_task_runner), | 27 main_task_runner_(main_task_runner), |
28 render_view_impl_(render_view_impl) { | 28 render_view_impl_(render_view_impl) { |
29 DCHECK(input_handler); | 29 DCHECK(input_handler); |
30 input_handler_proxy_.set_smooth_scroll_enabled(enable_smooth_scrolling); | 30 input_handler_proxy_.set_smooth_scroll_enabled(enable_smooth_scrolling); |
31 } | 31 } |
32 | 32 |
33 InputHandlerWrapper::~InputHandlerWrapper() { | 33 InputHandlerWrapper::~InputHandlerWrapper() { |
34 } | 34 } |
35 | 35 |
| 36 void InputHandlerWrapper::NeedsMainFrame() { |
| 37 main_task_runner_->PostTask( |
| 38 FROM_HERE, |
| 39 base::Bind(&RenderViewImpl::NeedsMainFrame, render_view_impl_)); |
| 40 } |
| 41 |
36 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( | 42 void InputHandlerWrapper::TransferActiveWheelFlingAnimation( |
37 const blink::WebActiveWheelFlingParameters& params) { | 43 const blink::WebActiveWheelFlingParameters& params) { |
38 main_task_runner_->PostTask( | 44 main_task_runner_->PostTask( |
39 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, | 45 FROM_HERE, base::Bind(&RenderViewImpl::TransferActiveWheelFlingAnimation, |
40 render_view_impl_, params)); | 46 render_view_impl_, params)); |
41 } | 47 } |
42 | 48 |
43 void InputHandlerWrapper::WillShutdown() { | 49 void InputHandlerWrapper::WillShutdown() { |
44 input_handler_manager_->RemoveInputHandler(routing_id_); | 50 input_handler_manager_->RemoveInputHandler(routing_id_); |
45 } | 51 } |
(...skipping 26 matching lines...) Expand all Loading... |
72 | 78 |
73 void InputHandlerWrapper::DidStopFlinging() { | 79 void InputHandlerWrapper::DidStopFlinging() { |
74 input_handler_manager_->DidStopFlinging(routing_id_); | 80 input_handler_manager_->DidStopFlinging(routing_id_); |
75 } | 81 } |
76 | 82 |
77 void InputHandlerWrapper::DidAnimateForInput() { | 83 void InputHandlerWrapper::DidAnimateForInput() { |
78 input_handler_manager_->DidAnimateForInput(); | 84 input_handler_manager_->DidAnimateForInput(); |
79 } | 85 } |
80 | 86 |
81 } // namespace content | 87 } // namespace content |
OLD | NEW |