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

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

Issue 628763003: Support InputRouter recycling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 2 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/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 16 matching lines...) Expand all
27 bool should_defer = controller_.ShouldDeferTapDown(); 27 bool should_defer = controller_.ShouldDeferTapDown();
28 if (should_defer) 28 if (should_defer)
29 stashed_mouse_down_ = event; 29 stashed_mouse_down_ = event;
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::Reset() {
38 controller_.Reset();
39 }
40
37 void TouchpadTapSuppressionController::DropStashedTapDown() { 41 void TouchpadTapSuppressionController::DropStashedTapDown() {
38 } 42 }
39 43
40 void TouchpadTapSuppressionController::ForwardStashedTapDown() { 44 void TouchpadTapSuppressionController::ForwardStashedTapDown() {
41 // Mouse downs are not handled by gesture event filter; so, they are 45 // Mouse downs are not handled by gesture event filter; so, they are
42 // immediately forwarded to the renderer. 46 // immediately forwarded to the renderer.
43 client_->SendMouseEventImmediately(stashed_mouse_down_); 47 client_->SendMouseEventImmediately(stashed_mouse_down_);
44 } 48 }
45 49
46 } // namespace content 50 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698