Chromium Code Reviews| Index: tools/dom/src/chrome/sample.dart |
| diff --git a/runtime/bin/http_patch.dart b/tools/dom/src/chrome/sample.dart |
| similarity index 51% |
| copy from runtime/bin/http_patch.dart |
| copy to tools/dom/src/chrome/sample.dart |
| index fc3da60f41b5d69dd9f6c152410cc5873eef23a2..9bd8e5bb2a7e8e7b26f8726731d9fc8152b11dd7 100644 |
| --- a/runtime/bin/http_patch.dart |
| +++ b/tools/dom/src/chrome/sample.dart |
| @@ -2,7 +2,19 @@ |
| // 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. |
| -patch class _HttpSessionManager { |
| - /* patch */ static Uint8List _getRandomBytes(int count) |
| - native "Crypto_GetRandomBytes"; |
| + |
| +part of chrome; |
| + |
| +class ChromeApp { |
|
vsm
2013/01/17 15:31:28
Internal constructor for this class ala ChromeWind
blois
2013/01/17 18:03:20
Done.
|
| + ChromeWindow get window => new ChromeWindow._(); |
| +} |
| + |
| +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
|
| + ChromeWindow._(); |
| + |
| + void create(String url) { |
| + JS('void', 'chrome.app.window.create(#)'); |
| + } |
| } |
| + |
| +final app = new ChromeApp(); |