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

Unified Diff: tools/dom/templates/html/impl/impl_Geolocation.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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 e1c84ac85eb8085064301c2e0bb9580d4e5afdac..1396e4a3f0e368c9aa877fc862e46bb929c5f77f 100644
--- a/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Geolocation.darttemplate
@@ -77,7 +77,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
}
Geoposition _ensurePosition(domPosition) {
-$if DART2JS
try {
// Firefox may throw on this.
if (domPosition is Geoposition) {
@@ -85,14 +84,10 @@ $if DART2JS
}
} catch(e) {}
return new _GeopositionWrapper(domPosition);
-$else
- return domPosition;
-$endif
}
$!MEMBERS}
-$if DART2JS
/**
* Wrapper for Firefox- it returns an object which we cannot map correctly.
* Basically Firefox was returning a [xpconnect wrapped nsIDOMGeoPosition] but
@@ -105,4 +100,3 @@ class _GeopositionWrapper implements Geoposition {
Coordinates get coords => JS('Coordinates', '#.coords', _ptr);
int get timestamp => JS('int', '#.timestamp', _ptr);
}
-$endif

Powered by Google App Engine
This is Rietveld 408576698