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

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

Issue 2211563002: Use Point<num> in dart:html for strong mode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 1b2bbc8dcb35d5d073cfc6864742c222e88dd7e8..229afe623fc25ff829e3616e5e8af12b94720d86 100644
--- a/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
+++ b/tools/dom/templates/html/dartium/impl_MouseEvent.darttemplate
@@ -43,14 +43,14 @@ $!MEMBERS
@DomName('MouseEvent.clientX')
@DomName('MouseEvent.clientY')
- Point get client => new Point(_clientX, _clientY);
+ Point get client => new Point/*<num>*/(_clientX, _clientY);
@DomName('MouseEvent.movementX')
@DomName('MouseEvent.movementY')
@SupportedBrowser(SupportedBrowser.CHROME)
@SupportedBrowser(SupportedBrowser.FIREFOX)
@Experimental()
- Point get movement => new Point(_movementX, _movementY);
+ Point get movement => new Point/*<num>*/(_movementX, _movementY);
/**
* The coordinates of the mouse pointer in target node coordinates.
@@ -59,17 +59,17 @@ $!MEMBERS
* after the event has fired or if the element has CSS transforms affecting
* it.
*/
- Point get offset => new Point(_offsetX, _offsetY);
+ Point get offset => new Point/*<num>*/(_offsetX, _offsetY);
@DomName('MouseEvent.screenX')
@DomName('MouseEvent.screenY')
- Point get screen => new Point(_screenX, _screenY);
+ Point get screen => new Point/*<num>*/(_screenX, _screenY);
@DomName('MouseEvent.layerX')
@DomName('MouseEvent.layerY')
- Point get layer => new Point(_layerX, _layerY);
+ Point get layer => new Point/*<num>*/(_layerX, _layerY);
@DomName('MouseEvent.pageX')
@DomName('MouseEvent.pageY')
- Point get page => new Point(_pageX, _pageY);
+ Point get page => new Point/*<num>*/(_pageX, _pageY);
}

Powered by Google App Engine
This is Rietveld 408576698