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

Unified Diff: lib/browser_resource.dart

Issue 1612003002: Add browser-compatible version. (Closed) Base URL: https://github.com/dart-lang/resource.git@master
Patch Set: Made test run Created 4 years, 11 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 | « README.md ('k') | lib/resource.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/browser_resource.dart
diff --git a/lib/resource.dart b/lib/browser_resource.dart
similarity index 66%
copy from lib/resource.dart
copy to lib/browser_resource.dart
index 83c75c695dabd9249317861ec15cbf8691c36cb8..d66eeb31d4584a856255f84d792996a8ccaf3d0f 100644
--- a/lib/resource.dart
+++ b/lib/browser_resource.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -21,9 +21,11 @@
/// .first;
///
///
-/// Notice: Currently this package requires `dart:io` to do the reading,
-/// so it doesn't work in the browser.
+/// Notice: Currently this library requires `dart:Html` to do the reading,
+/// so it doesn't work outside of a browser.
+/// This library will eventually be mergeded into the `resource.dart` when
+/// features are available to make that possible.
library resource;
-export "src/resource.dart" show Resource;
-export "src/loader.dart" show ResourceLoader;
+export "src/browser/resource.dart" show Resource;
+export "src/browser/loader.dart" show ResourceLoader;
« no previous file with comments | « README.md ('k') | lib/resource.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698