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

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

Issue 1173403004: Changed to use JSInterop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Re-gen'd somehow diffs stopped showing up in CL Created 5 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,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<Element> querySelectorAll(String selectors) => 60 ElementList<Element> querySelectorAll(String selectors) =>
61 $if JSINTEROP
62 _querySelectorAll(selectors);
63 $else
61 new _FrozenElementList._wrap(_querySelectorAll(selectors)); 64 new _FrozenElementList._wrap(_querySelectorAll(selectors));
62 65 $endif
63 66
64 67
65 String get innerHtml { 68 String get innerHtml {
66 final e = new Element.tag("div"); 69 final e = new Element.tag("div");
67 e.append(this.clone(true)); 70 e.append(this.clone(true));
68 return e.innerHtml; 71 return e.innerHtml;
69 } 72 }
70 73
71 void set innerHtml(String value) { 74 void set innerHtml(String value) {
72 this.setInnerHtml(value); 75 this.setInnerHtml(value);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 * semantics will be changing in the future. 118 * semantics will be changing in the future.
116 */ 119 */
117 @deprecated 120 @deprecated
118 @Experimental() 121 @Experimental()
119 @DomName('DocumentFragment.querySelectorAll') 122 @DomName('DocumentFragment.querySelectorAll')
120 ElementList<Element> queryAll(String relativeSelectors) { 123 ElementList<Element> queryAll(String relativeSelectors) {
121 return querySelectorAll(relativeSelectors); 124 return querySelectorAll(relativeSelectors);
122 } 125 }
123 $!MEMBERS 126 $!MEMBERS
124 } 127 }
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