Commit 4cc652f0 authored by haraken@chromium.org's avatar haraken@chromium.org

Add the "V8" prefix to V8 specific IDL attributes

https://bugs.webkit.org/show_bug.cgi?id=77713

Reviewed by Adam Barth.

This patch adds the "V8" prefix to a V8 specific IDL attribute:
[EnabledAtRuntime] => [V8EnabledAtRuntime]

No tests. No change in behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateHeader):
(GenerateImplementation):
(GetRuntimeEnableFunctionName):

* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/V8/V8TestObj.cpp: Updated the run-bindings-tests results.
(WebCore::ConfigureV8TestObjTemplate):

* Modules/gamepad/NavigatorGamepad.idl:
* dom/Clipboard.idl:
* dom/Document.idl:
* dom/Element.idl:
* dom/MouseEvent.idl:
* dom/ShadowRoot.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLTrackElement.idl:
* html/TextTrack.idl:
* html/TextTrackCue.idl:
* html/TextTrackCueList.idl:
* html/shadow/HTMLContentElement.idl:
* html/track/TextTrackList.idl:
* html/track/TrackEvent.idl:
* page/DOMWindow.idl:
* page/History.idl:
* page/Navigator.idl:
* storage/DOMWindowSQLDatabase.idl:
* webaudio/DOMWindowWebAudio.idl:
* websockets/DOMWindowWebSocket.idl:
* workers/WorkerContext.idl:
* xml/XMLHttpRequest.idl:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent cd4d8377
2012-02-03 Kentaro Hara <haraken@chromium.org>
Add the "V8" prefix to V8 specific IDL attributes
https://bugs.webkit.org/show_bug.cgi?id=77713
Reviewed by Adam Barth.
This patch adds the "V8" prefix to a V8 specific IDL attribute:
[EnabledAtRuntime] => [V8EnabledAtRuntime]
No tests. No change in behavior.
* bindings/scripts/CodeGeneratorV8.pm:
(GenerateHeader):
(GenerateImplementation):
(GetRuntimeEnableFunctionName):
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/V8/V8TestObj.cpp: Updated the run-bindings-tests results.
(WebCore::ConfigureV8TestObjTemplate):
* Modules/gamepad/NavigatorGamepad.idl:
* dom/Clipboard.idl:
* dom/Document.idl:
* dom/Element.idl:
* dom/MouseEvent.idl:
* dom/ShadowRoot.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLTrackElement.idl:
* html/TextTrack.idl:
* html/TextTrackCue.idl:
* html/TextTrackCueList.idl:
* html/shadow/HTMLContentElement.idl:
* html/track/TextTrackList.idl:
* html/track/TrackEvent.idl:
* page/DOMWindow.idl:
* page/History.idl:
* page/Navigator.idl:
* storage/DOMWindowSQLDatabase.idl:
* webaudio/DOMWindowWebAudio.idl:
* websockets/DOMWindowWebSocket.idl:
* workers/WorkerContext.idl:
* xml/XMLHttpRequest.idl:
2012-02-03 Alexei Filippov <alexeif@chromium.org>
Web Inspector: Retained size for classes is too conservative in heap profiler
......@@ -23,7 +23,7 @@ module window {
Conditional=GAMEPAD,
Supplemental=Navigator
] NavigatorGamepad {
readonly attribute [EnabledAtRuntime] GamepadList webkitGamepads;
readonly attribute [V8EnabledAtRuntime] GamepadList webkitGamepads;
};
}
......@@ -370,7 +370,7 @@ END
END
}
if ($attrExt->{"EnabledAtRuntime"}) {
if ($attrExt->{"V8EnabledAtRuntime"}) {
push(@enabledAtRuntime, $function);
}
}
......@@ -398,7 +398,7 @@ END
static void ${name}AccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value>, const v8::AccessorInfo&);
END
}
if ($attrExt->{"EnabledAtRuntime"}) {
if ($attrExt->{"V8EnabledAtRuntime"}) {
push(@enabledAtRuntime, $attribute);
}
}
......@@ -2349,7 +2349,7 @@ sub GenerateImplementation
if ($interfaceName eq "DOMWindow" && $attribute->signature->extendedAttributes->{"V8Unforgeable"}) {
push(@disallowsShadowing, $attribute);
} elsif ($attribute->signature->extendedAttributes->{"EnabledAtRuntime"}) {
} elsif ($attribute->signature->extendedAttributes->{"V8EnabledAtRuntime"}) {
push(@enabledAtRuntime, $attribute);
} else {
push(@normal, $attribute);
......@@ -2386,7 +2386,7 @@ sub GenerateImplementation
if ($function->isStatic) {
next;
}
if ($attrExt->{"EnabledAtRuntime"} || RequiresCustomSignature($function) || $attrExt->{"V8DoNotCheckSignature"}) {
if ($attrExt->{"V8EnabledAtRuntime"} || RequiresCustomSignature($function) || $attrExt->{"V8DoNotCheckSignature"}) {
next;
}
if ($attrExt->{"DoNotCheckDomainSecurity"} &&
......@@ -2424,7 +2424,7 @@ END
my $value = $constant->value;
my $attrExt = $constant->extendedAttributes;
my $conditional = $attrExt->{"Conditional"};
if ($attrExt->{"EnabledAtRuntime"}) {
if ($attrExt->{"V8EnabledAtRuntime"}) {
push(@constantsEnabledAtRuntime, $constant);
} else {
# FIXME: we need the static_cast here only because of one constant, NodeFilter.idl
......@@ -2488,7 +2488,7 @@ static v8::Persistent<v8::FunctionTemplate> Configure${className}Template(v8::Pe
v8::Local<v8::Signature> defaultSignature;
END
if ($dataNode->extendedAttributes->{"EnabledAtRuntime"}) {
if ($dataNode->extendedAttributes->{"V8EnabledAtRuntime"}) {
my $enable_function = GetRuntimeEnableFunctionName($dataNode);
push(@implContent, <<END);
if (!${enable_function}())
......@@ -2607,7 +2607,7 @@ END
}
my $conditional = "";
if ($attrExt->{"EnabledAtRuntime"}) {
if ($attrExt->{"V8EnabledAtRuntime"}) {
# Only call Set()/SetAccessor() if this method should be enabled
my $enable_function = GetRuntimeEnableFunctionName($function->signature);
$conditional = "if (${enable_function}())\n ";
......@@ -3861,8 +3861,8 @@ sub GetRuntimeEnableFunctionName
{
my $signature = shift;
# If a parameter is given (e.g. "EnabledAtRuntime=FeatureName") return the RuntimeEnabledFeatures::{FeatureName}Enabled() method.
return "RuntimeEnabledFeatures::" . $codeGenerator->WK_lcfirst($signature->extendedAttributes->{"EnabledAtRuntime"}) . "Enabled" if ($signature->extendedAttributes->{"EnabledAtRuntime"} && $signature->extendedAttributes->{"EnabledAtRuntime"} ne "1");
# If a parameter is given (e.g. "V8EnabledAtRuntime=FeatureName") return the RuntimeEnabledFeatures::{FeatureName}Enabled() method.
return "RuntimeEnabledFeatures::" . $codeGenerator->WK_lcfirst($signature->extendedAttributes->{"V8EnabledAtRuntime"}) . "Enabled" if ($signature->extendedAttributes->{"V8EnabledAtRuntime"} && $signature->extendedAttributes->{"V8EnabledAtRuntime"} ne "1");
# Otherwise return a function named RuntimeEnabledFeatures::{methodName}Enabled().
return "RuntimeEnabledFeatures::" . $codeGenerator->WK_lcfirst($signature->name) . "Enabled";
......
......@@ -171,11 +171,11 @@ module test {
static [Conditional=Condition1] void overloadedMethod1(in DOMString type);
#if defined(TESTING_V8)
// 'EnabledAtRuntime' methods and attributes.
[EnabledAtRuntime] void enabledAtRuntimeMethod1(in int intArg);
[EnabledAtRuntime=FeatureName] void enabledAtRuntimeMethod2(in int intArg);
attribute [EnabledAtRuntime] long enabledAtRuntimeAttr1;
attribute [EnabledAtRuntime=FeatureName] long enabledAtRuntimeAttr2;
// 'V8EnabledAtRuntime' methods and attributes.
[V8EnabledAtRuntime] void enabledAtRuntimeMethod1(in int intArg);
[V8EnabledAtRuntime=FeatureName] void enabledAtRuntimeMethod2(in int intArg);
attribute [V8EnabledAtRuntime] long enabledAtRuntimeAttr1;
attribute [V8EnabledAtRuntime=FeatureName] long enabledAtRuntimeAttr2;
#endif
......
......@@ -1767,13 +1767,13 @@ static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestObjTemplate(v8::Persi
if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) {
static const BatchedAttribute attrData =\
// Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime')
// Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'V8EnabledAtRuntime')
{"enabledAtRuntimeAttr1", TestObjInternal::enabledAtRuntimeAttr1AttrGetter, TestObjInternal::enabledAtRuntimeAttr1AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
configureAttribute(instance, proto, attrData);
}
if (RuntimeEnabledFeatures::featureNameEnabled()) {
static const BatchedAttribute attrData =\
// Attribute 'enabledAtRuntimeAttr2' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime')
// Attribute 'enabledAtRuntimeAttr2' (Type: 'attribute' ExtAttr: 'V8EnabledAtRuntime')
{"enabledAtRuntimeAttr2", TestObjInternal::enabledAtRuntimeAttr2AttrGetter, TestObjInternal::enabledAtRuntimeAttr2AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
configureAttribute(instance, proto, attrData);
}
......
......@@ -42,7 +42,7 @@ module core {
[Custom] void setDragImage(in HTMLImageElement image, in long x, in long y)
raises(DOMException);
readonly attribute [Conditional=DATA_TRANSFER_ITEMS, EnabledAtRuntime=DataTransferItems] DataTransferItemList items;
readonly attribute [Conditional=DATA_TRANSFER_ITEMS, V8EnabledAtRuntime=DataTransferItems] DataTransferItemList items;
};
}
......@@ -241,10 +241,10 @@ module core {
raises(DOMException);
#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
readonly attribute [EnabledAtRuntime] boolean webkitIsFullScreen;
readonly attribute [EnabledAtRuntime] boolean webkitFullScreenKeyboardInputAllowed;
readonly attribute [EnabledAtRuntime] Element webkitCurrentFullScreenElement;
[EnabledAtRuntime] void webkitCancelFullScreen();
readonly attribute [V8EnabledAtRuntime] boolean webkitIsFullScreen;
readonly attribute [V8EnabledAtRuntime] boolean webkitFullScreenKeyboardInputAllowed;
readonly attribute [V8EnabledAtRuntime] Element webkitCurrentFullScreenElement;
[V8EnabledAtRuntime] void webkitCancelFullScreen();
#endif
WebKitNamedFlow webkitGetFlowByName(in DOMString name);
......@@ -316,16 +316,16 @@ module core {
attribute [NotEnumerable] EventListener onsearch;
attribute [NotEnumerable] EventListener onselectstart;
attribute [NotEnumerable] EventListener onselectionchange;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchstart;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchmove;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchstart;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchmove;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchend;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchcancel;
attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenchange;
attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenerror;
#endif
#if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
[ReturnsNew, EnabledAtRuntime] Touch createTouch(in [Optional=CallWithDefaultValue] DOMWindow window,
[ReturnsNew, V8EnabledAtRuntime] Touch createTouch(in [Optional=CallWithDefaultValue] DOMWindow window,
in [Optional=CallWithDefaultValue] EventTarget target,
in [Optional=CallWithDefaultValue] long identifier,
in [Optional=CallWithDefaultValue] long pageX,
......@@ -337,7 +337,7 @@ module core {
in [Optional=CallWithDefaultValue] float webkitRotationAngle,
in [Optional=CallWithDefaultValue] float webkitForce)
raises (DOMException);
[ReturnsNew, EnabledAtRuntime, Custom] TouchList createTouchList()
[ReturnsNew, V8EnabledAtRuntime, Custom] TouchList createTouchList()
raises (DOMException);
#endif
......
......@@ -130,7 +130,7 @@ module core {
#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
const unsigned short ALLOW_KEYBOARD_INPUT = 1;
[EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
[V8EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
#endif
#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
......@@ -199,10 +199,10 @@ module core {
attribute [NotEnumerable] EventListener onreset;
attribute [NotEnumerable] EventListener onsearch;
attribute [NotEnumerable] EventListener onselectstart;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchstart;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchmove;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchstart;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchmove;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchend;
attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchcancel;
attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenchange;
attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenerror;
#endif
......
......@@ -25,8 +25,8 @@ module events {
readonly attribute long screenY;
readonly attribute long clientX;
readonly attribute long clientY;
readonly attribute [Conditional=POINTER_LOCK, EnabledAtRuntime] long webkitMovementX;
readonly attribute [Conditional=POINTER_LOCK, EnabledAtRuntime] long webkitMovementY;
readonly attribute [Conditional=POINTER_LOCK, V8EnabledAtRuntime] long webkitMovementX;
readonly attribute [Conditional=POINTER_LOCK, V8EnabledAtRuntime] long webkitMovementY;
readonly attribute boolean ctrlKey;
readonly attribute boolean shiftKey;
readonly attribute boolean altKey;
......
......@@ -28,7 +28,7 @@ module core {
interface [
Conditional=SHADOW_DOM,
EnabledAtRuntime=shadowDOM,
V8EnabledAtRuntime=shadowDOM,
Constructor(in Element host),
ConstructorRaisesException
] ShadowRoot : DocumentFragment {
......
......@@ -105,8 +105,8 @@ module html {
readonly attribute FileList files;
readonly attribute NodeList labels;
attribute [Conditional=INPUT_SPEECH, Reflect, EnabledAtRuntime] boolean webkitSpeech;
attribute [Conditional=INPUT_SPEECH, Reflect, EnabledAtRuntime] boolean webkitGrammar;
attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitSpeech;
attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitGrammar;
attribute [Conditional=INPUT_SPEECH, NotEnumerable] EventListener onwebkitspeechchange;
};
......
......@@ -93,28 +93,28 @@ module html {
#if defined(ENABLE_MEDIA_SOURCE) && ENABLE_MEDIA_SOURCE
// URL passed to src attribute to enable the media source logic.
readonly attribute [EnabledAtRuntime=webkitMediaSource, URL] DOMString webkitMediaSourceURL;
readonly attribute [V8EnabledAtRuntime=webkitMediaSource, URL] DOMString webkitMediaSourceURL;
// Appends media to to the source.
[EnabledAtRuntime=webkitMediaSource] void webkitSourceAppend(in Uint8Array data) raises (DOMException);
[V8EnabledAtRuntime=webkitMediaSource] void webkitSourceAppend(in Uint8Array data) raises (DOMException);
// Signals the end of stream.
const [EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NO_ERROR = 0; // End of stream reached w/o error.
const [EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NETWORK_ERR = 1; // A network error triggered end of stream.
const [EnabledAtRuntime=webkitMediaSource] unsigned short EOS_DECODE_ERR = 2; // A decode error triggered end of stream.
[EnabledAtRuntime=webkitMediaSource] void webkitSourceEndOfStream(in unsigned short status) raises (DOMException);
const [V8EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NO_ERROR = 0; // End of stream reached w/o error.
const [V8EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NETWORK_ERR = 1; // A network error triggered end of stream.
const [V8EnabledAtRuntime=webkitMediaSource] unsigned short EOS_DECODE_ERR = 2; // A decode error triggered end of stream.
[V8EnabledAtRuntime=webkitMediaSource] void webkitSourceEndOfStream(in unsigned short status) raises (DOMException);
// Indicates the current state of the media source.
const [EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_CLOSED = 0;
const [EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_OPEN = 1;
const [EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_ENDED = 2;
readonly attribute [EnabledAtRuntime=webkitMediaSource] unsigned short webkitSourceState;
const [V8EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_CLOSED = 0;
const [V8EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_OPEN = 1;
const [V8EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_ENDED = 2;
readonly attribute [V8EnabledAtRuntime=webkitMediaSource] unsigned short webkitSourceState;
#endif
#if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK
[EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString kind, in [Optional] DOMString label, in [Optional] DOMString language)
[V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString kind, in [Optional] DOMString label, in [Optional] DOMString language)
raises (DOMException);
readonly attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackList textTracks;
readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textTracks;
#endif
attribute [Reflect, TreatNullAs=EmptyString, ConvertNullStringToNull] DOMString mediaGroup;
......
......@@ -26,7 +26,7 @@
module html {
interface [
Conditional=VIDEO_TRACK,
EnabledAtRuntime=webkitVideoTrack
V8EnabledAtRuntime=webkitVideoTrack
] HTMLTrackElement : HTMLElement {
attribute [Reflect, URL] DOMString src;
attribute DOMString kind;
......
......@@ -27,7 +27,7 @@ module html {
interface [
Conditional=VIDEO_TRACK,
EnabledAtRuntime=webkitVideoTrack,
V8EnabledAtRuntime=webkitVideoTrack,
EventTarget,
CustomMarkFunction,
CustomIsReachable
......
......@@ -27,7 +27,7 @@ module html {
interface [
Conditional=VIDEO_TRACK,
EnabledAtRuntime=webkitVideoTrack,
V8EnabledAtRuntime=webkitVideoTrack,
GenerateNativeConverter,
Constructor(in DOMString id, in double startTime, in double endTime, in DOMString text, in [Optional=CallWithDefaultValue] DOMString settings, in [Optional=CallWithDefaultValue] boolean pauseOnExit),
CallWith=ScriptExecutionContext,
......
......@@ -27,7 +27,7 @@ module html {
interface [
Conditional=VIDEO_TRACK,
EnabledAtRuntime=webkitVideoTrack,
V8EnabledAtRuntime=webkitVideoTrack,
HasIndexGetter
] TextTrackCueList {
readonly attribute unsigned long length;
......
......@@ -27,7 +27,7 @@
module html {
interface [
Conditional=SHADOW_DOM,
EnabledAtRuntime=shadowDOM
V8EnabledAtRuntime=shadowDOM
] HTMLContentElement : HTMLElement {
attribute [Reflect] DOMString select;
};
......
......@@ -27,7 +27,7 @@ module html {
interface [
Conditional=VIDEO_TRACK,
EnabledAtRuntime=webkitVideoTrack,
V8EnabledAtRuntime=webkitVideoTrack,
HasIndexGetter,
EventTarget,
CustomMarkFunction,
......
......@@ -27,7 +27,7 @@ module html {
interface [
Conditional=VIDEO_TRACK,
EnabledAtRuntime=webkitVideoTrack,
V8EnabledAtRuntime=webkitVideoTrack,
ConstructorTemplate=Event
] TrackEvent : Event {
readonly attribute [InitializedByEventConstructor, CustomGetter] object track;
......
......@@ -162,21 +162,21 @@ module window {
WebKitPoint webkitConvertPointFromNodeToPage(in [Optional=CallWithDefaultValue] Node node,
in [Optional=CallWithDefaultValue] WebKitPoint p);
readonly attribute [EnabledAtRuntime] DOMApplicationCache applicationCache;
readonly attribute [V8EnabledAtRuntime] DOMApplicationCache applicationCache;
readonly attribute [EnabledAtRuntime] Storage sessionStorage
readonly attribute [V8EnabledAtRuntime] Storage sessionStorage
getter raises(DOMException);
readonly attribute [EnabledAtRuntime] Storage localStorage
readonly attribute [V8EnabledAtRuntime] Storage localStorage
getter raises(DOMException);
#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
readonly attribute [EnabledAtRuntime] NotificationCenter webkitNotifications;
readonly attribute [V8EnabledAtRuntime] NotificationCenter webkitNotifications;
#endif
#if defined(ENABLE_FILE_SYSTEM) && ENABLE_FILE_SYSTEM
const unsigned short TEMPORARY = 0;
const unsigned short PERSISTENT = 1;
[EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
[EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback, Optional] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
[V8EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
[V8EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback, Optional] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
#endif
#if defined(ENABLE_ORIENTATION_EVENTS) && ENABLE_ORIENTATION_EVENTS
......@@ -314,15 +314,15 @@ module window {
#if defined(ENABLE_ORIENTATION_EVENTS) && ENABLE_ORIENTATION_EVENTS
attribute EventListener onorientationchange;
#endif
attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchstart;
attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchmove;
attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchstart;
attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchmove;
attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchend;
attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchcancel;
attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondevicemotion;
attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondeviceorientation;
attribute [Conditional=DEVICE_ORIENTATION,V8EnabledAtRuntime] EventListener ondevicemotion;
attribute [Conditional=DEVICE_ORIENTATION,V8EnabledAtRuntime] EventListener ondeviceorientation;
attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor webkitPeerConnection;
attribute [Conditional=MEDIA_STREAM,V8EnabledAtRuntime] PeerConnectionConstructor webkitPeerConnection;
// EventTarget interface
[Custom] void addEventListener(in DOMString type,
......@@ -398,7 +398,7 @@ module window {
attribute EntityConstructor Entity;
attribute EntityReferenceConstructor EntityReference;
attribute ProcessingInstructionConstructor ProcessingInstruction;
attribute [Conditional=SHADOW_DOM, EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
attribute [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
attribute HTMLDocumentConstructor HTMLDocument;
......@@ -526,8 +526,8 @@ module window {
attribute WheelEventConstructor WheelEvent;
attribute XMLHttpRequestProgressEventConstructor XMLHttpRequestProgressEvent;
attribute [Conditional=SVG] SVGZoomEventConstructor SVGZoomEvent;
attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceMotionEventConstructor DeviceMotionEvent;
attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
attribute [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] DeviceMotionEventConstructor DeviceMotionEvent;
attribute [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent;
attribute StorageEventConstructor StorageEvent;
attribute [Conditional=INPUT_SPEECH] SpeechInputEventConstructor SpeechInputEvent;
......@@ -579,16 +579,16 @@ module window {
#endif
#if defined(ENABLE_SHARED_WORKERS) && ENABLE_SHARED_WORKERS
attribute [JSCCustomGetter, EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator
attribute [JSCCustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator
#endif
#if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK
attribute [EnabledAtRuntime=webkitVideoTrack] HTMLTrackElementConstructor HTMLTrackElement;
attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackConstructor TextTrack;
attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackCueConstructor TextTrackCue; // Usable with the new operator
attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackCueListConstructor TextTrackCueList;
attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackListConstructor TextTrackList;
attribute [EnabledAtRuntime=webkitVideoTrack] TrackEventConstructor TrackEvent;
attribute [V8EnabledAtRuntime=webkitVideoTrack] HTMLTrackElementConstructor HTMLTrackElement;
attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackConstructor TextTrack;
attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackCueConstructor TextTrackCue; // Usable with the new operator
attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackCueListConstructor TextTrackCueList;
attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackListConstructor TextTrackList;
attribute [V8EnabledAtRuntime=webkitVideoTrack] TrackEventConstructor TrackEvent;
#endif
attribute DOMPluginConstructor Plugin;
......@@ -602,14 +602,14 @@ module window {
attribute StorageConstructor Storage;
attribute [JSCCustomGetter, Conditional=VIDEO, EnabledAtRuntime] HTMLAudioElementConstructorConstructor Audio; // Usable with the new operator
attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLAudioElementConstructor HTMLAudioElement;
attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLMediaElementConstructor HTMLMediaElement;
attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLVideoElementConstructor HTMLVideoElement;
attribute [Conditional=VIDEO, EnabledAtRuntime] MediaErrorConstructor MediaError;
attribute [Conditional=VIDEO, EnabledAtRuntime] TimeRangesConstructor TimeRanges;
attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLSourceElementConstructor HTMLSourceElement;
attribute [Conditional=VIDEO, EnabledAtRuntime] MediaControllerConstructor MediaController;
attribute [JSCCustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructorConstructor Audio; // Usable with the new operator
attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructor HTMLAudioElement;
attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLMediaElementConstructor HTMLMediaElement;
attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLVideoElementConstructor HTMLVideoElement;
attribute [Conditional=VIDEO, V8EnabledAtRuntime] MediaErrorConstructor MediaError;
attribute [Conditional=VIDEO, V8EnabledAtRuntime] TimeRangesConstructor TimeRanges;
attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLSourceElementConstructor HTMLSourceElement;
attribute [Conditional=VIDEO, V8EnabledAtRuntime] MediaControllerConstructor MediaController;
#if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
attribute WebKitAnimationConstructor WebKitAnimation;
......@@ -786,7 +786,7 @@ module window {
readonly attribute [Conditional=BLOB] DOMURL webkitURL;
#if defined(ENABLE_QUOTA) && ENABLE_QUOTA
readonly attribute [EnabledAtRuntime=Quota] StorageInfo webkitStorageInfo;
readonly attribute [V8EnabledAtRuntime=Quota] StorageInfo webkitStorageInfo;
#endif
attribute [Conditional=MUTATION_OBSERVERS] WebKitMutationObserverConstructor WebKitMutationObserver;
......
......@@ -42,9 +42,9 @@ module window {
[DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void forward();
[DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void go(in [Optional=CallWithDefaultValue] long distance);
[Custom, EnabledAtRuntime] void pushState(in any data, in DOMString title, in [Optional] DOMString url)
[Custom, V8EnabledAtRuntime] void pushState(in any data, in DOMString title, in [Optional] DOMString url)
raises(DOMException);
[Custom, EnabledAtRuntime] void replaceState(in any data, in DOMString title, in [Optional] DOMString url)
[Custom, V8EnabledAtRuntime] void replaceState(in any data, in DOMString title, in [Optional] DOMString url)
raises(DOMException);
};
......
......@@ -41,11 +41,11 @@ module window {
readonly attribute boolean onLine;
#if defined(ENABLE_GEOLOCATION) && ENABLE_GEOLOCATION
readonly attribute [EnabledAtRuntime] Geolocation geolocation;
readonly attribute [V8EnabledAtRuntime] Geolocation geolocation;
#endif
#if defined(ENABLE_POINTER_LOCK) && ENABLE_POINTER_LOCK
readonly attribute [EnabledAtRuntime] PointerLock webkitPointer;
readonly attribute [V8EnabledAtRuntime] PointerLock webkitPointer;
#endif
void getStorageUpdates(); // FIXME: Remove this method or rename to yieldForStorageUpdates.
......@@ -56,7 +56,7 @@ module window {
#endif
#if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM
[Custom, EnabledAtRuntime] void webkitGetUserMedia(in DOMString options,
[Custom, V8EnabledAtRuntime] void webkitGetUserMedia(in DOMString options,
in [Callback=FunctionOnly] NavigatorUserMediaSuccessCallback successCallback,
in [Callback=FunctionOnly, Optional] NavigatorUserMediaErrorCallback errorCallback)
raises(DOMException);
......
......@@ -34,7 +34,7 @@ module window {
Conditional=SQL_DATABASE,
Supplemental=DOMWindow
] DOMWindowSQLDatabase {
[EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
[V8EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
raises(DOMException);
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
attribute SQLExceptionConstructor SQLException;
......
......@@ -24,7 +24,7 @@ module window {
Supplemental=DOMWindow
] DOMWindowWebAudio {
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
attribute [JSCCustomGetter, EnabledAtRuntime] AudioContextConstructor webkitAudioContext;
attribute [JSCCustomGetter, V8EnabledAtRuntime] AudioContextConstructor webkitAudioContext;
attribute AudioPannerNodeConstructor webkitAudioPannerNode;
attribute AudioProcessingEventConstructor AudioProcessingEvent;
attribute OfflineAudioCompletionEventConstructor OfflineAudioCompletionEvent;
......
......@@ -36,7 +36,7 @@ module window {
] DOMWindowWebSocket {
#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
attribute CloseEventConstructor CloseEvent;
attribute [JSCCustomGetter, EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
attribute [JSCCustomGetter, V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
#endif
};
......
......@@ -50,9 +50,9 @@ module threads {
[Custom] void importScripts(/*[Variadic] in DOMString urls */);
attribute [Replaceable] WorkerNavigator navigator;
#if defined(ENABLE_SQL_DATABASE) && ENABLE_SQL_DATABASE
[EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
[V8EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
raises(DOMException);
[EnabledAtRuntime] DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
[V8EnabledAtRuntime] DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
raises(DOMException);