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

Unified Diff: sdk/lib/core/uri.dart

Issue 23686021: Add property base to the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor fix 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: sdk/lib/core/uri.dart
diff --git a/sdk/lib/core/uri.dart b/sdk/lib/core/uri.dart
index 328b9950d047151eba55b8bc59bb43463d325856..b2aaa42a085c5997b80c5650eadbb92b879ffb0e 100644
--- a/sdk/lib/core/uri.dart
+++ b/sdk/lib/core/uri.dart
@@ -358,6 +358,17 @@ class Uri {
return windows ? _makeWindowsFileUrl(path) : _makeFileUri(path);
}
+ /**
+ * Returns the natural base URI for the current platform.
+ *
+ * When running in the browser this will be the current URL (from
ahe 2013/09/17 12:23:48 the browser -> a browser
Søren Gjesse 2013/09/17 14:12:10 Done.
ahe 2013/09/17 14:17:39 I don't see this change.
Søren Gjesse 2013/09/25 09:17:07 Now it's there.
+ * `window.location.href`).
+ *
+ * When running in the standalone VM this will be a file URI
ahe 2013/09/17 12:23:48 When not running in a browser...
Søren Gjesse 2013/09/17 14:12:10 Done.
ahe 2013/09/17 14:17:39 Ditto.
Søren Gjesse 2013/09/25 09:17:07 Now it's there.
+ * referencing the current working directory.
+ */
+ external static Uri get base;
+
external static bool get _isWindows;
static _checkNonWindowsPathReservedCharacters(List<String> segments,

Powered by Google App Engine
This is Rietveld 408576698