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

Side by Side Diff: tools/dom/src/chrome/chrome.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of chrome; 5 part of chrome;
6 6
7 // chrome.app 7 // chrome.app
8 class API_ChromeApp { 8 class API_ChromeApp {
9 /* 9 /*
10 * JS Variable 10 * JS Variable
(...skipping 26 matching lines...) Expand all
37 class API_Chrome { 37 class API_Chrome {
38 /* 38 /*
39 * JS Variable 39 * JS Variable
40 */ 40 */
41 Object _jsObject; 41 Object _jsObject;
42 42
43 /* 43 /*
44 * Members 44 * Members
45 */ 45 */
46 API_ChromeApp app; 46 API_ChromeApp app;
47 API_file_system fileSystem;
47 48
48 /* 49 /*
49 * Constructor 50 * Constructor
50 */ 51 */
51 API_Chrome() { 52 API_Chrome() {
52 this._jsObject = JS("Object", "chrome"); 53 this._jsObject = JS("Object", "chrome");
53 if (this._jsObject == null) 54 if (this._jsObject == null)
54 throw new UnsupportedError('Not supported by current browser.'); 55 throw new UnsupportedError('Not supported by current browser.');
55 56
56 var app_object = JS('', '#.app', this._jsObject); 57 var app_object = JS('', '#.app', this._jsObject);
57 if (app_object == null) 58 if (app_object == null)
58 throw new UnsupportedError('Not supported by current browser.'); 59 throw new UnsupportedError('Not supported by current browser.');
59 app = new API_ChromeApp(app_object); 60 app = new API_ChromeApp(app_object);
61
62 var file_system_object = JS('', '#.fileSystem', this._jsObject);
63 if (file_system_object == null)
64 throw new UnsupportedError('Not supported by current browser.');
65 fileSystem = new API_file_system(file_system_object);
60 } 66 }
61 } 67 }
62 68
63 // The final chrome objects 69 // The final chrome objects
64 final API_Chrome chrome = new API_Chrome(); 70 final API_Chrome chrome = new API_Chrome();
OLDNEW
« no previous file with comments | « tools/dom/scripts/chromegenerator.py ('k') | tools/dom/templates/html/dart2js/chrome_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698