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

Unified Diff: mojo/services/input_events/public/interfaces/input_events.mojom

Issue 1020853010: Adds back screen coordinates to event (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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: mojo/services/input_events/public/interfaces/input_events.mojom
diff --git a/mojo/services/input_events/public/interfaces/input_events.mojom b/mojo/services/input_events/public/interfaces/input_events.mojom
index c576496123ad6e1605895b5fa9b74365c6505f91..008626572d0efd09cb1db132d5128aa7f3c5c9f6 100644
--- a/mojo/services/input_events/public/interfaces/input_events.mojom
+++ b/mojo/services/input_events/public/interfaces/input_events.mojom
@@ -50,8 +50,12 @@ struct KeyData {
struct PointerData {
int32 pointer_id;
PointerKind kind;
+ // |x| and |y| are in the coordinate system of the View.
float x;
float y;
+ // |screen_x| and |screen_y| are in screen coordinates.
+ float screen_x;
+ float screen_y;
float pressure;
float radius_major;
float radius_minor;
« no previous file with comments | « mojo/converters/input_events/input_events_type_converters.cc ('k') | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698