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..4239be186f1b72f18f7ad708e0271f5b95b55d62 |
--- /dev/null |
+++ b/sdk/lib/chrome/dart2js/chrome_dart2js.dart |
@@ -0,0 +1,25 @@ |
+library chrome; |
+ |
+// DO NOT EDIT |
+// Auto-generated dart:chrome library. |
+ |
+ |
+// Copyright (c) 2012, 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. |
+ |
+ |
+ |
+class ChromeApp { |
+ ChromeWindow get window => new ChromeWindow._(); |
+} |
+ |
+class ChromeWindow { |
+ ChromeWindow._(); |
+ |
+ void create(String url) { |
+ JS('void', 'chrome.app.window.create(#)'); |
sashab
2013/01/17 02:56:47
Should be
JS('void', 'chrome.app.window.create(#
blois
2013/01/17 18:03:20
Yeah, dunno what happened to that- I had it workin
|
+ } |
+} |
+ |
+final app = new ChromeApp(); |