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, |
(...skipping 20 matching lines...) Expand all Loading... |
31 readonly attribute DOMString localName; | 31 readonly attribute DOMString localName; |
32 readonly attribute DOMString tagName; | 32 readonly attribute DOMString tagName; |
33 | 33 |
34 [CEReactions, Reflect] attribute DOMString id; | 34 [CEReactions, Reflect] attribute DOMString id; |
35 [CEReactions, Reflect=class] attribute DOMString className; | 35 [CEReactions, Reflect=class] attribute DOMString className; |
36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr
ibute DOMTokenList classList; | 36 [SameObject, CEReactions, PerWorldBindings, PutForwards=value] readonly attr
ibute DOMTokenList classList; |
37 [Unscopable, CEReactions, Reflect] attribute DOMString slot; | 37 [Unscopable, CEReactions, Reflect] attribute DOMString slot; |
38 | 38 |
39 // PointerEvent | 39 // PointerEvent |
40 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface | 40 //https://www.w3.org/TR/pointerevents/#extensions-to-the-element-interface |
41 [RuntimeEnabled=PointerEvent, RaisesException] void setPointerCapture (long
pointerId); | 41 [Measure, RuntimeEnabled=PointerEvent, RaisesException] void setPointerCaptu
re (long pointerId); |
42 [RuntimeEnabled=PointerEvent, RaisesException] void releasePointerCapture (l
ong pointerId); | 42 [Measure, RuntimeEnabled=PointerEvent, RaisesException] void releasePointerC
apture (long pointerId); |
43 [RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointercapture; | 43 [Measure, RuntimeEnabled=PointerEvent] attribute EventHandler ongotpointerca
pture; |
44 [RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointercapture; | 44 [Measure, RuntimeEnabled=PointerEvent] attribute EventHandler onlostpointerc
apture; |
45 | 45 |
46 // PointerEvent v2 | 46 // PointerEvent v2 |
47 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface | 47 // https://w3c.github.io/pointerevents/#extensions-to-the-element-interface |
48 [RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long pointerId); | 48 [Measure, RuntimeEnabled=PointerEvent] boolean hasPointerCapture (long point
erId); |
49 | 49 |
50 boolean hasAttributes(); | 50 boolean hasAttributes(); |
51 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly
attribute NamedNodeMap attributes; | 51 [SameObject, PerWorldBindings, ImplementedAs=attributesForBindings] readonly
attribute NamedNodeMap attributes; |
52 DOMString? getAttribute(DOMString name); | 52 DOMString? getAttribute(DOMString name); |
53 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); | 53 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); |
54 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM
String name, DOMString value); | 54 [RaisesException, CEReactions, CustomElementCallbacks] void setAttribute(DOM
String name, DOMString value); |
55 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D
OMString? namespaceURI, DOMString name, DOMString value); | 55 [RaisesException, CEReactions, CustomElementCallbacks] void setAttributeNS(D
OMString? namespaceURI, DOMString name, DOMString value); |
56 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name); | 56 [CEReactions, CustomElementCallbacks] void removeAttribute(DOMString name); |
57 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name
spaceURI, DOMString localName); | 57 [CEReactions, CustomElementCallbacks] void removeAttributeNS(DOMString? name
spaceURI, DOMString localName); |
58 boolean hasAttribute(DOMString name); | 58 boolean hasAttribute(DOMString name); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface | 92 // https://w3c.github.io/pointerlock/#extensions-to-the-element-interface |
93 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); | 93 [MeasureAs=ElementRequestPointerLock] void requestPointerLock(); |
94 | 94 |
95 // CSSOM View Module | 95 // CSSOM View Module |
96 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface | 96 // https://dev.w3.org/csswg/cssom-view/#extension-to-the-element-interface |
97 // FIXME: getClientRect() and getBoundingClientRect() should | 97 // FIXME: getClientRect() and getBoundingClientRect() should |
98 // return DOMRectList and DOMRect respectively. | 98 // return DOMRectList and DOMRect respectively. |
99 ClientRectList getClientRects(); | 99 ClientRectList getClientRects(); |
100 ClientRect getBoundingClientRect(); | 100 ClientRect getBoundingClientRect(); |
101 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar
gument. | 101 // FIXME: scrollIntoView() should have a ScrollIntoViewOptions dictionary ar
gument. |
102 void scrollIntoView(optional boolean alignWithTop); | 102 [Measure] void scrollIntoView(optional boolean alignWithTop); |
103 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio
nal ScrollToOptions options); | 103 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(optio
nal ScrollToOptions options); |
104 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres
tricted double x, unrestricted double y); | 104 [RuntimeEnabled=CSSOMSmoothScroll, ImplementedAs=scrollTo] void scroll(unres
tricted double x, unrestricted double y); |
105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); | 105 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(optional ScrollToOptions op
tions); |
106 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre
stricted double y); | 106 [RuntimeEnabled=CSSOMSmoothScroll] void scrollTo(unrestricted double x, unre
stricted double y); |
107 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); | 107 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(optional ScrollToOptions op
tions); |
108 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre
stricted double y); | 108 [RuntimeEnabled=CSSOMSmoothScroll] void scrollBy(unrestricted double x, unre
stricted double y); |
109 attribute unrestricted double scrollTop; | 109 attribute unrestricted double scrollTop; |
110 attribute unrestricted double scrollLeft; | 110 attribute unrestricted double scrollLeft; |
111 readonly attribute long scrollWidth; | 111 readonly attribute long scrollWidth; |
112 readonly attribute long scrollHeight; | 112 readonly attribute long scrollHeight; |
113 readonly attribute long clientTop; | 113 readonly attribute long clientTop; |
114 readonly attribute long clientLeft; | 114 readonly attribute long clientLeft; |
115 readonly attribute long clientWidth; | 115 readonly attribute long clientWidth; |
116 readonly attribute long clientHeight; | 116 readonly attribute long clientHeight; |
117 | 117 |
118 // Scroll Customization API. See crbug.com/410974 for details. | 118 // Scroll Customization API. See crbug.com/410974 for details. |
119 [RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStateCallback
scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); | 119 [Measure, RuntimeEnabled=ScrollCustomization] void setApplyScroll(ScrollStat
eCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
120 [RuntimeEnabled=ScrollCustomization] void setDistributeScroll(ScrollStateCal
lback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); | 120 [Measure, RuntimeEnabled=ScrollCustomization] void setDistributeScroll(Scrol
lStateCallback scrollStateCallback, NativeScrollBehavior nativeScrollBehavior); |
121 | 121 |
122 // Non-standard API | 122 // Non-standard API |
123 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); | 123 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option
al boolean centerIfNeeded); |
124 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); | 124 [RaisesException, CallWith=ScriptState, MeasureAs=ElementCreateShadowRoot] S
hadowRoot createShadowRoot(); |
125 NodeList getDestinationInsertionPoints(); | 125 NodeList getDestinationInsertionPoints(); |
126 | 126 |
127 // Experimental accessibility API | 127 // Experimental accessibility API |
128 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedRole; | 128 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedRole; |
129 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedName; | 129 [RuntimeEnabled=ComputedAccessibilityInfo] readonly attribute DOMString? com
putedName; |
130 | 130 |
131 // Event handler attributes | 131 // Event handler attributes |
132 attribute EventHandler onbeforecopy; | 132 [Measure] attribute EventHandler onbeforecopy; |
133 attribute EventHandler onbeforecut; | 133 [Measure] attribute EventHandler onbeforecut; |
134 attribute EventHandler onbeforepaste; | 134 [Measure] attribute EventHandler onbeforepaste; |
135 attribute EventHandler oncopy; | 135 [Measure] attribute EventHandler oncopy; |
136 attribute EventHandler oncut; | 136 [Measure] attribute EventHandler oncut; |
137 attribute EventHandler onpaste; | 137 [Measure] attribute EventHandler onpaste; |
138 attribute EventHandler onsearch; | 138 [Measure] attribute EventHandler onsearch; |
139 attribute EventHandler onselectstart; | 139 [Measure] attribute EventHandler onselectstart; |
140 attribute EventHandler onwheel; | 140 [Measure] attribute EventHandler onwheel; |
141 }; | 141 }; |
142 | 142 |
143 Element implements ParentNode; | 143 Element implements ParentNode; |
144 Element implements ChildNode; | 144 Element implements ChildNode; |
145 Element implements NonDocumentTypeChildNode; | 145 Element implements NonDocumentTypeChildNode; |
OLD | NEW |