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 // https://dom.spec.whatwg.org/#interface-element | 21 // https://dom.spec.whatwg.org/#interface-element |
22 | 22 |
| 23 callback ScrollStateFunctionCallback = void(ScrollState scrollState); |
| 24 |
23 [ | 25 [ |
24 TypeChecking=Interface, | 26 TypeChecking=Interface, |
25 ] interface Element : Node { | 27 ] interface Element : Node { |
26 readonly attribute DOMString? namespaceURI; | 28 readonly attribute DOMString? namespaceURI; |
27 readonly attribute DOMString? prefix; | 29 readonly attribute DOMString? prefix; |
28 readonly attribute DOMString localName; | 30 readonly attribute DOMString localName; |
29 readonly attribute DOMString tagName; | 31 readonly attribute DOMString tagName; |
30 | 32 |
31 [Reflect] attribute DOMString id; | 33 [Reflect] attribute DOMString id; |
32 [Reflect=class] attribute DOMString className; | 34 [Reflect=class] attribute DOMString className; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 readonly attribute long clientWidth; | 98 readonly attribute long clientWidth; |
97 readonly attribute long clientHeight; | 99 readonly attribute long clientHeight; |
98 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa
ce | 100 // http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interfa
ce |
99 // FIXME: offset* should only be on HTMLElement. | 101 // FIXME: offset* should only be on HTMLElement. |
100 [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element
? offsetParent; | 102 [MeasureAs=ElementOffsetParent, PerWorldBindings] readonly attribute Element
? offsetParent; |
101 [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop; | 103 [MeasureAs=ElementOffsetTop] readonly attribute long offsetTop; |
102 [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft; | 104 [MeasureAs=ElementOffsetLeft] readonly attribute long offsetLeft; |
103 [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth; | 105 [MeasureAs=ElementOffsetWidth] readonly attribute long offsetWidth; |
104 [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight; | 106 [MeasureAs=ElementOffsetHeight] readonly attribute long offsetHeight; |
105 | 107 |
| 108 // Scroll Customization API. See crbug.com/410974 for details. |
| 109 // [RuntimeEnabled=ScrollCustomization] ScrollStateFunctionCallback getAppl
yScroll(); |
| 110 // [RuntimeEnabled=ScrollCustomization] ScrollStateFunctionCallback getDist
ributeScroll(); |
| 111 [RuntimeEnabled=ScrollCustomization, CallWith=ScriptState] readonly attribut
e ScrollStateFunctionCallback applyScroll; |
| 112 [RuntimeEnabled=ScrollCustomization, CallWith=ScriptState] readonly attribut
e ScrollStateFunctionCallback distributeScroll; |
| 113 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback
scrollStateCallback); |
| 114 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal
lback scrollStateCallback); |
| 115 |
106 // Non-standard APIs | 116 // Non-standard APIs |
107 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 | 117 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=19962 |
108 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E
lement insertAdjacentElement(DOMString where, Element element); | 118 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E
lement insertAdjacentElement(DOMString where, Element element); |
109 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS
tring where, DOMString text); | 119 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS
tring where, DOMString text); |
110 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); | 120 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); |
111 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel
ector] boolean webkitMatchesSelector(DOMString selectors); | 121 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel
ector] boolean webkitMatchesSelector(DOMString selectors); |
112 | 122 |
113 // Experimental accessibility API | 123 // Experimental accessibility API |
114 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedRole; | 124 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedRole; |
115 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedName; | 125 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedName; |
(...skipping 10 matching lines...) Expand all Loading... |
126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 136 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 137 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 138 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 139 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
130 attribute EventHandler onwheel; | 140 attribute EventHandler onwheel; |
131 }; | 141 }; |
132 | 142 |
133 Element implements ParentNode; | 143 Element implements ParentNode; |
134 Element implements ChildNode; | 144 Element implements ChildNode; |
135 Element implements NonDocumentTypeChildNode; | 145 Element implements NonDocumentTypeChildNode; |
OLD | NEW |