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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698