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

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

Issue 1214923005: Sync part of the MouseEvent interface with CSSOM View (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MouseEvent.idl
diff --git a/Source/core/events/MouseEvent.idl b/Source/core/events/MouseEvent.idl
index 21c0a2fd5059112c134a1d412a885c598ed4e266..1ccf067eccf23cd9429e5f1f1890000a1f8f8cb9 100644
--- a/Source/core/events/MouseEvent.idl
+++ b/Source/core/events/MouseEvent.idl
@@ -54,16 +54,21 @@
[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(philipj): These attributes should be of type double, and the spec
+ // also redefines screenX/Y and clientX/Y as double.
+ [MeasureAs=MouseEventX] readonly attribute long x;
+ [MeasureAs=MouseEventY] readonly attribute long y;
+ [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX;
+ [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY;
+
// Pointer Lock
// https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#extensions-to-the-mouseevent-interface
[MeasureAs=MouseEventMovementX] readonly attribute long movementX;
[MeasureAs=MouseEventMovementY] readonly attribute long movementY;
// Non-standard
- [MeasureAs=MouseEventOffsetX] readonly attribute long offsetX;
- [MeasureAs=MouseEventOffsetY] readonly attribute long offsetY;
- [MeasureAs=MouseEventX] readonly attribute long x;
- [MeasureAs=MouseEventY] readonly attribute long y;
[MeasureAs=MouseEventFromElement] readonly attribute Node fromElement;
[MeasureAs=MouseEventToElement] readonly attribute Node toElement;
[MeasureAs=MouseEventWhich] readonly attribute long which;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698