| 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 part of html; |
| 6 |
| 5 class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { | 7 class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { |
| 6 | 8 |
| 7 Document get document => JS('Document', '#.document', this); | 9 Document get document => JS('Document', '#.document', this); |
| 8 | 10 |
| 9 Window _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); | 11 Window _open2(url, name) => JS('Window', '#.open(#,#)', this, url, name); |
| 10 | 12 |
| 11 Window _open3(url, name, options) => | 13 Window _open3(url, name, options) => |
| 12 JS('Window', '#.open(#,#,#)', this, url, name, options); | 14 JS('Window', '#.open(#,#,#)', this, url, name, options); |
| 13 | 15 |
| 14 Window open(String url, String name, [String options]) { | 16 Window open(String url, String name, [String options]) { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 * port may be retrieved by any isolate (or JavaScript script) | 140 * port may be retrieved by any isolate (or JavaScript script) |
| 139 * running in this window. | 141 * running in this window. |
| 140 */ | 142 */ |
| 141 void registerPort(String name, var port) { | 143 void registerPort(String name, var port) { |
| 142 var serialized = _serialize(port); | 144 var serialized = _serialize(port); |
| 143 localStorage['dart-port:$name'] = JSON.stringify(serialized); | 145 localStorage['dart-port:$name'] = JSON.stringify(serialized); |
| 144 } | 146 } |
| 145 | 147 |
| 146 $!MEMBERS | 148 $!MEMBERS |
| 147 } | 149 } |
| OLD | NEW |