Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 patch class _HttpSessionManager { | 5 |
| 6 /* patch */ static Uint8List _getRandomBytes(int count) | 6 part of chrome; |
| 7 native "Crypto_GetRandomBytes"; | 7 |
| 8 class ChromeApp { | |
|
vsm
2013/01/17 15:31:28
Internal constructor for this class ala ChromeWind
blois
2013/01/17 18:03:20
Done.
| |
| 9 ChromeWindow get window => new ChromeWindow._(); | |
| 8 } | 10 } |
| 11 | |
| 12 class ChromeWindow { | |
|
vsm
2013/01/17 15:31:28
Since chrome.app.window is a module and not an act
blois
2013/01/17 18:03:20
Done.
In general I'm not quite sure of the nicest
| |
| 13 ChromeWindow._(); | |
| 14 | |
| 15 void create(String url) { | |
| 16 JS('void', 'chrome.app.window.create(#)'); | |
| 17 } | |
| 18 } | |
| 19 | |
| 20 final app = new ChromeApp(); | |
| OLD | NEW |