Changeset 106666 in webkit


Ignore:
Timestamp:
Feb 3, 2012 8:53:10 AM (12 years ago)
Author:
haraken@chromium.org
Message:

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:
Location:
trunk/Source/WebCore
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106665 r106666  
     12012-02-03  Kentaro Hara  <haraken@chromium.org>
     2
     3        Add the "V8" prefix to V8 specific IDL attributes
     4        https://bugs.webkit.org/show_bug.cgi?id=77713
     5
     6        Reviewed by Adam Barth.
     7
     8        This patch adds the "V8" prefix to a V8 specific IDL attribute:
     9        [EnabledAtRuntime] => [V8EnabledAtRuntime]
     10
     11        No tests. No change in behavior.
     12
     13        * bindings/scripts/CodeGeneratorV8.pm:
     14        (GenerateHeader):
     15        (GenerateImplementation):
     16        (GetRuntimeEnableFunctionName):
     17
     18        * bindings/scripts/test/TestObj.idl:
     19        * bindings/scripts/test/V8/V8TestObj.cpp: Updated the run-bindings-tests results.
     20        (WebCore::ConfigureV8TestObjTemplate):
     21
     22        * Modules/gamepad/NavigatorGamepad.idl:
     23        * dom/Clipboard.idl:
     24        * dom/Document.idl:
     25        * dom/Element.idl:
     26        * dom/MouseEvent.idl:
     27        * dom/ShadowRoot.idl:
     28        * html/HTMLInputElement.idl:
     29        * html/HTMLMediaElement.idl:
     30        * html/HTMLTrackElement.idl:
     31        * html/TextTrack.idl:
     32        * html/TextTrackCue.idl:
     33        * html/TextTrackCueList.idl:
     34        * html/shadow/HTMLContentElement.idl:
     35        * html/track/TextTrackList.idl:
     36        * html/track/TrackEvent.idl:
     37        * page/DOMWindow.idl:
     38        * page/History.idl:
     39        * page/Navigator.idl:
     40        * storage/DOMWindowSQLDatabase.idl:
     41        * webaudio/DOMWindowWebAudio.idl:
     42        * websockets/DOMWindowWebSocket.idl:
     43        * workers/WorkerContext.idl:
     44        * xml/XMLHttpRequest.idl:
     45
    1462012-02-03  Alexei Filippov  <alexeif@chromium.org>
    247
  • trunk/Source/WebCore/Modules/gamepad/NavigatorGamepad.idl

    r104146 r106666  
    2424        Supplemental=Navigator
    2525    ] NavigatorGamepad {
    26         readonly attribute [EnabledAtRuntime] GamepadList webkitGamepads;
     26        readonly attribute [V8EnabledAtRuntime] GamepadList webkitGamepads;
    2727    };
    2828
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r106645 r106666  
    371371        }
    372372
    373         if ($attrExt->{"EnabledAtRuntime"}) {
     373        if ($attrExt->{"V8EnabledAtRuntime"}) {
    374374            push(@enabledAtRuntime, $function);
    375375        }
     
    399399END
    400400        }
    401         if ($attrExt->{"EnabledAtRuntime"}) {
     401        if ($attrExt->{"V8EnabledAtRuntime"}) {
    402402            push(@enabledAtRuntime, $attribute);
    403403        }
     
    23502350        if ($interfaceName eq "DOMWindow" && $attribute->signature->extendedAttributes->{"V8Unforgeable"}) {
    23512351            push(@disallowsShadowing, $attribute);
    2352         } elsif ($attribute->signature->extendedAttributes->{"EnabledAtRuntime"}) {
     2352        } elsif ($attribute->signature->extendedAttributes->{"V8EnabledAtRuntime"}) {
    23532353            push(@enabledAtRuntime, $attribute);
    23542354        } else {
     
    23872387            next;
    23882388        }
    2389         if ($attrExt->{"EnabledAtRuntime"} || RequiresCustomSignature($function) || $attrExt->{"V8DoNotCheckSignature"}) {
     2389        if ($attrExt->{"V8EnabledAtRuntime"} || RequiresCustomSignature($function) || $attrExt->{"V8DoNotCheckSignature"}) {
    23902390            next;
    23912391        }
     
    24252425        my $attrExt = $constant->extendedAttributes;
    24262426        my $conditional = $attrExt->{"Conditional"};
    2427         if ($attrExt->{"EnabledAtRuntime"}) {
     2427        if ($attrExt->{"V8EnabledAtRuntime"}) {
    24282428            push(@constantsEnabledAtRuntime, $constant);
    24292429        } else {
     
    24892489    v8::Local<v8::Signature> defaultSignature;
    24902490END
    2491     if ($dataNode->extendedAttributes->{"EnabledAtRuntime"}) {
     2491    if ($dataNode->extendedAttributes->{"V8EnabledAtRuntime"}) {
    24922492        my $enable_function = GetRuntimeEnableFunctionName($dataNode);
    24932493        push(@implContent, <<END);
     
    26082608
    26092609        my $conditional = "";
    2610         if ($attrExt->{"EnabledAtRuntime"}) {
     2610        if ($attrExt->{"V8EnabledAtRuntime"}) {
    26112611            # Only call Set()/SetAccessor() if this method should be enabled
    26122612            my $enable_function = GetRuntimeEnableFunctionName($function->signature);
     
    38623862    my $signature = shift;
    38633863
    3864     # If a parameter is given (e.g. "EnabledAtRuntime=FeatureName") return the RuntimeEnabledFeatures::{FeatureName}Enabled() method.
    3865     return "RuntimeEnabledFeatures::" . $codeGenerator->WK_lcfirst($signature->extendedAttributes->{"EnabledAtRuntime"}) . "Enabled" if ($signature->extendedAttributes->{"EnabledAtRuntime"} && $signature->extendedAttributes->{"EnabledAtRuntime"} ne "1");
     3864    # If a parameter is given (e.g. "V8EnabledAtRuntime=FeatureName") return the RuntimeEnabledFeatures::{FeatureName}Enabled() method.
     3865    return "RuntimeEnabledFeatures::" . $codeGenerator->WK_lcfirst($signature->extendedAttributes->{"V8EnabledAtRuntime"}) . "Enabled" if ($signature->extendedAttributes->{"V8EnabledAtRuntime"} && $signature->extendedAttributes->{"V8EnabledAtRuntime"} ne "1");
    38663866
    38673867    # Otherwise return a function named RuntimeEnabledFeatures::{methodName}Enabled().
  • trunk/Source/WebCore/bindings/scripts/test/TestObj.idl

    r106575 r106666  
    172172
    173173#if defined(TESTING_V8)
    174         // 'EnabledAtRuntime' methods and attributes.
    175         [EnabledAtRuntime] void enabledAtRuntimeMethod1(in int intArg);
    176         [EnabledAtRuntime=FeatureName] void enabledAtRuntimeMethod2(in int intArg);
    177         attribute [EnabledAtRuntime] long enabledAtRuntimeAttr1;
    178         attribute [EnabledAtRuntime=FeatureName] long enabledAtRuntimeAttr2;
     174        // 'V8EnabledAtRuntime' methods and attributes.
     175        [V8EnabledAtRuntime] void enabledAtRuntimeMethod1(in int intArg);
     176        [V8EnabledAtRuntime=FeatureName] void enabledAtRuntimeMethod2(in int intArg);
     177        attribute [V8EnabledAtRuntime] long enabledAtRuntimeAttr1;
     178        attribute [V8EnabledAtRuntime=FeatureName] long enabledAtRuntimeAttr2;
    179179#endif
    180180
  • trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp

    r106618 r106666  
    17681768    if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) {
    17691769        static const BatchedAttribute attrData =\
    1770         // Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime')
     1770        // Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'V8EnabledAtRuntime')
    17711771        {"enabledAtRuntimeAttr1", TestObjInternal::enabledAtRuntimeAttr1AttrGetter, TestObjInternal::enabledAtRuntimeAttr1AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
    17721772        configureAttribute(instance, proto, attrData);
     
    17741774    if (RuntimeEnabledFeatures::featureNameEnabled()) {
    17751775        static const BatchedAttribute attrData =\
    1776         // Attribute 'enabledAtRuntimeAttr2' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime')
     1776        // Attribute 'enabledAtRuntimeAttr2' (Type: 'attribute' ExtAttr: 'V8EnabledAtRuntime')
    17771777        {"enabledAtRuntimeAttr2", TestObjInternal::enabledAtRuntimeAttr2AttrGetter, TestObjInternal::enabledAtRuntimeAttr2AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
    17781778        configureAttribute(instance, proto, attrData);
  • trunk/Source/WebCore/dom/Clipboard.idl

    r100163 r106666  
    4343            raises(DOMException);
    4444
    45         readonly attribute [Conditional=DATA_TRANSFER_ITEMS, EnabledAtRuntime=DataTransferItems] DataTransferItemList items;
     45        readonly attribute [Conditional=DATA_TRANSFER_ITEMS, V8EnabledAtRuntime=DataTransferItems] DataTransferItemList items;
    4646    };
    4747
  • trunk/Source/WebCore/dom/Document.idl

    r106660 r106666  
    242242
    243243#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
    244         readonly attribute [EnabledAtRuntime] boolean webkitIsFullScreen;
    245         readonly attribute [EnabledAtRuntime] boolean webkitFullScreenKeyboardInputAllowed;
    246         readonly attribute [EnabledAtRuntime] Element webkitCurrentFullScreenElement;
    247         [EnabledAtRuntime] void webkitCancelFullScreen();
     244        readonly attribute [V8EnabledAtRuntime] boolean webkitIsFullScreen;
     245        readonly attribute [V8EnabledAtRuntime] boolean webkitFullScreenKeyboardInputAllowed;
     246        readonly attribute [V8EnabledAtRuntime] Element webkitCurrentFullScreenElement;
     247        [V8EnabledAtRuntime] void webkitCancelFullScreen();
    248248#endif
    249249
     
    317317        attribute [NotEnumerable] EventListener onselectstart;
    318318        attribute [NotEnumerable] EventListener onselectionchange;
    319         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchstart;
    320         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchmove;
    321         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
    322         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
     319        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchstart;
     320        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchmove;
     321        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchend;
     322        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchcancel;
    323323        attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenchange;
    324324        attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenerror;
     
    326326
    327327#if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS
    328         [ReturnsNew, EnabledAtRuntime] Touch createTouch(in [Optional=CallWithDefaultValue] DOMWindow window,
     328        [ReturnsNew, V8EnabledAtRuntime] Touch createTouch(in [Optional=CallWithDefaultValue] DOMWindow window,
    329329                                                         in [Optional=CallWithDefaultValue] EventTarget target,
    330330                                                         in [Optional=CallWithDefaultValue] long identifier,
     
    338338                                                         in [Optional=CallWithDefaultValue] float webkitForce)
    339339            raises (DOMException);
    340         [ReturnsNew, EnabledAtRuntime, Custom] TouchList createTouchList()
     340        [ReturnsNew, V8EnabledAtRuntime, Custom] TouchList createTouchList()
    341341            raises (DOMException);
    342342#endif
  • trunk/Source/WebCore/dom/Element.idl

    r106660 r106666  
    131131#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
    132132        const unsigned short ALLOW_KEYBOARD_INPUT = 1;
    133         [EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
     133        [V8EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=CallWithDefaultValue] unsigned short flags);
    134134#endif
    135135
     
    200200        attribute [NotEnumerable] EventListener onsearch;
    201201        attribute [NotEnumerable] EventListener onselectstart;
    202         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchstart;
    203         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchmove;
    204         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
    205         attribute [NotEnumerable,Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
     202        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchstart;
     203        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchmove;
     204        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchend;
     205        attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchcancel;
    206206        attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenchange;
    207207        attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwebkitfullscreenerror;
  • trunk/Source/WebCore/dom/MouseEvent.idl

    r106660 r106666  
    2626        readonly attribute long             clientX;
    2727        readonly attribute long             clientY;
    28         readonly attribute [Conditional=POINTER_LOCK, EnabledAtRuntime] long webkitMovementX;
    29         readonly attribute [Conditional=POINTER_LOCK, EnabledAtRuntime] long webkitMovementY;
     28        readonly attribute [Conditional=POINTER_LOCK, V8EnabledAtRuntime] long webkitMovementX;
     29        readonly attribute [Conditional=POINTER_LOCK, V8EnabledAtRuntime] long webkitMovementY;
    3030        readonly attribute boolean          ctrlKey;
    3131        readonly attribute boolean          shiftKey;
  • trunk/Source/WebCore/dom/ShadowRoot.idl

    r106622 r106666  
    2929    interface [
    3030        Conditional=SHADOW_DOM,
    31         EnabledAtRuntime=shadowDOM,
     31        V8EnabledAtRuntime=shadowDOM,
    3232        Constructor(in Element host),
    3333        ConstructorRaisesException
  • trunk/Source/WebCore/html/HTMLInputElement.idl

    r106645 r106666  
    106106        readonly attribute NodeList labels;
    107107
    108         attribute [Conditional=INPUT_SPEECH, Reflect, EnabledAtRuntime] boolean webkitSpeech;
    109         attribute [Conditional=INPUT_SPEECH, Reflect, EnabledAtRuntime] boolean webkitGrammar;
     108        attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitSpeech;
     109        attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitGrammar;
    110110        attribute [Conditional=INPUT_SPEECH, NotEnumerable] EventListener onwebkitspeechchange;
    111111    };
  • trunk/Source/WebCore/html/HTMLMediaElement.idl

    r106534 r106666  
    9494#if defined(ENABLE_MEDIA_SOURCE) && ENABLE_MEDIA_SOURCE
    9595    // URL passed to src attribute to enable the media source logic.
    96     readonly attribute [EnabledAtRuntime=webkitMediaSource, URL] DOMString webkitMediaSourceURL;
     96    readonly attribute [V8EnabledAtRuntime=webkitMediaSource, URL] DOMString webkitMediaSourceURL;
    9797
    9898    // Appends media to to the source.
    99     [EnabledAtRuntime=webkitMediaSource] void webkitSourceAppend(in Uint8Array data) raises (DOMException);
     99    [V8EnabledAtRuntime=webkitMediaSource] void webkitSourceAppend(in Uint8Array data) raises (DOMException);
    100100
    101101    // Signals the end of stream.
    102     const [EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NO_ERROR = 0; // End of stream reached w/o error.
    103     const [EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NETWORK_ERR = 1; // A network error triggered end of stream.
    104     const [EnabledAtRuntime=webkitMediaSource] unsigned short EOS_DECODE_ERR = 2; // A decode error triggered end of stream.
    105     [EnabledAtRuntime=webkitMediaSource] void webkitSourceEndOfStream(in unsigned short status) raises (DOMException);
     102    const [V8EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NO_ERROR = 0; // End of stream reached w/o error.
     103    const [V8EnabledAtRuntime=webkitMediaSource] unsigned short EOS_NETWORK_ERR = 1; // A network error triggered end of stream.
     104    const [V8EnabledAtRuntime=webkitMediaSource] unsigned short EOS_DECODE_ERR = 2; // A decode error triggered end of stream.
     105    [V8EnabledAtRuntime=webkitMediaSource] void webkitSourceEndOfStream(in unsigned short status) raises (DOMException);
    106106
    107107    // Indicates the current state of the media source.
    108     const [EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_CLOSED = 0;
    109     const [EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_OPEN = 1;
    110     const [EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_ENDED = 2;
    111     readonly attribute [EnabledAtRuntime=webkitMediaSource] unsigned short webkitSourceState;
     108    const [V8EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_CLOSED = 0;
     109    const [V8EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_OPEN = 1;
     110    const [V8EnabledAtRuntime=webkitMediaSource] unsigned short SOURCE_ENDED = 2;
     111    readonly attribute [V8EnabledAtRuntime=webkitMediaSource] unsigned short webkitSourceState;
    112112#endif
    113113
    114114#if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK
    115     [EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString kind, in [Optional] DOMString label, in [Optional] DOMString language)
     115    [V8EnabledAtRuntime=webkitVideoTrack] TextTrack addTextTrack(in DOMString kind, in [Optional] DOMString label, in [Optional] DOMString language)
    116116        raises (DOMException);
    117     readonly attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackList textTracks;
     117    readonly attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackList textTracks;
    118118#endif
    119119
  • trunk/Source/WebCore/html/HTMLTrackElement.idl

    r101213 r106666  
    2727    interface [
    2828        Conditional=VIDEO_TRACK,
    29         EnabledAtRuntime=webkitVideoTrack
     29        V8EnabledAtRuntime=webkitVideoTrack
    3030    ] HTMLTrackElement : HTMLElement {
    3131        attribute [Reflect, URL] DOMString src;
  • trunk/Source/WebCore/html/TextTrack.idl

    r102471 r106666  
    2828    interface [
    2929        Conditional=VIDEO_TRACK,
    30         EnabledAtRuntime=webkitVideoTrack,
     30        V8EnabledAtRuntime=webkitVideoTrack,
    3131        EventTarget,
    3232        CustomMarkFunction,
  • trunk/Source/WebCore/html/TextTrackCue.idl

    r104624 r106666  
    2828    interface [
    2929        Conditional=VIDEO_TRACK,
    30         EnabledAtRuntime=webkitVideoTrack,
     30        V8EnabledAtRuntime=webkitVideoTrack,
    3131        GenerateNativeConverter,
    3232        Constructor(in DOMString id, in double startTime, in double endTime, in DOMString text, in [Optional=CallWithDefaultValue] DOMString settings, in [Optional=CallWithDefaultValue] boolean pauseOnExit),
  • trunk/Source/WebCore/html/TextTrackCueList.idl

    r97926 r106666  
    2828    interface [
    2929        Conditional=VIDEO_TRACK,
    30         EnabledAtRuntime=webkitVideoTrack,
     30        V8EnabledAtRuntime=webkitVideoTrack,
    3131        HasIndexGetter
    3232    ] TextTrackCueList {
  • trunk/Source/WebCore/html/shadow/HTMLContentElement.idl

    r105917 r106666  
    2828    interface [
    2929        Conditional=SHADOW_DOM,
    30         EnabledAtRuntime=shadowDOM
     30        V8EnabledAtRuntime=shadowDOM
    3131    ] HTMLContentElement : HTMLElement {
    3232        attribute [Reflect] DOMString select;
  • trunk/Source/WebCore/html/track/TextTrackList.idl

    r102471 r106666  
    2828    interface [
    2929        Conditional=VIDEO_TRACK,
    30         EnabledAtRuntime=webkitVideoTrack,
     30        V8EnabledAtRuntime=webkitVideoTrack,
    3131        HasIndexGetter,
    3232        EventTarget,
  • trunk/Source/WebCore/html/track/TrackEvent.idl

    r106644 r106666  
    2828    interface [
    2929        Conditional=VIDEO_TRACK,
    30         EnabledAtRuntime=webkitVideoTrack,
     30        V8EnabledAtRuntime=webkitVideoTrack,
    3131        ConstructorTemplate=Event
    3232    ] TrackEvent : Event {
  • trunk/Source/WebCore/page/DOMWindow.idl

    r106645 r106666  
    163163                                                     in [Optional=CallWithDefaultValue] WebKitPoint p);
    164164
    165         readonly attribute [EnabledAtRuntime] DOMApplicationCache applicationCache;
    166 
    167         readonly attribute [EnabledAtRuntime] Storage sessionStorage
     165        readonly attribute [V8EnabledAtRuntime] DOMApplicationCache applicationCache;
     166
     167        readonly attribute [V8EnabledAtRuntime] Storage sessionStorage
    168168            getter raises(DOMException);
    169         readonly attribute [EnabledAtRuntime] Storage localStorage
     169        readonly attribute [V8EnabledAtRuntime] Storage localStorage
    170170            getter raises(DOMException);
    171171
    172172#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
    173         readonly attribute [EnabledAtRuntime] NotificationCenter webkitNotifications;
     173        readonly attribute [V8EnabledAtRuntime] NotificationCenter webkitNotifications;
    174174#endif
    175175#if defined(ENABLE_FILE_SYSTEM) && ENABLE_FILE_SYSTEM
    176176        const unsigned short TEMPORARY = 0;
    177177        const unsigned short PERSISTENT = 1;
    178         [EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
    179         [EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback, Optional] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
     178        [V8EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
     179        [V8EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback, Optional] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
    180180#endif
    181181
     
    315315        attribute EventListener onorientationchange;
    316316#endif
    317         attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchstart;
    318         attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchmove;
    319         attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchend;
    320         attribute [Conditional=TOUCH_EVENTS,EnabledAtRuntime] EventListener ontouchcancel;
    321 
    322         attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondevicemotion;
    323         attribute [Conditional=DEVICE_ORIENTATION,EnabledAtRuntime] EventListener ondeviceorientation;
    324 
    325         attribute [Conditional=MEDIA_STREAM,EnabledAtRuntime] PeerConnectionConstructor webkitPeerConnection;
     317        attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchstart;
     318        attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchmove;
     319        attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchend;
     320        attribute [Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] EventListener ontouchcancel;
     321
     322        attribute [Conditional=DEVICE_ORIENTATION,V8EnabledAtRuntime] EventListener ondevicemotion;
     323        attribute [Conditional=DEVICE_ORIENTATION,V8EnabledAtRuntime] EventListener ondeviceorientation;
     324
     325        attribute [Conditional=MEDIA_STREAM,V8EnabledAtRuntime] PeerConnectionConstructor webkitPeerConnection;
    326326
    327327        // EventTarget interface
     
    399399        attribute EntityReferenceConstructor EntityReference;
    400400        attribute ProcessingInstructionConstructor ProcessingInstruction;
    401         attribute [Conditional=SHADOW_DOM, EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
     401        attribute [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
    402402
    403403        attribute HTMLDocumentConstructor HTMLDocument;
     
    527527        attribute XMLHttpRequestProgressEventConstructor XMLHttpRequestProgressEvent;
    528528        attribute [Conditional=SVG] SVGZoomEventConstructor SVGZoomEvent;
    529         attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceMotionEventConstructor DeviceMotionEvent;
    530         attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
     529        attribute [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] DeviceMotionEventConstructor DeviceMotionEvent;
     530        attribute [Conditional=DEVICE_ORIENTATION, V8EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
    531531        attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent;
    532532        attribute StorageEventConstructor StorageEvent;
     
    580580
    581581#if defined(ENABLE_SHARED_WORKERS) && ENABLE_SHARED_WORKERS
    582         attribute [JSCCustomGetter, EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator
     582        attribute [JSCCustomGetter, V8EnabledAtRuntime] SharedWorkerConstructor SharedWorker; // Usable with the new operator
    583583#endif
    584584
    585585#if defined(ENABLE_VIDEO_TRACK) && ENABLE_VIDEO_TRACK
    586         attribute [EnabledAtRuntime=webkitVideoTrack] HTMLTrackElementConstructor HTMLTrackElement;
    587         attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackConstructor TextTrack;
    588         attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackCueConstructor TextTrackCue; // Usable with the new operator
    589         attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackCueListConstructor TextTrackCueList;
    590         attribute [EnabledAtRuntime=webkitVideoTrack] TextTrackListConstructor TextTrackList;
    591         attribute [EnabledAtRuntime=webkitVideoTrack] TrackEventConstructor TrackEvent;
     586        attribute [V8EnabledAtRuntime=webkitVideoTrack] HTMLTrackElementConstructor HTMLTrackElement;
     587        attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackConstructor TextTrack;
     588        attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackCueConstructor TextTrackCue; // Usable with the new operator
     589        attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackCueListConstructor TextTrackCueList;
     590        attribute [V8EnabledAtRuntime=webkitVideoTrack] TextTrackListConstructor TextTrackList;
     591        attribute [V8EnabledAtRuntime=webkitVideoTrack] TrackEventConstructor TrackEvent;
    592592#endif
    593593
     
    603603        attribute StorageConstructor Storage;
    604604
    605         attribute [JSCCustomGetter, Conditional=VIDEO, EnabledAtRuntime] HTMLAudioElementConstructorConstructor Audio; // Usable with the new operator
    606         attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLAudioElementConstructor HTMLAudioElement;
    607         attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLMediaElementConstructor HTMLMediaElement;
    608         attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLVideoElementConstructor HTMLVideoElement;
    609         attribute [Conditional=VIDEO, EnabledAtRuntime] MediaErrorConstructor MediaError;
    610         attribute [Conditional=VIDEO, EnabledAtRuntime] TimeRangesConstructor TimeRanges;
    611         attribute [Conditional=VIDEO, EnabledAtRuntime] HTMLSourceElementConstructor HTMLSourceElement;
    612         attribute [Conditional=VIDEO, EnabledAtRuntime] MediaControllerConstructor MediaController;
     605        attribute [JSCCustomGetter, Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructorConstructor Audio; // Usable with the new operator
     606        attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLAudioElementConstructor HTMLAudioElement;
     607        attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLMediaElementConstructor HTMLMediaElement;
     608        attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLVideoElementConstructor HTMLVideoElement;
     609        attribute [Conditional=VIDEO, V8EnabledAtRuntime] MediaErrorConstructor MediaError;
     610        attribute [Conditional=VIDEO, V8EnabledAtRuntime] TimeRangesConstructor TimeRanges;
     611        attribute [Conditional=VIDEO, V8EnabledAtRuntime] HTMLSourceElementConstructor HTMLSourceElement;
     612        attribute [Conditional=VIDEO, V8EnabledAtRuntime] MediaControllerConstructor MediaController;
    613613
    614614#if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
     
    787787
    788788#if defined(ENABLE_QUOTA) && ENABLE_QUOTA
    789         readonly attribute [EnabledAtRuntime=Quota] StorageInfo webkitStorageInfo;
     789        readonly attribute [V8EnabledAtRuntime=Quota] StorageInfo webkitStorageInfo;
    790790#endif
    791791
  • trunk/Source/WebCore/page/History.idl

    r98385 r106666  
    4343        [DoNotCheckDomainSecurity, CallWith=ScriptExecutionContext] void go(in [Optional=CallWithDefaultValue] long distance);
    4444       
    45         [Custom, EnabledAtRuntime] void pushState(in any data, in DOMString title, in [Optional] DOMString url)
     45        [Custom, V8EnabledAtRuntime] void pushState(in any data, in DOMString title, in [Optional] DOMString url)
    4646            raises(DOMException);
    47         [Custom, EnabledAtRuntime] void replaceState(in any data, in DOMString title, in [Optional] DOMString url)
     47        [Custom, V8EnabledAtRuntime] void replaceState(in any data, in DOMString title, in [Optional] DOMString url)
    4848            raises(DOMException);
    4949    };
  • trunk/Source/WebCore/page/Navigator.idl

    r104146 r106666  
    4242
    4343#if defined(ENABLE_GEOLOCATION) && ENABLE_GEOLOCATION
    44         readonly attribute [EnabledAtRuntime] Geolocation geolocation;
     44        readonly attribute [V8EnabledAtRuntime] Geolocation geolocation;
    4545#endif
    4646
    4747#if defined(ENABLE_POINTER_LOCK) && ENABLE_POINTER_LOCK
    48         readonly attribute [EnabledAtRuntime] PointerLock webkitPointer;
     48        readonly attribute [V8EnabledAtRuntime] PointerLock webkitPointer;
    4949#endif
    5050
     
    5757
    5858#if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM
    59         [Custom, EnabledAtRuntime] void webkitGetUserMedia(in DOMString options,
     59        [Custom, V8EnabledAtRuntime] void webkitGetUserMedia(in DOMString options,
    6060                                                           in [Callback=FunctionOnly] NavigatorUserMediaSuccessCallback successCallback,
    6161                                                           in [Callback=FunctionOnly, Optional] NavigatorUserMediaErrorCallback errorCallback)
  • trunk/Source/WebCore/storage/DOMWindowSQLDatabase.idl

    r106091 r106666  
    3535        Supplemental=DOMWindow
    3636    ] DOMWindowSQLDatabase {
    37         [EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
     37        [V8EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
    3838            raises(DOMException);
    3939#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
  • trunk/Source/WebCore/webaudio/DOMWindowWebAudio.idl

    r106091 r106666  
    2525    ] DOMWindowWebAudio {
    2626#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
    27         attribute [JSCCustomGetter, EnabledAtRuntime] AudioContextConstructor webkitAudioContext;
     27        attribute [JSCCustomGetter, V8EnabledAtRuntime] AudioContextConstructor webkitAudioContext;
    2828        attribute AudioPannerNodeConstructor webkitAudioPannerNode;
    2929        attribute AudioProcessingEventConstructor AudioProcessingEvent;
  • trunk/Source/WebCore/websockets/DOMWindowWebSocket.idl

    r106091 r106666  
    3737#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
    3838        attribute CloseEventConstructor CloseEvent;
    39         attribute [JSCCustomGetter, EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
     39        attribute [JSCCustomGetter, V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
    4040#endif
    4141    };
  • trunk/Source/WebCore/workers/WorkerContext.idl

    r106639 r106666  
    5151                 attribute [Replaceable] WorkerNavigator navigator;
    5252#if defined(ENABLE_SQL_DATABASE) && ENABLE_SQL_DATABASE
    53         [EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
     53        [V8EnabledAtRuntime] Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
    5454            raises(DOMException);
    55         [EnabledAtRuntime] DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
     55        [V8EnabledAtRuntime] DatabaseSync openDatabaseSync(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in [Callback, Optional] DatabaseCallback creationCallback)
    5656            raises(DOMException);
    5757#endif
     
    7878#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS
    7979        // Notification interface
    80         readonly attribute [EnabledAtRuntime] NotificationCenter webkitNotifications;
     80        readonly attribute [V8EnabledAtRuntime] NotificationCenter webkitNotifications;
    8181#endif
    8282
     
    9292        attribute [JSCCustomGetter] XMLHttpRequestConstructor XMLHttpRequest;
    9393#if defined(ENABLE_WEB_SOCKETS) && ENABLE_WEB_SOCKETS
    94         attribute [JSCCustomGetter,EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
     94        attribute [JSCCustomGetter,V8EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
    9595#endif
    9696#endif
     
    107107        const unsigned short TEMPORARY = 0;
    108108        const unsigned short PERSISTENT = 1;
    109         [EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback, Optional] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
    110         [EnabledAtRuntime=FileSystem] DOMFileSystemSync webkitRequestFileSystemSync(in unsigned short type, in long long size) raises (FileException);
    111         [EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback, Optional] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
    112         [EnabledAtRuntime=FileSystem] EntrySync webkitResolveLocalFileSystemSyncURL(in DOMString url) raises (FileException);
     109        [V8EnabledAtRuntime=FileSystem] void webkitRequestFileSystem(in unsigned short type, in long long size, in [Callback, Optional] FileSystemCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
     110        [V8EnabledAtRuntime=FileSystem] DOMFileSystemSync webkitRequestFileSystemSync(in unsigned short type, in long long size) raises (FileException);
     111        [V8EnabledAtRuntime=FileSystem] void webkitResolveLocalFileSystemURL(in DOMString url, in [Callback, Optional] EntryCallback successCallback, in [Callback, Optional] ErrorCallback errorCallback);
     112        [V8EnabledAtRuntime=FileSystem] EntrySync webkitResolveLocalFileSystemSyncURL(in DOMString url) raises (FileException);
    113113
    114                  attribute [EnabledAtRuntime=FileSystem] FileErrorConstructor FileError;
    115                  attribute [EnabledAtRuntime=FileSystem] FileExceptionConstructor FileException;
     114                 attribute [V8EnabledAtRuntime=FileSystem] FileErrorConstructor FileError;
     115                 attribute [V8EnabledAtRuntime=FileSystem] FileExceptionConstructor FileException;
    116116#endif
    117117
     
    128128        attribute DataViewConstructor DataView; // Usable with new operator
    129129#if defined(ENABLE_INDEXED_DATABASE) && ENABLE_INDEXED_DATABASE
    130         readonly attribute [EnabledAtRuntime] IDBFactory webkitIndexedDB;
     130        readonly attribute [V8EnabledAtRuntime] IDBFactory webkitIndexedDB;
    131131
    132         attribute [EnabledAtRuntime] IDBCursorConstructor webkitIDBCursor;
    133         attribute [EnabledAtRuntime] IDBDatabaseConstructor webkitIDBDatabase;
    134         attribute [EnabledAtRuntime] IDBDatabaseErrorConstructor webkitIDBDatabaseError;
    135         attribute [EnabledAtRuntime] IDBDatabaseExceptionConstructor webkitIDBDatabaseException;
    136         attribute [EnabledAtRuntime] IDBFactoryConstructor webkitIDBFactory;
    137         attribute [EnabledAtRuntime] IDBIndexConstructor webkitIDBIndex;
    138         attribute [EnabledAtRuntime] IDBKeyRangeConstructor webkitIDBKeyRange;
    139         attribute [EnabledAtRuntime] IDBObjectStoreConstructor webkitIDBObjectStore;
    140         attribute [EnabledAtRuntime] IDBRequestConstructor webkitIDBRequest;
    141         attribute [EnabledAtRuntime] IDBTransactionConstructor webkitIDBTransaction;
     132        attribute [V8EnabledAtRuntime] IDBCursorConstructor webkitIDBCursor;
     133        attribute [V8EnabledAtRuntime] IDBDatabaseConstructor webkitIDBDatabase;
     134        attribute [V8EnabledAtRuntime] IDBDatabaseErrorConstructor webkitIDBDatabaseError;
     135        attribute [V8EnabledAtRuntime] IDBDatabaseExceptionConstructor webkitIDBDatabaseException;
     136        attribute [V8EnabledAtRuntime] IDBFactoryConstructor webkitIDBFactory;
     137        attribute [V8EnabledAtRuntime] IDBIndexConstructor webkitIDBIndex;
     138        attribute [V8EnabledAtRuntime] IDBKeyRangeConstructor webkitIDBKeyRange;
     139        attribute [V8EnabledAtRuntime] IDBObjectStoreConstructor webkitIDBObjectStore;
     140        attribute [V8EnabledAtRuntime] IDBRequestConstructor webkitIDBRequest;
     141        attribute [V8EnabledAtRuntime] IDBTransactionConstructor webkitIDBTransaction;
    142142#endif
    143143    };
  • trunk/Source/WebCore/xml/XMLHttpRequest.idl

    r103502 r106666  
    6060
    6161        // request
    62         attribute [Conditional=XHR_RESPONSE_BLOB, EnabledAtRuntime] boolean asBlob
     62        attribute [Conditional=XHR_RESPONSE_BLOB, V8EnabledAtRuntime] boolean asBlob
    6363            setter raises(DOMException);
    6464
     
    9898        readonly attribute Document responseXML
    9999            getter raises(DOMException);
    100         readonly attribute [Conditional=XHR_RESPONSE_BLOB, EnabledAtRuntime] Blob responseBlob
     100        readonly attribute [Conditional=XHR_RESPONSE_BLOB, V8EnabledAtRuntime] Blob responseBlob
    101101            getter raises(DOMException);
    102102
Note: See TracChangeset for help on using the changeset viewer.