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

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

Issue 13931009: Add latency info to input events sent to RenderWidget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/touchscreen_tap_suppression_controller.h
diff --git a/content/browser/renderer_host/touchscreen_tap_suppression_controller.h b/content/browser/renderer_host/touchscreen_tap_suppression_controller.h
index 4a6f7306108a3db342a378a07f375e24a2e07127..bc5f275913676a0ece1a2a149eae4e1f4eddad93 100644
--- a/content/browser/renderer_host/touchscreen_tap_suppression_controller.h
+++ b/content/browser/renderer_host/touchscreen_tap_suppression_controller.h
@@ -6,8 +6,8 @@
#define CONTENT_BROWSER_RENDERER_HOST_TOUCHSCREEN_TAP_SUPPRESSION_CONTROLLER_H_
#include "base/memory/scoped_ptr.h"
+#include "content/browser/renderer_host/gesture_event_filter.h"
#include "content/browser/renderer_host/tap_suppression_controller_client.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
namespace content {
@@ -32,7 +32,7 @@ class TouchscreenTapSuppressionController
// Should be called on arrival of GestureTapDown events. Returns true if the
// caller should stop normal handling of the GestureTapDown. In this case, the
// caller is responsible for saving the event for later use, if needed.
- bool ShouldDeferGestureTapDown(const WebKit::WebGestureEvent& event);
+ bool ShouldDeferGestureTapDown(const GestureEventWithLatencyInfo& event);
// Should be called on arrival of GestureTap events. Returns true if the
// caller should stop normal handling of the GestureTap.
@@ -51,7 +51,7 @@ class TouchscreenTapSuppressionController
virtual void ForwardStashedTapDownSkipDeferral() OVERRIDE;
GestureEventFilter* gesture_event_filter_;
- WebKit::WebGestureEvent stashed_tap_down_;
+ GestureEventWithLatencyInfo stashed_tap_down_;
// The core controller of tap suppression.
scoped_ptr<TapSuppressionController> controller_;

Powered by Google App Engine
This is Rietveld 408576698