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

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: 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..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();

Powered by Google App Engine
This is Rietveld 408576698