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

Unified Diff: sdk/lib/chrome/dart2js/chrome_dart2js.dart

Issue 23202004: Update dart:chrome to include fileSystem, and update summary docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | tools/dom/scripts/chromegenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/chrome/dart2js/chrome_dart2js.dart
diff --git a/sdk/lib/chrome/dart2js/chrome_dart2js.dart b/sdk/lib/chrome/dart2js/chrome_dart2js.dart
index 0bca60212b601ccaf321c75cdb0b7aa3b601df5a..77338a8c3068424d42ccabf25d5544c2669080ba 100644
--- a/sdk/lib/chrome/dart2js/chrome_dart2js.dart
+++ b/sdk/lib/chrome/dart2js/chrome_dart2js.dart
@@ -1,10 +1,10 @@
-/// Native wrappers for the Chrome Packaged App APIs.
+/// Native wrappers for the Chrome packaged app APIs.
///
-/// These functions allow direct access to the Packaged App APIs, allowing
-/// Chrome Packaged Apps to be written using Dart.
+/// These functions allow direct access to the chrome.* APIs, allowing
+/// Chrome packaged apps to be written using Dart.
///
-/// For more information on these APIs, see the Chrome.* APIs Documentation:
-/// http://developer.chrome.com/extensions/api_index.html
+/// For more information on these APIs, see the
+/// [chrome.* API documentation](http://developer.chrome.com/apps/api_index.html).
library chrome;
import 'dart:_foreign_helper' show JS;
@@ -363,6 +363,7 @@ class API_Chrome {
* Members
*/
API_ChromeApp app;
+ API_file_system fileSystem;
/*
* Constructor
@@ -376,6 +377,11 @@ class API_Chrome {
if (app_object == null)
throw new UnsupportedError('Not supported by current browser.');
app = new API_ChromeApp(app_object);
+
+ var file_system_object = JS('', '#.fileSystem', this._jsObject);
+ if (file_system_object == null)
+ throw new UnsupportedError('Not supported by current browser.');
+ fileSystem = new API_file_system(file_system_object);
}
}
« no previous file with comments | « no previous file | tools/dom/scripts/chromegenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698