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

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

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // This class provides an interface for callbacks made by 12 // This class provides an interface for callbacks made by
13 // TapSuppressionController. 13 // TapSuppressionController.
14 class TapSuppressionControllerClient { 14 class TapSuppressionControllerClient {
15 public: 15 public:
16 virtual ~TapSuppressionControllerClient() {} 16 virtual ~TapSuppressionControllerClient() {}
17 17
18 // Called whenever the deferred tap down (if saved) should be dropped totally. 18 // Called whenever the deferred tap down (if saved) should be dropped totally.
19 virtual void DropStashedTapDown() = 0; 19 virtual void DropStashedTapDown() = 0;
20 20
21 // Called whenever the deferred tap down (if saved) should be forwarded to the 21 // Called whenever the deferred tap down and other gesture events (if saved)
22 // renderer. The tap down should go back to normal path it was 22 // should be forwarded to the renderer. The tap down (and possibly other
23 // on before being deferred. 23 // gesture events) should go back to normal path they were on before being
24 // deferred.
25 virtual void ForwardStashedGestureEvents() = 0;
26
27 // Called whenever only the deferred tap down (if saved) should be forwarded
28 // to the renderer. Other saved gesture events will be dropped.
24 virtual void ForwardStashedTapDown() = 0; 29 virtual void ForwardStashedTapDown() = 0;
25 30
26 protected: 31 protected:
27 TapSuppressionControllerClient() {} 32 TapSuppressionControllerClient() {}
28 33
29 private: 34 private:
30 DISALLOW_COPY_AND_ASSIGN(TapSuppressionControllerClient); 35 DISALLOW_COPY_AND_ASSIGN(TapSuppressionControllerClient);
31 }; 36 };
32 37
33 } // namespace content 38 } // namespace content
34 39
35 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT _H_ 40 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TAP_SUPPRESSION_CONTROLLER_CLIENT _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698