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

Unified Diff: content/browser/renderer_host/touchpad_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/touchpad_tap_suppression_controller.h
diff --git a/content/browser/renderer_host/touchpad_tap_suppression_controller.h b/content/browser/renderer_host/touchpad_tap_suppression_controller.h
index 874bc8f009747a6cef12a790f1a3483f274ce8dd..76e1fc1810d285978794c11d821ea154a578ac3d 100644
--- a/content/browser/renderer_host/touchpad_tap_suppression_controller.h
+++ b/content/browser/renderer_host/touchpad_tap_suppression_controller.h
@@ -6,6 +6,8 @@
#define CONTENT_BROWSER_RENDERER_HOST_TOUCHPAD_TAP_SUPPRESSION_CONTROLLER_H_
#include "base/memory/scoped_ptr.h"
+#include "cc/debug/latency_info.h"
+#include "content/browser/renderer_host/event_with_latency_info.h"
#include "content/browser/renderer_host/tap_suppression_controller_client.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
@@ -31,7 +33,7 @@ class TouchpadTapSuppressionController : public TapSuppressionControllerClient {
// Should be called on arrival of MouseDown events. Returns true if the caller
// should stop normal handling of the MouseDown. In this case, the caller is
// responsible for saving the event for later use, if needed.
- bool ShouldDeferMouseDown(const WebKit::WebMouseEvent& event);
+ bool ShouldDeferMouseDown(const MouseEventWithLatencyInfo& event);
// Should be called on arrival of MouseUp events. Returns true if the caller
// should stop normal handling of the MouseUp.
@@ -48,7 +50,7 @@ class TouchpadTapSuppressionController : public TapSuppressionControllerClient {
virtual void ForwardStashedTapDownSkipDeferral() OVERRIDE;
RenderWidgetHostImpl* render_widget_host_;
- WebKit::WebMouseEvent stashed_mouse_down_;
+ MouseEventWithLatencyInfo stashed_mouse_down_;
// The core controller of tap suppression.
scoped_ptr<TapSuppressionController> controller_;

Powered by Google App Engine
This is Rietveld 408576698