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

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

Issue 153603004: Fixing issues from IDL upgrade (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 @DocsEditable() 7 @DocsEditable()
8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC 8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME extends Node $NATIVESPEC
9 { 9 {
10 10
(...skipping 11 matching lines...) Expand all
22 * 22 *
23 * var items = document.querySelectorAll('.itemClassName'); 23 * var items = document.querySelectorAll('.itemClassName');
24 * 24 *
25 * For details about CSS selector syntax, see the 25 * For details about CSS selector syntax, see the
26 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). 26 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
27 */ 27 */
28 ElementList querySelectorAll(String selectors) { 28 ElementList querySelectorAll(String selectors) {
29 return new _FrozenElementList._wrap(_querySelectorAll(selectors)); 29 return new _FrozenElementList._wrap(_querySelectorAll(selectors));
30 } 30 }
31 31
32 /** 32 /**
33 * Alias for [querySelector]. Note this function is deprecated because its 33 * Alias for [querySelector]. Note this function is deprecated because its
34 * semantics will be changing in the future. 34 * semantics will be changing in the future.
35 */ 35 */
36 @deprecated 36 @deprecated
37 @Experimental() 37 @Experimental()
38 @DomName('Document.querySelector') 38 @DomName('Document.querySelector')
39 Element query(String relativeSelectors) => querySelector(relativeSelectors); 39 Element query(String relativeSelectors) => querySelector(relativeSelectors);
40 40
41 /** 41 /**
42 * Alias for [querySelectorAll]. Note this function is deprecated because its 42 * Alias for [querySelectorAll]. Note this function is deprecated because its
43 * semantics will be changing in the future. 43 * semantics will be changing in the future.
44 */ 44 */
45 @deprecated 45 @deprecated
46 @Experimental() 46 @Experimental()
47 @DomName('Document.querySelectorAll') 47 @DomName('Document.querySelectorAll')
48 ElementList queryAll(String relativeSelectors) => 48 ElementList queryAll(String relativeSelectors) =>
49 querySelectorAll(relativeSelectors); 49 querySelectorAll(relativeSelectors);
50 50
51 /// Checks if [register] is supported on the current platform. 51 /// Checks if [register] is supported on the current platform.
(...skipping 11 matching lines...) Expand all
63 return _createElement(tagName, typeExtension); 63 return _createElement(tagName, typeExtension);
64 $else 64 $else
65 if (typeExtension != null) { 65 if (typeExtension != null) {
66 return _createElement(tagName, typeExtension); 66 return _createElement(tagName, typeExtension);
67 } else { 67 } else {
68 // Fast-path for Dartium when typeExtension is not needed. 68 // Fast-path for Dartium when typeExtension is not needed.
69 return _Utils.createElement(this, tagName); 69 return _Utils.createElement(this, tagName);
70 } 70 }
71 $endif 71 $endif
72 } 72 }
73
74 $if DART2JS
75 @DomName('Document.createNodeIterator')
76 NodeIterator _createNodeIterator(Node root,
77 [int whatToShow, NodeFilter filter])
78 => JS('NodeIterator', '#.createNodeIterator(#, #, #, false)',
79 this, root, whatToShow, filter);
80
81 @DomName('Document.createTreeWalker')
82 TreeWalker _createTreeWalker(Node root,
83 [int whatToShow, NodeFilter filter])
84 => JS('TreeWalker', '#.createTreeWalker(#, #, #, false)',
85 this, root, whatToShow, filter);
86 $endif
73 } 87 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698