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

Unified Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 2624783002: Fix movementX/Y attributes for touch pointer events (Closed)
Patch Set: Wrap ForwardTouchEventWithLatencyInfo to always reset points Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index 4634b2bc2aa7920c505deca89e95d88e3f063f1a..8a9990f6cce3e96a89a1e7e5a16a0aa382a25bc0 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -87,6 +87,9 @@ class CONTENT_EXPORT InputRouterImpl
FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
MainframeTouchEventRouting);
+ // Keeps track of last position of touch points and sets MovementXY for them.
+ void SetMovementXYForTouchPoints(blink::WebTouchEvent* event);
+
// TouchpadTapSuppressionControllerClient
void SendMouseEventImmediately(
const MouseEventWithLatencyInfo& mouse_event) override;
@@ -260,6 +263,9 @@ class CONTENT_EXPORT InputRouterImpl
float device_scale_factor_;
+ // Last touch position relative to screen. Used to compute movementX/Y.
+ std::map<int, gfx::Point> global_touch_position_;
+
DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698