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

Side by Side Diff: content/browser/renderer_host/touchscreen_tap_suppression_controller.cc

Issue 13931009: Add latency info to input events sent to RenderWidget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/browser/renderer_host/touchscreen_tap_suppression_controller.h " 5 #include "content/browser/renderer_host/touchscreen_tap_suppression_controller.h "
6 6
7 #include "content/browser/renderer_host/gesture_event_filter.h" 7 #include "content/browser/renderer_host/gesture_event_filter.h"
8 #include "content/browser/renderer_host/tap_suppression_controller.h" 8 #include "content/browser/renderer_host/tap_suppression_controller.h"
9 #include "ui/base/gestures/gesture_configuration.h" 9 #include "ui/base/gestures/gesture_configuration.h"
10 10
(...skipping 10 matching lines...) Expand all
21 void TouchscreenTapSuppressionController::GestureFlingCancel() { 21 void TouchscreenTapSuppressionController::GestureFlingCancel() {
22 controller_->GestureFlingCancel(); 22 controller_->GestureFlingCancel();
23 } 23 }
24 24
25 void TouchscreenTapSuppressionController::GestureFlingCancelAck( 25 void TouchscreenTapSuppressionController::GestureFlingCancelAck(
26 bool processed) { 26 bool processed) {
27 controller_->GestureFlingCancelAck(processed); 27 controller_->GestureFlingCancelAck(processed);
28 } 28 }
29 29
30 bool TouchscreenTapSuppressionController::ShouldDeferGestureTapDown( 30 bool TouchscreenTapSuppressionController::ShouldDeferGestureTapDown(
31 const WebKit::WebGestureEvent& event) { 31 const GestureEventWithLatencyInfo& event) {
32 bool should_defer = controller_->ShouldDeferTapDown(); 32 bool should_defer = controller_->ShouldDeferTapDown();
33 if (should_defer) 33 if (should_defer)
34 stashed_tap_down_ = event; 34 stashed_tap_down_ = event;
35 return should_defer; 35 return should_defer;
36 } 36 }
37 37
38 bool TouchscreenTapSuppressionController::ShouldSuppressGestureTap() { 38 bool TouchscreenTapSuppressionController::ShouldSuppressGestureTap() {
39 return controller_->ShouldSuppressTapUp(); 39 return controller_->ShouldSuppressTapUp();
40 } 40 }
41 41
(...skipping 15 matching lines...) Expand all
57 57
58 void TouchscreenTapSuppressionController::ForwardStashedTapDownForDeferral() { 58 void TouchscreenTapSuppressionController::ForwardStashedTapDownForDeferral() {
59 gesture_event_filter_->ForwardGestureEventForDeferral(stashed_tap_down_); 59 gesture_event_filter_->ForwardGestureEventForDeferral(stashed_tap_down_);
60 } 60 }
61 61
62 void TouchscreenTapSuppressionController::ForwardStashedTapDownSkipDeferral() { 62 void TouchscreenTapSuppressionController::ForwardStashedTapDownSkipDeferral() {
63 gesture_event_filter_->ForwardGestureEventSkipDeferral(stashed_tap_down_); 63 gesture_event_filter_->ForwardGestureEventSkipDeferral(stashed_tap_down_);
64 } 64 }
65 65
66 } // namespace content 66 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698