OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> | 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> |
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 CustomToJSObject, | 22 CustomToJSObject |
23 JSGenerateToNativeObject, | |
24 JSInlineGetOwnPropertySlot | |
25 ] interface Document : Node { | 23 ] interface Document : Node { |
26 | 24 |
27 // DOM Level 1 Core | 25 // DOM Level 1 Core |
28 readonly attribute DocumentType doctype; | 26 readonly attribute DocumentType doctype; |
29 readonly attribute DOMImplementation implementation; | 27 readonly attribute DOMImplementation implementation; |
30 readonly attribute Element documentElement; | 28 readonly attribute Element documentElement; |
31 | 29 |
32 [ReturnNewObject, V8DeliverCustomElementCallbacks, V8PerWorldBindings] | 30 [ReturnNewObject, V8DeliverCustomElementCallbacks, V8PerWorldBindings] |
33 Element createElement(in [TreatNullAs=NullString,Optional=DefaultIsUndefined
] DOMString tagName) | 31 Element createElement(in [TreatNullAs=NullString,Optional=DefaultIsUndefined
] DOMString tagName) |
34 raises (DOMException); | 32 raises (DOMException); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 NodeList getElementsByClassName(in [Optional=DefaultIsUndefined] DOMString t
agname); | 238 NodeList getElementsByClassName(in [Optional=DefaultIsUndefined] DOMString t
agname); |
241 | 239 |
242 readonly attribute DOMString compatMode; | 240 readonly attribute DOMString compatMode; |
243 | 241 |
244 // NodeSelector - Selector API | 242 // NodeSelector - Selector API |
245 Element querySelector(in DOMString selectors) | 243 Element querySelector(in DOMString selectors) |
246 raises(DOMException); | 244 raises(DOMException); |
247 NodeList querySelectorAll(in DOMString selectors) | 245 NodeList querySelectorAll(in DOMString selectors) |
248 raises(DOMException); | 246 raises(DOMException); |
249 | 247 |
250 #if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API | |
251 // Mozilla version | 248 // Mozilla version |
252 [V8EnabledAtRuntime] readonly attribute boolean webkitIsFullScreen; | 249 [V8EnabledAtRuntime] readonly attribute boolean webkitIsFullScreen; |
253 [V8EnabledAtRuntime] readonly attribute boolean webkitFullScreenKeyboardInpu
tAllowed; | 250 [V8EnabledAtRuntime] readonly attribute boolean webkitFullScreenKeyboardInpu
tAllowed; |
254 [V8EnabledAtRuntime] readonly attribute Element webkitCurrentFullScreenEleme
nt; | 251 [V8EnabledAtRuntime] readonly attribute Element webkitCurrentFullScreenEleme
nt; |
255 [V8EnabledAtRuntime] void webkitCancelFullScreen(); | 252 [V8EnabledAtRuntime] void webkitCancelFullScreen(); |
256 | 253 |
257 // W3C version | 254 // W3C version |
258 [V8EnabledAtRuntime] readonly attribute boolean webkitFullscreenEnabled; | 255 [V8EnabledAtRuntime] readonly attribute boolean webkitFullscreenEnabled; |
259 [V8EnabledAtRuntime] readonly attribute Element webkitFullscreenElement; | 256 [V8EnabledAtRuntime] readonly attribute Element webkitFullscreenElement; |
260 [V8EnabledAtRuntime] void webkitExitFullscreen(); | 257 [V8EnabledAtRuntime] void webkitExitFullscreen(); |
261 #endif | |
262 | 258 |
263 [Conditional=POINTER_LOCK] void webkitExitPointerLock(); | 259 [Conditional=POINTER_LOCK] void webkitExitPointerLock(); |
264 [Conditional=POINTER_LOCK] readonly attribute Element webkitPointerLockEleme
nt; | 260 [Conditional=POINTER_LOCK] readonly attribute Element webkitPointerLockEleme
nt; |
265 | 261 |
266 [Conditional=CSS_REGIONS, V8EnabledAtRuntime=cssRegions] DOMNamedFlowCollect
ion webkitGetNamedFlows(); | 262 [Conditional=CSS_REGIONS, V8EnabledAtRuntime=cssRegions] DOMNamedFlowCollect
ion webkitGetNamedFlows(); |
267 | 263 |
268 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 264 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
269 [Conditional=FONT_LOAD_EVENTS, V8EnabledAtRuntime=fontLoadEvents] readonly a
ttribute FontLoader fontloader; | 265 [Conditional=FONT_LOAD_EVENTS, V8EnabledAtRuntime=fontLoadEvents] readonly a
ttribute FontLoader fontloader; |
270 #endif | 266 #endif |
271 | 267 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 [NotEnumerable] attribute EventListener onbeforepaste; | 329 [NotEnumerable] attribute EventListener onbeforepaste; |
334 [NotEnumerable] attribute EventListener onpaste; | 330 [NotEnumerable] attribute EventListener onpaste; |
335 [NotEnumerable] attribute EventListener onreset; | 331 [NotEnumerable] attribute EventListener onreset; |
336 [NotEnumerable] attribute EventListener onsearch; | 332 [NotEnumerable] attribute EventListener onsearch; |
337 [NotEnumerable] attribute EventListener onselectstart; | 333 [NotEnumerable] attribute EventListener onselectstart; |
338 [NotEnumerable] attribute EventListener onselectionchange; | 334 [NotEnumerable] attribute EventListener onselectionchange; |
339 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchstart; | 335 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchstart; |
340 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchmove; | 336 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchmove; |
341 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchend; | 337 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchend; |
342 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchcancel; | 338 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute
EventListener ontouchcancel; |
343 [NotEnumerable, Conditional=FULLSCREEN_API] attribute EventListener onwebkit
fullscreenchange; | 339 [NotEnumerable] attribute EventListener onwebkitfullscreenchange; |
344 [NotEnumerable, Conditional=FULLSCREEN_API] attribute EventListener onwebkit
fullscreenerror; | 340 [NotEnumerable] attribute EventListener onwebkitfullscreenerror; |
345 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo
interlockchange; | 341 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo
interlockchange; |
346 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo
interlockerror; | 342 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo
interlockerror; |
347 [NotEnumerable, Conditional=CSP_NEXT, V8EnabledAtRuntime=experimentalContent
SecurityPolicyFeatures] attribute EventListener onsecuritypolicyviolation; | 343 [NotEnumerable, V8EnabledAtRuntime=experimentalContentSecurityPolicyFeatures
] attribute EventListener onsecuritypolicyviolation; |
348 #endif | 344 #endif |
349 | 345 |
350 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS | 346 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS |
351 [ReturnNewObject, V8EnabledAtRuntime=touch] Touch createTouch(in [Optional=D
efaultIsUndefined] DOMWindow window, | 347 [ReturnNewObject, V8EnabledAtRuntime=touch] Touch createTouch(in [Optional=D
efaultIsUndefined] DOMWindow window, |
352 in [Optional=DefaultIsUndef
ined] EventTarget target, | 348 in [Optional=DefaultIsUndef
ined] EventTarget target, |
353 in [Optional=DefaultIsUndef
ined] long identifier, | 349 in [Optional=DefaultIsUndef
ined] long identifier, |
354 in [Optional=DefaultIsUndef
ined] long pageX, | 350 in [Optional=DefaultIsUndef
ined] long pageX, |
355 in [Optional=DefaultIsUndef
ined] long pageY, | 351 in [Optional=DefaultIsUndef
ined] long pageY, |
356 in [Optional=DefaultIsUndef
ined] long screenX, | 352 in [Optional=DefaultIsUndef
ined] long screenX, |
357 in [Optional=DefaultIsUndef
ined] long screenY, | 353 in [Optional=DefaultIsUndef
ined] long screenY, |
(...skipping 15 matching lines...) Expand all Loading... |
373 Element createElementNS(in [TreatNullAs=NullString] DOMString namespaceURI,
in DOMString qualifiedName, | 369 Element createElementNS(in [TreatNullAs=NullString] DOMString namespaceURI,
in DOMString qualifiedName, |
374 in [TreatNullAs=NullString] DOMString typeExtension)
raises (DOMException); | 370 in [TreatNullAs=NullString] DOMString typeExtension)
raises (DOMException); |
375 #endif | 371 #endif |
376 | 372 |
377 #if defined(LANGUAGE_CPP) && LANGUAGE_CPP | 373 #if defined(LANGUAGE_CPP) && LANGUAGE_CPP |
378 // Extra WebCore methods exposed to allow compile-time casting in C++ | 374 // Extra WebCore methods exposed to allow compile-time casting in C++ |
379 boolean isHTMLDocument(); | 375 boolean isHTMLDocument(); |
380 #endif | 376 #endif |
381 | 377 |
382 // Page visibility API. | 378 // Page visibility API. |
383 [Conditional=PAGE_VISIBILITY_API] readonly attribute DOMString webkitVisibil
ityState; | 379 readonly attribute DOMString webkitVisibilityState; |
384 [Conditional=PAGE_VISIBILITY_API] readonly attribute boolean webkitHidden; | 380 readonly attribute boolean webkitHidden; |
385 | 381 |
386 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi
le/tip/csp-specification.dev.html#script-interfaces | 382 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi
le/tip/csp-specification.dev.html#script-interfaces |
387 [Conditional=CSP_NEXT, V8EnabledAtRuntime=experimentalContentSecurityPolicyF
eatures] readonly attribute DOMSecurityPolicy securityPolicy; | 383 [V8EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attr
ibute DOMSecurityPolicy securityPolicy; |
388 | 384 |
389 }; | 385 }; |
390 | 386 |
OLD | NEW |