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

Unified Diff: tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate

Issue 23055008: Making almost all dom_ methods private. Exceptions will be addressed in a later CL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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: tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
diff --git a/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
index 88b3d86e961d5cd4cbd9db33e21f8782e299a0b5..a1a3862b7c04d3ee71ee0180154cadc1b1811f9b 100644
--- a/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
+++ b/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
@@ -16,8 +16,8 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
if (view == null) {
view = window;
}
- var event = document.$dom_createEvent('MouseEvent');
- event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail,
+ var event = document._createEvent('MouseEvent');
+ event._initMouseEvent(type, canBubble, cancelable, view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
button, relatedTarget);
return event;
@@ -43,14 +43,14 @@ $!MEMBERS
@DomName('MouseEvent.clientX')
@DomName('MouseEvent.clientY')
- Point get client => new Point($dom_clientX, $dom_clientY);
+ Point get client => new Point(_clientX, _clientY);
@DomName('MouseEvent.movementX')
@DomName('MouseEvent.movementY')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental()
- Point get movement => new Point($dom_webkitMovementX, $dom_webkitMovementY);
+ Point get movement => new Point(_webkitMovementX, _webkitMovementY);
/**
* The coordinates of the mouse pointer in target node coordinates.
@@ -59,9 +59,9 @@ $!MEMBERS
* after the event has fired or if the element has CSS transforms affecting
* it.
*/
- Point get offset => new Point($dom_offsetX, $dom_offsetY);
+ Point get offset => new Point(_offsetX, _offsetY);
@DomName('MouseEvent.screenX')
@DomName('MouseEvent.screenY')
- Point get screen => new Point($dom_screenX, $dom_screenY);
+ Point get screen => new Point(_screenX, _screenY);
}

Powered by Google App Engine
This is Rietveld 408576698