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 class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { | 5 class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { |
6 | 6 |
7 _DocumentImpl get document() native "return this.document;"; | 7 _DocumentImpl get document() native "return this.document;"; |
8 | 8 |
9 Window get _top() native "return this.top;"; | 9 Window get _top() native "return this.top;"; |
10 | 10 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 }; | 111 }; |
112 this.cancelAnimationFrame = function(id) { clearTimeout(id); } | 112 this.cancelAnimationFrame = function(id) { clearTimeout(id); } |
113 '''; | 113 '''; |
114 | 114 |
115 | 115 |
116 _IDBFactoryImpl get indexedDB() => _get_indexedDB(); | 116 _IDBFactoryImpl get indexedDB() => _get_indexedDB(); |
117 | 117 |
118 _IDBFactoryImpl _get_indexedDB() native | 118 _IDBFactoryImpl _get_indexedDB() native |
119 'return this.indexedDB || this.webkitIndexedDB || this.mozIndexedDB'; | 119 'return this.indexedDB || this.webkitIndexedDB || this.mozIndexedDB'; |
120 | 120 |
| 121 // TODO(kasperl): Document this. |
| 122 lookupPort(String name) { |
| 123 var port = JSON.parse(localStorage['dart-port:$name']); |
| 124 return _deserialize(port); |
| 125 } |
| 126 |
121 $!MEMBERS | 127 $!MEMBERS |
122 } | 128 } |
OLD | NEW |