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_manager.h" | 5 #include "content/renderer/input/input_handler_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "cc/input/input_handler.h" | 10 #include "cc/input/input_handler.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Oops, we no longer have an interested input handler.. | 116 // Oops, we no longer have an interested input handler.. |
117 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 117 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
118 } | 118 } |
119 | 119 |
120 InputHandlerProxy* proxy = it->second->input_handler_proxy(); | 120 InputHandlerProxy* proxy = it->second->input_handler_proxy(); |
121 return InputEventDispositionToAck( | 121 return InputEventDispositionToAck( |
122 proxy->HandleInputEventWithLatencyInfo(*input_event, latency_info)); | 122 proxy->HandleInputEventWithLatencyInfo(*input_event, latency_info)); |
123 } | 123 } |
124 | 124 |
125 void InputHandlerManager::DidOverscroll(int routing_id, | 125 void InputHandlerManager::DidOverscroll(int routing_id, |
126 const DidOverscrollParams& params) { | 126 const cc::DidOverscrollParams& params) { |
127 client_->DidOverscroll(routing_id, params); | 127 client_->DidOverscroll(routing_id, params); |
128 } | 128 } |
129 | 129 |
130 void InputHandlerManager::DidStopFlinging(int routing_id) { | 130 void InputHandlerManager::DidStopFlinging(int routing_id) { |
131 client_->DidStopFlinging(routing_id); | 131 client_->DidStopFlinging(routing_id); |
132 } | 132 } |
133 | 133 |
134 } // namespace content | 134 } // namespace content |
OLD | NEW |