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

Unified Diff: runtime/lib/uri_patch.dart

Issue 23686021: Add property base to the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ahe@ Created 7 years, 3 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: runtime/lib/uri_patch.dart
diff --git a/runtime/lib/uri_patch.dart b/runtime/lib/uri_patch.dart
index b07946d190d276da4dabe4f85cd104a1e05475a5..2a7c1cc33bed6dd23284ffb398ee9ecec8840956 100644
--- a/runtime/lib/uri_patch.dart
+++ b/runtime/lib/uri_patch.dart
@@ -6,7 +6,10 @@
patch class Uri {
static final bool _isWindowsCached = _isWindowsPlatform;
- static bool get _isWindowsPlatform native "Uri_isWindowsPlatform";
-
/* patch */ static bool get _isWindows => _isWindowsCached;
+
+ /* patch */ static Uri get base => new Uri.file(_currentDirectory() + "/");
+
+ static bool get _isWindowsPlatform native "Uri_isWindowsPlatform";
+ static _currentDirectory() native "Uri_currentDirectory";
Ivan Posva 2013/09/17 21:28:04 Why does this have to be a native method? Can't th
Søren Gjesse 2013/09/25 09:17:08 Done.
}
« runtime/lib/uri.cc ('K') | « runtime/lib/uri.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698