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

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

Issue 1201193005: Move UIEvent.pageX/pageY/layerX/layerY to MouseEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again; UseCounter changed already again Created 5 years, 6 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: Source/core/events/MouseEvent.idl
diff --git a/Source/core/events/MouseEvent.idl b/Source/core/events/MouseEvent.idl
index 1ccf067eccf23cd9429e5f1f1890000a1f8f8cb9..6aa051a1a54c41b26ea8f6c70fb6708e2188b59a 100644
--- a/Source/core/events/MouseEvent.idl
+++ b/Source/core/events/MouseEvent.idl
@@ -58,6 +58,8 @@
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-mouseevent-interface
// TODO(philipj): 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;
@@ -74,6 +76,8 @@
[MeasureAs=MouseEventWhich] readonly attribute long which;
[DeprecateAs=PrefixedMouseEventMovementX, ImplementedAs=movementX] readonly attribute long webkitMovementX;
[DeprecateAs=PrefixedMouseEventMovementY, ImplementedAs=movementY] readonly attribute long webkitMovementY;
+ [Measure] readonly attribute long layerX;
+ [Measure] readonly attribute long layerY;
// FIXME: dataTransfer belongs on the DragEvent interface. crbug.com/498504
readonly attribute DataTransfer dataTransfer;
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/events/MouseRelatedEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698