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

Unified Diff: sky/engine/bindings/builtin.dart

Issue 926163002: Program _uriBaseClosure into the DartVM (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | sky/engine/bindings/builtin_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/builtin.dart
diff --git a/sky/engine/bindings/builtin.dart b/sky/engine/bindings/builtin.dart
index 8dc83511346b80f7798266fcbd7ab832ecc22c54..9fcbd9ac3f46103b036e4879540e43751d5e4d30 100644
--- a/sky/engine/bindings/builtin.dart
+++ b/sky/engine/bindings/builtin.dart
@@ -48,6 +48,10 @@ Timer _createTimer(int milliseconds,
return new _Timer(milliseconds, callback, repeating);
}
+String _getBaseURLString() native "GetBaseURLString";
+Uri _getBaseURL() => Uri.parse(_getBaseURLString());
+
_getPrintClosure() => _print;
_getScheduleMicrotaskClosure() => _scheduleMicrotask;
+_getGetBaseURLClosure() =>_getBaseURL;
_getCreateTimerClosure() => _createTimer;
« no previous file with comments | « no previous file | sky/engine/bindings/builtin_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698