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

Unified Diff: content/browser/renderer_host/tap_suppression_controller.h

Issue 11361150: Suppress sending mousedown / mouseup when in fling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed checking GEF's queue back when it is empty in unit tests Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/tap_suppression_controller.h
diff --git a/content/browser/renderer_host/tap_suppression_controller.h b/content/browser/renderer_host/tap_suppression_controller.h
index ea2f2c078aef5f1c1a972ac6945651c27561e37f..84a7c4821dfd6dc4a90e88d7cce2f3099f74f30d 100644
--- a/content/browser/renderer_host/tap_suppression_controller.h
+++ b/content/browser/renderer_host/tap_suppression_controller.h
@@ -11,6 +11,7 @@
namespace content {
+class MockRenderWidgetHost;
class RenderWidgetHostImpl;
// Controls the suppression of taps (rapid mousedown/mouseup sequences)
@@ -41,6 +42,8 @@ class TapSuppressionController {
void GestureFlingCancel(double cancel_time);
private:
+ friend class MockRenderWidgetHost;
+
enum State {
NOTHING,
GFC_IN_PROGRESS,

Powered by Google App Engine
This is Rietveld 408576698