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

Side by Side Diff: sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate

Issue 11407002: Adding 'part of html' to all files which are used by dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698