OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 [ | 21 [ |
22 SpecialWrapFor=HTMLElement|SVGElement, | 22 SpecialWrapFor=(HTMLElement,SVGElement), |
23 ] interface Element : Node { | 23 ] interface Element : Node { |
24 | 24 |
25 // DOM Level 1 Core | 25 // DOM Level 1 Core |
26 | 26 |
27 readonly attribute DOMString? tagName; | 27 readonly attribute DOMString? tagName; |
28 | 28 |
29 [DartNoAutoScope] DOMString? getAttribute(DOMString name); | 29 [DartNoAutoScope] DOMString? getAttribute(DOMString name); |
30 [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttribute
(DOMString name, DOMString value); | 30 [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttribute
(DOMString name, DOMString value); |
31 [CustomElementCallbacks] void removeAttribute(DOMString name); | 31 [CustomElementCallbacks] void removeAttribute(DOMString name); |
32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); // Removed from DOM4. | 32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); // Removed from DOM4. |
(...skipping 15 matching lines...) Expand all Loading... |
48 [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNod
eNS] Attr setAttributeNodeNS([Default=Undefined] optional Attr newAttr); // Remo
ved from DOM4. | 48 [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNod
eNS] Attr setAttributeNodeNS([Default=Undefined] optional Attr newAttr); // Remo
ved from DOM4. |
49 boolean hasAttribute(DOMString name); | 49 boolean hasAttribute(DOMString name); |
50 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); | 50 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); |
51 | 51 |
52 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 52 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
53 | 53 |
54 // DOM4 | 54 // DOM4 |
55 [Reflect, DartNoAutoScope] attribute DOMString id; | 55 [Reflect, DartNoAutoScope] attribute DOMString id; |
56 readonly attribute DOMString? namespaceURI; | 56 readonly attribute DOMString? namespaceURI; |
57 [RaisesException=Setter] attribute DOMString? prefix; | 57 [RaisesException=Setter] attribute DOMString? prefix; |
58 readonly attribute DOMString? localName; | 58 [DartCustom] readonly attribute DOMString? localName; |
59 | 59 |
60 [RaisesException] boolean matches(DOMString selectors); | 60 [RaisesException] boolean matches(DOMString selectors); |
61 | 61 |
62 // Common extensions | 62 // Common extensions |
63 | 63 |
64 readonly attribute long offsetLeft; | 64 readonly attribute long offsetLeft; |
65 readonly attribute long offsetTop; | 65 readonly attribute long offsetTop; |
66 readonly attribute long offsetWidth; | 66 readonly attribute long offsetWidth; |
67 readonly attribute long offsetHeight; | 67 readonly attribute long offsetHeight; |
68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute
Element offsetParent; | 68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute
Element offsetParent; |
69 readonly attribute long clientLeft; | 69 readonly attribute long clientLeft; |
70 readonly attribute long clientTop; | 70 readonly attribute long clientTop; |
71 readonly attribute long clientWidth; | 71 readonly attribute long clientWidth; |
72 readonly attribute long clientHeight; | 72 readonly attribute long clientHeight; |
73 | 73 |
74 // FIXME: should be: | 74 // FIXME: should be: |
75 // attribute (Dictionary or double) scrollLeft; | 75 // attribute (Dictionary or double) scrollLeft; |
76 // attribute (Dictionary or double) scrollTop; | 76 // attribute (Dictionary or double) scrollTop; |
77 // http://crbug.com/240176 | 77 // http://crbug.com/240176 |
78 [Custom=Setter] attribute long scrollLeft; | 78 [Custom=Setter] attribute double scrollLeft; |
79 [Custom=Setter] attribute long scrollTop; | 79 [Custom=Setter] attribute double scrollTop; |
80 readonly attribute long scrollWidth; | 80 readonly attribute long scrollWidth; |
81 readonly attribute long scrollHeight; | 81 readonly attribute long scrollHeight; |
82 | 82 |
83 void focus(); | 83 void focus(); |
84 void blur(); | 84 void blur(); |
85 void scrollIntoView(optional boolean alignWithTop); | 85 void scrollIntoView(optional boolean alignWithTop); |
86 | 86 |
87 // WebKit extensions | 87 // WebKit extensions |
88 | 88 |
89 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); | 89 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 attribute EventHandler onselectstart; | 127 attribute EventHandler onselectstart; |
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
130 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 130 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
131 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 131 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
132 attribute EventHandler onwheel; | 132 attribute EventHandler onwheel; |
133 }; | 133 }; |
134 | 134 |
135 Element implements ParentNode; | 135 Element implements ParentNode; |
136 Element implements ChildNode; | 136 Element implements ChildNode; |
OLD | NEW |