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

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

Issue 11958026: Stubbing out the initial library for Chrome application support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 7 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..a94bf446ff5fe46ff24525ee59a23d6d0a7ce295
--- /dev/null
+++ b/sdk/lib/chrome/dart2js/chrome_dart2js.dart
@@ -0,0 +1,27 @@
+library chrome;
+
+// DO NOT EDIT
+// Auto-generated dart:chrome library.
+
+
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
ahe 2013/01/17 18:41:27 I think the copyright needs to go in the beginning
blois 2013/01/17 21:03:30 Done. Though note that the copyright is still pre
+// 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.
+
+
+
+class AppModule {
ahe 2013/01/17 18:41:27 This class is not documented.
blois 2013/01/17 21:03:30 This is placeholder code which will be deleted. Th
+ AppModule._();
+
+ WindowModule get window => new WindowModule._();
+}
+
+class WindowModule {
ahe 2013/01/17 18:41:27 This class is not documented.
blois 2013/01/17 21:03:30 Ditto, this will be removed.
+ WindowModule._();
+
+ void create(String url) {
+ JS('void', 'chrome.app.window.create(#)', url);
ahe 2013/01/17 18:41:27 I think this should be: var chrome = JS('', 'chro
blois 2013/01/17 21:03:30 Done.
+ }
+}
+
+final app = new AppModule._();

Powered by Google App Engine
This is Rietveld 408576698