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

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, 8 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..0c97e2e5838e934cd23418361bf5de1c960186e7 100644
--- a/content/browser/renderer_host/touchpad_tap_suppression_controller.h
+++ b/content/browser/renderer_host/touchpad_tap_suppression_controller.h
@@ -6,6 +6,7 @@
#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/tap_suppression_controller_client.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
@@ -31,7 +32,8 @@ 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 WebKit::WebMouseEvent& event,
+ const cc::LatencyInfo& latency_info);
// Should be called on arrival of MouseUp events. Returns true if the caller
// should stop normal handling of the MouseUp.
@@ -49,6 +51,7 @@ class TouchpadTapSuppressionController : public TapSuppressionControllerClient {
RenderWidgetHostImpl* render_widget_host_;
WebKit::WebMouseEvent stashed_mouse_down_;
+ cc::LatencyInfo stashed_latency_info_;
// The core controller of tap suppression.
scoped_ptr<TapSuppressionController> controller_;

Powered by Google App Engine
This is Rietveld 408576698