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

Unified Diff: tools/dom/src/chrome/sample.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: 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();

Powered by Google App Engine
This is Rietveld 408576698