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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 gesture_event, scroll_result); | 185 gesture_event, scroll_result); |
186 } | 186 } |
187 | 187 |
188 void InputHandlerManager::NotifyInputEventHandledOnMainThread( | 188 void InputHandlerManager::NotifyInputEventHandledOnMainThread( |
189 int routing_id, | 189 int routing_id, |
190 blink::WebInputEvent::Type type, | 190 blink::WebInputEvent::Type type, |
191 InputEventAckState ack_result) { | 191 InputEventAckState ack_result) { |
192 client_->NotifyInputEventHandled(routing_id, type, ack_result); | 192 client_->NotifyInputEventHandled(routing_id, type, ack_result); |
193 } | 193 } |
194 | 194 |
| 195 void InputHandlerManager::ProcessVSyncAlignedInputOnMainThread(int routing_id) { |
| 196 client_->ProcessVSyncAlignedInput(routing_id); |
| 197 } |
| 198 |
195 InputEventAckState InputHandlerManager::HandleInputEvent( | 199 InputEventAckState InputHandlerManager::HandleInputEvent( |
196 int routing_id, | 200 int routing_id, |
197 const WebInputEvent* input_event, | 201 const WebInputEvent* input_event, |
198 ui::LatencyInfo* latency_info) { | 202 ui::LatencyInfo* latency_info) { |
199 DCHECK(task_runner_->BelongsToCurrentThread()); | 203 DCHECK(task_runner_->BelongsToCurrentThread()); |
200 TRACE_EVENT1("input,benchmark", "InputHandlerManager::HandleInputEvent", | 204 TRACE_EVENT1("input,benchmark", "InputHandlerManager::HandleInputEvent", |
201 "type", WebInputEventTraits::GetName(input_event->type)); | 205 "type", WebInputEventTraits::GetName(input_event->type)); |
202 | 206 |
203 auto it = input_handlers_.find(routing_id); | 207 auto it = input_handlers_.find(routing_id); |
204 if (it == input_handlers_.end()) { | 208 if (it == input_handlers_.end()) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 245 |
242 void InputHandlerManager::DidStopFlinging(int routing_id) { | 246 void InputHandlerManager::DidStopFlinging(int routing_id) { |
243 client_->DidStopFlinging(routing_id); | 247 client_->DidStopFlinging(routing_id); |
244 } | 248 } |
245 | 249 |
246 void InputHandlerManager::DidAnimateForInput() { | 250 void InputHandlerManager::DidAnimateForInput() { |
247 renderer_scheduler_->DidAnimateForInputOnCompositorThread(); | 251 renderer_scheduler_->DidAnimateForInputOnCompositorThread(); |
248 } | 252 } |
249 | 253 |
250 } // namespace content | 254 } // namespace content |
OLD | NEW |