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

Side by Side Diff: lib/dom/templates/html/frog/impl_Window.darttemplate

Issue 10700101: First experimental steps towards a better story for JS interop. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 5 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
« no previous file with comments | « lib/dom/templates/html/frog/html_frog.darttemplate ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « lib/dom/templates/html/frog/html_frog.darttemplate ('k') | lib/html/frog/html_frog.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698