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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void scrollIntoView(optional boolean alignWithTop); | 85 void scrollIntoView(optional boolean alignWithTop); |
86 | 86 |
87 // WebKit extensions | 87 // WebKit extensions |
88 | 88 |
89 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); | 89 void scrollIntoViewIfNeeded(optional boolean centerIfNeeded); |
90 void scrollByLines([Default=Undefined] optional long lines); | 90 void scrollByLines([Default=Undefined] optional long lines); |
91 void scrollByPages([Default=Undefined] optional long pages); | 91 void scrollByPages([Default=Undefined] optional long pages); |
92 | 92 |
93 // HTML 5 | 93 // HTML 5 |
94 HTMLCollection getElementsByClassName(DOMString classNames); | 94 HTMLCollection getElementsByClassName(DOMString classNames); |
95 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityL
ogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString inne
rHTML; | 95 [TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, LogActivi
ty=SetterOnly, RaisesException=Setter] attribute DOMString innerHTML; |
96 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString outerHTML; | 96 [TreatNullAs=NullString, CustomElementCallbacks, RaisesException=Setter] att
ribute DOMString outerHTML; |
97 | 97 |
98 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E
lement insertAdjacentElement(DOMString where, Element element); | 98 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E
lement insertAdjacentElement(DOMString where, Element element); |
99 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS
tring where, DOMString text); | 99 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText(DOMS
tring where, DOMString text); |
100 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void
insertAdjacentHTML(DOMString where, DOMString html); | 100 [CustomElementCallbacks, RaisesException, MeasureAs=InsertAdjacentHTML] void
insertAdjacentHTML(DOMString where, DOMString html); |
101 | 101 |
102 [Reflect=class, PerWorldBindings] attribute DOMString className; | 102 [Reflect=class, PerWorldBindings] attribute DOMString className; |
103 [PerWorldBindings] readonly attribute DOMTokenList classList; | 103 [PerWorldBindings] readonly attribute DOMTokenList classList; |
104 | 104 |
105 [PerWorldBindings] readonly attribute DOMStringMap dataset; | 105 [PerWorldBindings] readonly attribute DOMStringMap dataset; |
106 | 106 |
107 // NodeSelector - Selector API | 107 // NodeSelector - Selector API |
108 [RaisesException] Element querySelector(DOMString selectors); | 108 [RaisesException] Element querySelector(DOMString selectors); |
109 [RaisesException] NodeList querySelectorAll(DOMString selectors); | 109 [RaisesException] NodeList querySelectorAll(DOMString selectors); |
110 | 110 |
111 // WebKit extension | 111 // WebKit extension |
112 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel
ector] boolean webkitMatchesSelector(DOMString selectors); | 112 [RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSel
ector] boolean webkitMatchesSelector(DOMString selectors); |
113 | 113 |
114 // Shadow DOM API | 114 // Shadow DOM API |
115 [RaisesException] ShadowRoot createShadowRoot(); | 115 [RaisesException] ShadowRoot createShadowRoot(); |
116 [PerWorldBindings] readonly attribute ShadowRoot shadowRoot; | 116 [PerWorldBindings] readonly attribute ShadowRoot shadowRoot; |
117 [PerWorldBindings] NodeList getDestinationInsertionPoints(); | 117 [PerWorldBindings] NodeList getDestinationInsertionPoints(); |
118 | 118 |
119 // CSSOM View Module API | 119 // CSSOM View Module API |
120 ClientRectList getClientRects(); | 120 ClientRectList getClientRects(); |
121 ClientRect getBoundingClientRect(); | 121 ClientRect getBoundingClientRect(); |
122 | 122 |
123 // Mozilla version | 123 // Mozilla version |
124 const unsigned short ALLOW_KEYBOARD_INPUT = 1; | 124 const unsigned short ALLOW_KEYBOARD_INPUT = 1; |
125 [PerWorldBindings, ActivityLogging=ForAllWorlds, MeasureAs=PrefixedElementRe
questFullScreen] void webkitRequestFullScreen([Default=Undefined] optional unsig
ned short flags); | 125 [PerWorldBindings, LogActivity, LogAllWorlds, MeasureAs=PrefixedElementReque
stFullScreen] void webkitRequestFullScreen([Default=Undefined] optional unsigned
short flags); |
126 | 126 |
127 // W3C version | 127 // W3C version |
128 [PerWorldBindings, ActivityLogging=ForAllWorlds, MeasureAs=PrefixedElementRe
questFullscreen] void webkitRequestFullscreen(); | 128 [PerWorldBindings, LogActivity, LogAllWorlds, MeasureAs=PrefixedElementReque
stFullscreen] void webkitRequestFullscreen(); |
129 | 129 |
130 [MeasureAs=PrefixedElementRequestPointerLock] void webkitRequestPointerLock(
); | 130 [MeasureAs=PrefixedElementRequestPointerLock] void webkitRequestPointerLock(
); |
131 | 131 |
132 // Event handler attributes | 132 // Event handler attributes |
133 attribute EventHandler onbeforecopy; | 133 attribute EventHandler onbeforecopy; |
134 attribute EventHandler onbeforecut; | 134 attribute EventHandler onbeforecut; |
135 attribute EventHandler onbeforepaste; | 135 attribute EventHandler onbeforepaste; |
136 attribute EventHandler oncopy; | 136 attribute EventHandler oncopy; |
137 attribute EventHandler oncut; | 137 attribute EventHandler oncut; |
138 attribute EventHandler onpaste; | 138 attribute EventHandler onpaste; |
139 attribute EventHandler onsearch; | 139 attribute EventHandler onsearch; |
140 attribute EventHandler onselectstart; | 140 attribute EventHandler onselectstart; |
141 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 141 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
142 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 142 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
143 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 143 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
144 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 144 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
145 attribute EventHandler onwebkitfullscreenchange; | 145 attribute EventHandler onwebkitfullscreenchange; |
146 attribute EventHandler onwebkitfullscreenerror; | 146 attribute EventHandler onwebkitfullscreenerror; |
147 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 147 [PerWorldBindings, LogActivity=SetterOnly] attribute EventHandler onwheel; |
148 }; | 148 }; |
149 | 149 |
150 Element implements ParentNode; | 150 Element implements ParentNode; |
151 Element implements ChildNode; | 151 Element implements ChildNode; |
OLD | NEW |