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

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

Issue 896293003: Cleanup method signatures that were incorrect due to a lack of understanding about how Dart generic… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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) 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,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 * Finds all descendant elements of this document fragment that match the 50 * Finds all descendant elements of this document fragment that match the
51 * specified group of selectors. 51 * specified group of selectors.
52 * 52 *
53 * [selectors] should be a string using CSS selector syntax. 53 * [selectors] should be a string using CSS selector syntax.
54 * 54 *
55 * var items = document.querySelectorAll('.itemClassName'); 55 * var items = document.querySelectorAll('.itemClassName');
56 * 56 *
57 * For details about CSS selector syntax, see the 57 * For details about CSS selector syntax, see the
58 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). 58 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
59 */ 59 */
60 ElementList querySelectorAll(String selectors) => 60 ElementList<Element> querySelectorAll(String selectors) =>
61 new _FrozenElementList._wrap(_querySelectorAll(selectors)); 61 new _FrozenElementList._wrap(_querySelectorAll(selectors));
62 62
63 63
64 64
65 String get innerHtml { 65 String get innerHtml {
66 final e = new Element.tag("div"); 66 final e = new Element.tag("div");
67 e.append(this.clone(true)); 67 e.append(this.clone(true));
68 return e.innerHtml; 68 return e.innerHtml;
69 } 69 }
70 70
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return querySelector(relativeSelectors); 108 return querySelector(relativeSelectors);
109 } 109 }
110 110
111 /** 111 /**
112 * Alias for [querySelectorAll]. Note this function is deprecated because its 112 * Alias for [querySelectorAll]. Note this function is deprecated because its
113 * semantics will be changing in the future. 113 * semantics will be changing in the future.
114 */ 114 */
115 @deprecated 115 @deprecated
116 @Experimental() 116 @Experimental()
117 @DomName('DocumentFragment.querySelectorAll') 117 @DomName('DocumentFragment.querySelectorAll')
118 ElementList queryAll(String relativeSelectors) { 118 ElementList<Element> queryAll(String relativeSelectors) {
119 return querySelectorAll(relativeSelectors); 119 return querySelectorAll(relativeSelectors);
120 } 120 }
121 $!MEMBERS 121 $!MEMBERS
122 } 122 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Document.darttemplate ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698