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

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

Issue 2662173005: Revert of scheduler: Detect single event gestures correctly (Closed)
Patch Set: Created 3 years, 10 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 InputHandlerProxy* proxy = it->second->input_handler_proxy(); 185 InputHandlerProxy* proxy = it->second->input_handler_proxy();
186 DCHECK(proxy->scroll_elasticity_controller()); 186 DCHECK(proxy->scroll_elasticity_controller());
187 proxy->scroll_elasticity_controller()->ObserveGestureEventAndResult( 187 proxy->scroll_elasticity_controller()->ObserveGestureEventAndResult(
188 gesture_event, scroll_result); 188 gesture_event, scroll_result);
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,
195 InputEventAckState ack_result) { 194 InputEventAckState ack_result) {
196 client_->NotifyInputEventHandled(routing_id, type, result, ack_result); 195 client_->NotifyInputEventHandled(routing_id, type, ack_result);
197 } 196 }
198 197
199 void InputHandlerManager::ProcessRafAlignedInputOnMainThread(int routing_id) { 198 void InputHandlerManager::ProcessRafAlignedInputOnMainThread(int routing_id) {
200 client_->ProcessRafAlignedInput(routing_id); 199 client_->ProcessRafAlignedInput(routing_id);
201 } 200 }
202 201
203 void InputHandlerManager::HandleInputEvent( 202 void InputHandlerManager::HandleInputEvent(
204 int routing_id, 203 int routing_id,
205 blink::WebScopedInputEvent input_event, 204 blink::WebScopedInputEvent input_event,
206 const ui::LatencyInfo& latency_info, 205 const ui::LatencyInfo& latency_info,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 void InputHandlerManager::DispatchNonBlockingEventToMainThread( 278 void InputHandlerManager::DispatchNonBlockingEventToMainThread(
280 int routing_id, 279 int routing_id,
281 blink::WebScopedInputEvent event, 280 blink::WebScopedInputEvent event,
282 const ui::LatencyInfo& latency_info) { 281 const ui::LatencyInfo& latency_info) {
283 DCHECK(task_runner_->BelongsToCurrentThread()); 282 DCHECK(task_runner_->BelongsToCurrentThread());
284 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event), 283 client_->DispatchNonBlockingEventToMainThread(routing_id, std::move(event),
285 latency_info); 284 latency_info);
286 } 285 }
287 286
288 } // namespace content 287 } // 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