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

Side by Side Diff: lib/dom/templates/html/interface/interface_Element.darttemplate

Issue 10447091: Cleanup NodeSelectors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 interface ElementList extends List<Element> { 7 interface ElementList extends List<Element> {
8 // TODO(jacobr): add element batch manipulation methods. 8 // TODO(jacobr): add element batch manipulation methods.
9 ElementList filter(bool f(Element element)); 9 ElementList filter(bool f(Element element));
10 10
(...skipping 19 matching lines...) Expand all
30 // Relative to offsetParent 30 // Relative to offsetParent
31 ClientRect get client(); 31 ClientRect get client();
32 ClientRect get offset(); 32 ClientRect get offset();
33 ClientRect get scroll(); 33 ClientRect get scroll();
34 // In global coords 34 // In global coords
35 ClientRect get bounding(); 35 ClientRect get bounding();
36 // In global coords 36 // In global coords
37 List<ClientRect> get clientRects(); 37 List<ClientRect> get clientRects();
38 } 38 }
39 39
40 interface NodeSelector {
Anton Muhin 2012/05/31 18:20:44 I'd rather keep this interface in dart.idl. Ditto
podivilov 2012/06/04 09:34:36 Done.
41 /** @domName Element.querySelector */
42 Element query(String selectors);
43
44 /**
45 * @domName querySelectorAll, getElementsByClassName, getElementsByTagName,
46 * getElementsByTagNameNS
47 */
48 ElementList queryAll(String selectors);
49 }
50
40 $!COMMENT 51 $!COMMENT
41 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { 52 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider {
42 // TODO(jacobr): switch back to:
43 // interface $ID$EXTENDS default _ElementImpl {
44 Element.html(String html); 53 Element.html(String html);
45 Element.tag(String tag); 54 Element.tag(String tag);
46 55
47 AttributeMap get attributes(); 56 AttributeMap get attributes();
48 void set attributes(Map<String, String> value); 57 void set attributes(Map<String, String> value);
49 58
50 /** 59 /**
51 * @domName querySelectorAll, getElementsByClassName, getElementsByTagName,
52 * getElementsByTagNameNS
53 */
54 ElementList queryAll(String selectors);
55
56 /**
57 * @domName childElementCount, firstElementChild, lastElementChild, 60 * @domName childElementCount, firstElementChild, lastElementChild,
58 * children, Node.nodes.add 61 * children, Node.nodes.add
59 */ 62 */
60 ElementList get elements(); 63 ElementList get elements();
61 64
62 void set elements(Collection<Element> value); 65 void set elements(Collection<Element> value);
63 66
64 /** @domName className, classList */ 67 /** @domName className, classList */
65 Set<String> get classes(); 68 Set<String> get classes();
66 69
(...skipping 14 matching lines...) Expand all
81 84
82 /** @domName Window.getComputedStyle */ 85 /** @domName Window.getComputedStyle */
83 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); 86 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
84 87
85 Element clone(bool deep); 88 Element clone(bool deep);
86 89
87 Element get parent(); 90 Element get parent();
88 91
89 $!MEMBERS 92 $!MEMBERS
90 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698