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

Unified Diff: tools/dom/templates/html/impl/impl_Geolocation.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/impl/impl_Geolocation.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
index d0d011a9600b40b4466f9edc6a286b8aed686b05..e15ffa08a0002e476cd5679e11e4696e769d1810 100644
--- a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
@@ -22,7 +22,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
var completer = new Completer<Geoposition>();
try {
- $dom_getCurrentPosition(
+ _getCurrentPosition(
(position) {
completer.complete(_ensurePosition(position));
},
@@ -56,7 +56,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
controller = new StreamController<Geoposition>(sync: true,
onListen: () {
assert(watchId == null);
- watchId = $dom_watchPosition(
+ watchId = _watchPosition(
(position) {
controller.add(_ensurePosition(position));
},
@@ -67,7 +67,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
},
onCancel: () {
assert(watchId != null);
- $dom_clearWatch(watchId);
+ _clearWatch(watchId);
});
return controller.stream;

Powered by Google App Engine
This is Rietveld 408576698