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

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

Issue 12212056: Sample test for custom elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
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 @DomName('Document.body') 11 @DomName('Document.body')
12 BodyElement get body => document.$dom_body; 12 BodyElement get body => document.$dom_body;
13 13
14 @DomName('Document.body') 14 @DomName('Document.body')
15 void set body(BodyElement value) { 15 void set body(BodyElement value) {
16 document.$dom_body = value; 16 document.$dom_body = value;
17 } 17 }
18 18
19 /**
20 * Registers a custom Element subclass as an available HTML tag.
21 *
22 * Not yet implemented.
23 */
24 @Experimental
25 void register(String tagName, Type elementClass) {
26 // TODO: tagName validation
27 throw new Exception('Not yet implemented');
28 }
29
19 @DomName('Document.caretRangeFromPoint') 30 @DomName('Document.caretRangeFromPoint')
20 Range caretRangeFromPoint(int x, int y) { 31 Range caretRangeFromPoint(int x, int y) {
21 return document.$dom_caretRangeFromPoint(x, y); 32 return document.$dom_caretRangeFromPoint(x, y);
22 } 33 }
23 34
24 @DomName('Document.elementFromPoint') 35 @DomName('Document.elementFromPoint')
25 Element elementFromPoint(int x, int y) { 36 Element elementFromPoint(int x, int y) {
26 return document.$dom_elementFromPoint(x, y); 37 return document.$dom_elementFromPoint(x, y);
27 } 38 }
28 39
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 @DomName('Document.webkitIsFullScreen') 137 @DomName('Document.webkitIsFullScreen')
127 bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; 138 bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen;
128 139
129 @DomName('Document.webkitPointerLockElement') 140 @DomName('Document.webkitPointerLockElement')
130 Element get webkitPointerLockElement => 141 Element get webkitPointerLockElement =>
131 document.$dom_webkitPointerLockElement; 142 document.$dom_webkitPointerLockElement;
132 143
133 @DomName('Document.webkitVisibilityState') 144 @DomName('Document.webkitVisibilityState')
134 String get webkitVisibilityState => document.$dom_webkitVisibilityState; 145 String get webkitVisibilityState => document.$dom_webkitVisibilityState;
135 } 146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698