Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // TODO(vsm): Eliminate this type. | 7 // TODO(vsm): Eliminate this type. |
| 8 | 8 |
| 9 // Note, ElementList implements List (instead of List<Element>) so | 9 // Note, ElementList implements List (instead of List<Element>) so |
| 10 // that its implementing classes may be cast to Lists of more specific | 10 // that its implementing classes may be cast to Lists of more specific |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 ClientRect get bounding(); | 40 ClientRect get bounding(); |
| 41 // In global coords | 41 // In global coords |
| 42 List<ClientRect> get clientRects(); | 42 List<ClientRect> get clientRects(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 interface NodeSelector { | 45 interface NodeSelector { |
| 46 Element query(String selectors); | 46 Element query(String selectors); |
| 47 List<Element> queryAll(String selectors); | 47 List<Element> queryAll(String selectors); |
| 48 } | 48 } |
| 49 | 49 |
| 50 interface CSSClassSet extends Set<String> { | |
| 51 /// Adds the class to the element if it is not on it, removes it if it is. | |
|
sra1
2012/08/24 20:31:02
Adds the class [token] ...
blois
2012/08/24 21:39:47
Done.
| |
| 52 bool toggle(String token); | |
| 53 | |
| 54 /// True if this classes cannot be added or removed from this. | |
|
sra1
2012/08/24 20:31:02
Not sure what this this or that this means.
Maybe
blois
2012/08/24 21:39:47
Done.
| |
| 55 bool isFrozen(); | |
|
sra1
2012/08/24 20:31:02
Should this be a property? I would hope that this
blois
2012/08/24 21:39:47
Done.
blois
2012/08/24 21:39:47
Done.
| |
| 56 } | |
| 57 | |
| 50 $!COMMENT | 58 $!COMMENT |
| 51 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { | 59 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { |
| 52 Element.html(String html); | 60 Element.html(String html); |
| 53 Element.tag(String tag); | 61 Element.tag(String tag); |
| 54 | 62 |
| 55 AttributeMap get attributes(); | 63 AttributeMap get attributes(); |
| 56 void set attributes(Map<String, String> value); | 64 void set attributes(Map<String, String> value); |
| 57 | 65 |
| 58 /** | 66 /** |
| 59 * @domName childElementCount, firstElementChild, lastElementChild, | 67 * @domName childElementCount, firstElementChild, lastElementChild, |
| 60 * children, Node.nodes.add | 68 * children, Node.nodes.add |
| 61 */ | 69 */ |
| 62 ElementList get elements(); | 70 ElementList get elements(); |
| 63 | 71 |
| 64 void set elements(Collection<Element> value); | 72 void set elements(Collection<Element> value); |
| 65 | 73 |
| 66 /** @domName className, classList */ | 74 /** @domName className, classList */ |
| 67 Set<String> get classes(); | 75 CSSClassSet get classes(); |
| 68 | 76 |
| 69 void set classes(Collection<String> value); | 77 void set classes(Collection<String> value); |
| 70 | 78 |
| 71 AttributeMap get dataAttributes(); | 79 AttributeMap get dataAttributes(); |
| 72 void set dataAttributes(Map<String, String> value); | 80 void set dataAttributes(Map<String, String> value); |
| 73 | 81 |
| 74 /** | 82 /** |
| 75 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth, | 83 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth, |
| 76 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft, | 84 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft, |
| 77 * scrollHeight, scrollWidth, scrollTop, scrollLeft | 85 * scrollHeight, scrollWidth, scrollTop, scrollLeft |
| 78 */ | 86 */ |
| 79 Future<ElementRect> get rect(); | 87 Future<ElementRect> get rect(); |
| 80 | 88 |
| 81 /** @domName Window.getComputedStyle */ | 89 /** @domName Window.getComputedStyle */ |
| 82 Future<CSSStyleDeclaration> get computedStyle(); | 90 Future<CSSStyleDeclaration> get computedStyle(); |
| 83 | 91 |
| 84 /** @domName Window.getComputedStyle */ | 92 /** @domName Window.getComputedStyle */ |
| 85 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 93 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); |
| 86 | 94 |
| 87 Element clone(bool deep); | 95 Element clone(bool deep); |
| 88 | 96 |
| 89 Element get parent(); | 97 Element get parent(); |
| 90 | 98 |
| 91 $!MEMBERS | 99 $!MEMBERS |
| 92 } | 100 } |
| OLD | NEW |