Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: content/renderer/input/input_handler_manager.cc

Issue 2713093005: Teach MainThreadEventQueue about touchmove throttling. (Closed)
Patch Set: Roll if/else condition together Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 void InputHandlerManager::NotifyInputEventHandledOnMainThread( 191 void InputHandlerManager::NotifyInputEventHandledOnMainThread(
192 int routing_id, 192 int routing_id,
193 blink::WebInputEvent::Type type, 193 blink::WebInputEvent::Type type,
194 blink::WebInputEventResult result, 194 blink::WebInputEventResult result,
195 InputEventAckState ack_result) { 195 InputEventAckState ack_result) {
196 client_->NotifyInputEventHandled(routing_id, type, result, ack_result); 196 client_->NotifyInputEventHandled(routing_id, type, result, ack_result);
197 } 197 }
198 198
199 void InputHandlerManager::ProcessRafAlignedInputOnMainThread(int routing_id) { 199 void InputHandlerManager::ProcessRafAlignedInputOnMainThread(
200 client_->ProcessRafAlignedInput(routing_id); 200 int routing_id,
201 base::TimeTicks frame_time) {
202 client_->ProcessRafAlignedInput(routing_id, frame_time);
201 } 203 }
202 204
203 void InputHandlerManager::HandleInputEvent( 205 void InputHandlerManager::HandleInputEvent(
204 int routing_id, 206 int routing_id,
205 ui::WebScopedInputEvent input_event, 207 ui::WebScopedInputEvent input_event,
206 const ui::LatencyInfo& latency_info, 208 const ui::LatencyInfo& latency_info,
207 const InputEventAckStateCallback& callback) { 209 const InputEventAckStateCallback& callback) {
208 DCHECK(task_runner_->BelongsToCurrentThread()); 210 DCHECK(task_runner_->BelongsToCurrentThread());
209 TRACE_EVENT1("input,benchmark,rail", "InputHandlerManager::HandleInputEvent", 211 TRACE_EVENT1("input,benchmark,rail", "InputHandlerManager::HandleInputEvent",
210 "type", WebInputEvent::GetName(input_event->type())); 212 "type", WebInputEvent::GetName(input_event->type()));
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 void InputHandlerManager::DispatchNonBlockingEventToMainThread( 281 void InputHandlerManager::DispatchNonBlockingEventToMainThread(
280 int routing_id, 282 int routing_id,
281 ui::WebScopedInputEvent event, 283 ui::WebScopedInputEvent event,
282 const ui::LatencyInfo& latency_info) { 284 const ui::LatencyInfo& latency_info) {
283 DCHECK(task_runner_->BelongsToCurrentThread()); 285 DCHECK(task_runner_->BelongsToCurrentThread());
284 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event), 286 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event),
285 latency_info); 287 latency_info);
286 } 288 }
287 289
288 } // namespace content 290 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_manager.h ('k') | content/renderer/input/input_handler_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698