| Index: tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| diff --git a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| index 7ca2b2600fc5066b03c3a8663a63e5481ed6e067..d39c3c9d6b994b20fbeafd81c0da7674c1c062cc 100644
|
| --- a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| +++ b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
|
| @@ -22,6 +22,15 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| }
|
| $!MEMBERS
|
|
|
| + // TODO(amouravski): Move this documentation out of thise template files and
|
| + // put it into docs.json. Remember to add @DomName here.
|
| + /**
|
| + * The X coordinate of the mouse pointer in target node coordinates.
|
| + *
|
| + * This value may vary between platforms if the target node moves
|
| + * after the event has fired or if the element has CSS transforms affecting
|
| + * it.
|
| + */
|
| int get offsetX {
|
| if (JS('bool', '!!#.offsetX', this)) {
|
| return JS('int', '#.offsetX', this);
|
| @@ -36,6 +45,13 @@ $!MEMBERS
|
| }
|
| }
|
|
|
| + /**
|
| + * The Y coordinate of the mouse pointer in target node coordinates.
|
| + *
|
| + * This value may vary between platforms if the target node moves
|
| + * after the event has fired or if the element has CSS transforms affecting
|
| + * it.
|
| + */
|
| int get offsetY {
|
| if (JS('bool', '!!#.offsetY', this)) {
|
| return JS('int', '#.offsetY', this);
|
|
|