Chromium Code Reviews| 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._(); |