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

Side by Side Diff: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate

Issue 13868003: Tighten type of 'document' to HtmlDocument (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « tools/dom/templates/html/dart2js/html_dart2js.darttemplate ('k') | no next file » | 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 part of $LIBRARYNAME; 7 part of $LIBRARYNAME;
8 8
9 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 9 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
10 $!MEMBERS 10 $!MEMBERS
11
12 $if DART2JS
13 @DomName('Document.body')
14 BodyElement body;
15 $else
11 @DomName('Document.body') 16 @DomName('Document.body')
12 BodyElement get body => $dom_body; 17 BodyElement get body => $dom_body;
13 18
14 @DomName('Document.body') 19 @DomName('Document.body')
15 void set body(BodyElement value) { 20 void set body(BodyElement value) {
16 $dom_body = value; 21 $dom_body = value;
17 } 22 }
23 $endif
18 24
19 @DomName('Document.caretRangeFromPoint') 25 @DomName('Document.caretRangeFromPoint')
20 Range caretRangeFromPoint(int x, int y) { 26 Range caretRangeFromPoint(int x, int y) {
21 return $dom_caretRangeFromPoint(x, y); 27 return $dom_caretRangeFromPoint(x, y);
22 } 28 }
23 29
24 @DomName('Document.elementFromPoint') 30 @DomName('Document.elementFromPoint')
25 Element elementFromPoint(int x, int y) { 31 Element elementFromPoint(int x, int y) {
26 return $dom_elementFromPoint(x, y); 32 return $dom_elementFromPoint(x, y);
27 } 33 }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 @Experimental 159 @Experimental
154 Element get pointerLockElement => 160 Element get pointerLockElement =>
155 $dom_webkitPointerLockElement; 161 $dom_webkitPointerLockElement;
156 162
157 @DomName('Document.webkitVisibilityState') 163 @DomName('Document.webkitVisibilityState')
158 @SupportedBrowser(SupportedBrowser.CHROME) 164 @SupportedBrowser(SupportedBrowser.CHROME)
159 @SupportedBrowser(SupportedBrowser.SAFARI) 165 @SupportedBrowser(SupportedBrowser.SAFARI)
160 @Experimental 166 @Experimental
161 String get visibilityState => $dom_webkitVisibilityState; 167 String get visibilityState => $dom_webkitVisibilityState;
162 } 168 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/dart2js/html_dart2js.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698