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

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

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
8 factory $CLASSNAME() => document.createDocumentFragment(); 8 factory $CLASSNAME() => document.createDocumentFragment();
9 9
10 factory $CLASSNAME.html(String html, 10 factory $CLASSNAME.html(String html,
11 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { 11 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
12 12
13 return document.body.createFragment(html, 13 return document.body.createFragment(html,
14 validator: validator, treeSanitizer: treeSanitizer); 14 validator: validator, treeSanitizer: treeSanitizer);
15 } 15 }
16 16
17 factory $CLASSNAME.svg(String svgContent, 17 factory $CLASSNAME.svg(String svgContent,
18 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { 18 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) {
19 19
20 return new svg.SvgSvgElement().createFragment(svgContent, 20 return new svg.SvgSvgElement().createFragment(svgContent,
21 validator: validator, treeSanitizer: treeSanitizer); 21 validator: validator, treeSanitizer: treeSanitizer);
22 } 22 }
23 23
24 HtmlCollection get _children => throw new UnimplementedError( 24 HtmlCollection get _children => throw new UnimplementedError(
25 'Use _docChildren instead'); 25 'Use _docChildren instead');
26 26
27 $if DART2JS
28 // Native field is used only by Dart code so does not lead to instantiation 27 // Native field is used only by Dart code so does not lead to instantiation
29 // of native classes 28 // of native classes
30 @Creates('Null') 29 @Creates('Null')
31 $endif
32 List<Element> _docChildren; 30 List<Element> _docChildren;
33 31
34 List<Element> get children { 32 List<Element> get children {
35 if (_docChildren == null) { 33 if (_docChildren == null) {
36 _docChildren = new FilteredElementList(this); 34 _docChildren = new FilteredElementList(this);
37 } 35 }
38 return _docChildren; 36 return _docChildren;
39 } 37 }
40 38
41 set children(List<Element> value) { 39 set children(List<Element> value) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 * Alias for [querySelectorAll]. Note this function is deprecated because its 111 * Alias for [querySelectorAll]. Note this function is deprecated because its
114 * semantics will be changing in the future. 112 * semantics will be changing in the future.
115 */ 113 */
116 @deprecated 114 @deprecated
117 @Experimental() 115 @Experimental()
118 @DomName('DocumentFragment.querySelectorAll') 116 @DomName('DocumentFragment.querySelectorAll')
119 ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSel ectors) => 117 ElementList<Element /*=T*/> queryAll/*<T extends Element>*/(String relativeSel ectors) =>
120 querySelectorAll(relativeSelectors); 118 querySelectorAll(relativeSelectors);
121 $!MEMBERS 119 $!MEMBERS
122 } 120 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Document.darttemplate ('k') | tools/dom/templates/html/impl/impl_DocumentType.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698