Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 library chrome; | |
| 2 | |
| 3 // DO NOT EDIT | |
| 4 // Auto-generated dart:chrome library. | |
| 5 | |
| 6 | |
| 7 // 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
| |
| 8 // for details. All rights reserved. Use of this source code is governed by a | |
| 9 // BSD-style license that can be found in the LICENSE file. | |
| 10 | |
| 11 | |
| 12 | |
| 13 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
| |
| 14 AppModule._(); | |
| 15 | |
| 16 WindowModule get window => new WindowModule._(); | |
| 17 } | |
| 18 | |
| 19 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.
| |
| 20 WindowModule._(); | |
| 21 | |
| 22 void create(String url) { | |
| 23 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.
| |
| 24 } | |
| 25 } | |
| 26 | |
| 27 final app = new AppModule._(); | |
| OLD | NEW |