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

Side by Side Diff: content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h

Issue 2613533003: Tap suppression controller forwards the next TapCancel when the stashed TapDown is forwarded. (Closed)
Patch Set: Created 3 years, 11 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL ER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL ER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL ER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLL ER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void ForwardStashedGestureEvents() override; 43 void ForwardStashedGestureEvents() override;
44 void ForwardStashedTapDown() override; 44 void ForwardStashedTapDown() override;
45 45
46 GestureEventQueue* gesture_event_queue_; 46 GestureEventQueue* gesture_event_queue_;
47 47
48 typedef std::unique_ptr<GestureEventWithLatencyInfo> ScopedGestureEvent; 48 typedef std::unique_ptr<GestureEventWithLatencyInfo> ScopedGestureEvent;
49 ScopedGestureEvent stashed_tap_down_; 49 ScopedGestureEvent stashed_tap_down_;
50 ScopedGestureEvent stashed_show_press_; 50 ScopedGestureEvent stashed_show_press_;
51 ScopedGestureEvent stashed_long_press_; 51 ScopedGestureEvent stashed_long_press_;
52 52
53 // This is true when the stashed GestureTapDown event gets forwarded. The
54 // controller should forward the next GestureTapCancel as well to maintain a
55 // valid input stream.
56 bool forward_next_tap_cancel_;
57
53 // The core controller of tap suppression. 58 // The core controller of tap suppression.
54 TapSuppressionController controller_; 59 TapSuppressionController controller_;
55 60
56 DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController); 61 DISALLOW_COPY_AND_ASSIGN(TouchscreenTapSuppressionController);
57 }; 62 };
58 63
59 } // namespace content 64 } // namespace content
60 65
61 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTR OLLER_H_ 66 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCHSCREEN_TAP_SUPPRESSION_CONTR OLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698