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

Side by Side Diff: content/browser/renderer_host/input/touchpad_tap_suppression_controller.cc

Issue 2542453003: Suppress LongPress/Tap, and TwoFingerTap when TapDown cancels a fling. (Closed)
Patch Set: clarification comments added. Created 4 years 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/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h" 5 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 TouchpadTapSuppressionController::TouchpadTapSuppressionController( 9 TouchpadTapSuppressionController::TouchpadTapSuppressionController(
10 TouchpadTapSuppressionControllerClient* client, 10 TouchpadTapSuppressionControllerClient* client,
(...skipping 19 matching lines...) Expand all
30 return should_defer; 30 return should_defer;
31 } 31 }
32 32
33 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() { 33 bool TouchpadTapSuppressionController::ShouldSuppressMouseUp() {
34 return controller_.ShouldSuppressTapEnd(); 34 return controller_.ShouldSuppressTapEnd();
35 } 35 }
36 36
37 void TouchpadTapSuppressionController::DropStashedTapDown() { 37 void TouchpadTapSuppressionController::DropStashedTapDown() {
38 } 38 }
39 39
40 void TouchpadTapSuppressionController::ForwardStashedGestureEvents() {
41 // Mouse downs are not handled by gesture event filter; so, they are
42 // immediately forwarded to the renderer.
43 client_->SendMouseEventImmediately(stashed_mouse_down_);
44 }
45
40 void TouchpadTapSuppressionController::ForwardStashedTapDown() { 46 void TouchpadTapSuppressionController::ForwardStashedTapDown() {
41 // Mouse downs are not handled by gesture event filter; so, they are 47 // Mouse downs are not handled by gesture event filter; so, they are
42 // immediately forwarded to the renderer. 48 // immediately forwarded to the renderer.
43 client_->SendMouseEventImmediately(stashed_mouse_down_); 49 client_->SendMouseEventImmediately(stashed_mouse_down_);
44 } 50 }
45 51
46 } // namespace content 52 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698