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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.idl

Issue 2406263003: Make PointerEvent coordinates fractional for touch (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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: third_party/WebKit/Source/core/events/MouseEvent.idl
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.idl b/third_party/WebKit/Source/core/events/MouseEvent.idl
index 99172320ccde0916bcc8fa2e4c02ff2422be5254..70ef1023e49a87fc6d5aa6f2ff0d8b8d7e0aba53 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.idl
+++ b/third_party/WebKit/Source/core/events/MouseEvent.idl
@@ -23,10 +23,10 @@
Constructor(DOMString type, optional MouseEventInit eventInitDict),
ConstructorCallWith=ScriptState,
] interface MouseEvent : UIEvent {
- readonly attribute long screenX;
- readonly attribute long screenY;
- readonly attribute long clientX;
- readonly attribute long clientY;
+ readonly attribute double screenX;
+ readonly attribute double screenY;
+ readonly attribute double clientX;
+ readonly attribute double clientY;
readonly attribute boolean ctrlKey;
readonly attribute boolean shiftKey;
readonly attribute boolean altKey;
@@ -54,16 +54,12 @@
[Default=Undefined] optional unsigned short button,
[Default=Undefined] optional EventTarget? relatedTarget);
- // CSSOM View Module
- // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interface
- // TODO(foolip): These attributes should be of type double, and the spec
- // also redefines screenX/Y and clientX/Y as double.
- readonly attribute long pageX;
- readonly attribute long pageY;
- [MeasureAs=MouseEventX] readonly attribute long x;
- [MeasureAs=MouseEventY] readonly attribute long y;
- [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX;
- [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY;
+ readonly attribute double pageX;
+ readonly attribute double pageY;
+ [MeasureAs=MouseEventX] readonly attribute double x;
+ [MeasureAs=MouseEventY] readonly attribute double y;
+ [MeasureAs=MouseEventOffsetX] readonly attribute double offsetX;
+ [MeasureAs=MouseEventOffsetY] readonly attribute double offsetY;
// Pointer Lock
// https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions-to-the-mouseevent-interface
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/core/events/MouseEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698