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

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

Issue 10536006: Fix NodeSelector interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove NodeSelector from dart.idl. 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 {
41 Element query(String selectors);
42 NodeList queryAll(String selectors);
43 }
44
40 $!COMMENT 45 $!COMMENT
41 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { 46 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); 47 Element.html(String html);
45 Element.tag(String tag); 48 Element.tag(String tag);
46 49
47 AttributeMap get attributes(); 50 AttributeMap get attributes();
48 void set attributes(Map<String, String> value); 51 void set attributes(Map<String, String> value);
49 52
50 /** 53 /**
51 * @domName childElementCount, firstElementChild, lastElementChild, 54 * @domName childElementCount, firstElementChild, lastElementChild,
52 * children, Node.nodes.add 55 * children, Node.nodes.add
53 */ 56 */
(...skipping 21 matching lines...) Expand all
75 78
76 /** @domName Window.getComputedStyle */ 79 /** @domName Window.getComputedStyle */
77 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); 80 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
78 81
79 Element clone(bool deep); 82 Element clone(bool deep);
80 83
81 Element get parent(); 84 Element get parent();
82 85
83 $!MEMBERS 86 $!MEMBERS
84 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698