Changeset 102558 in webkit


Ignore:
Timestamp:
Dec 11, 2011 11:01:29 PM (12 years ago)
Author:
haraken@chromium.org
Message:

Use [Supplemental] IDL in WebSocket
https://bugs.webkit.org/show_bug.cgi?id=74160

Reviewed by Adam Barth.

By using the [Supplemental] IDL, this patch moves declarations of WebSocket
attributes from DOMWindow.idl to websocket/DOMWindowWebSocket.idl,
which helps make WebSocket a self-contained module.

No new tests, no change in behavior.
Confirm that http/tests/websocket/* pass.

  • WebCore.gypi: Added DOMWindowWebSocket.idl.
  • page/DOMWindow.idl: Added the [Supplemented] IDL to WebSocket-related attributes. This [Supplemented] IDL will be removed after all platforms support the [Supplemental] IDL (See bug 73394 for more details).
  • websockets/DOMWindowWebSocket.idl: Added. Used the [Supplemental=DOMWindow] IDL. The attributes in this IDL file are treated as if they are described in DOMWindow.idl.
Location:
trunk/Source/WebCore
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r102557 r102558  
     12011-12-11  Kentaro Hara  <haraken@chromium.org>
     2
     3        Use [Supplemental] IDL in WebSocket
     4        https://bugs.webkit.org/show_bug.cgi?id=74160
     5
     6        Reviewed by Adam Barth.
     7
     8        By using the [Supplemental] IDL, this patch moves declarations of WebSocket
     9        attributes from DOMWindow.idl to websocket/DOMWindowWebSocket.idl,
     10        which helps make WebSocket a self-contained module.
     11
     12        No new tests, no change in behavior.
     13        Confirm that http/tests/websocket/* pass.
     14
     15        * WebCore.gypi: Added DOMWindowWebSocket.idl.
     16        * page/DOMWindow.idl: Added the [Supplemented] IDL to WebSocket-related attributes. This [Supplemented] IDL will be removed after all platforms support the [Supplemental] IDL (See bug 73394 for more details).
     17        * websockets/DOMWindowWebSocket.idl: Added. Used the [Supplemental=DOMWindow] IDL. The attributes in this IDL file are treated as if they are described in DOMWindow.idl.
     18
    1192011-12-11  Luke Macpherson   <macpherson@chromium.org>
    220
  • trunk/Source/WebCore/WebCore.gypi

    r102556 r102558  
    15071507            'webaudio/WaveShaperNode.idl',
    15081508            'websockets/CloseEvent.idl',
     1509            'websockets/DOMWindowWebSocket.idl',
    15091510            'websockets/WebSocket.idl',
    15101511            'workers/AbstractWorker.idl',
  • trunk/Source/WebCore/page/DOMWindow.idl

    r102556 r102558  
    551551        attribute [Conditional=DEVICE_ORIENTATION, EnabledAtRuntime] DeviceOrientationEventConstructor DeviceOrientationEvent;
    552552        attribute [Conditional=TOUCH_EVENTS] TouchEventConstructor TouchEvent;
    553         attribute [Conditional=WEB_SOCKETS] CloseEventConstructor CloseEvent;
     553        attribute [Supplemented, Conditional=WEB_SOCKETS] CloseEventConstructor CloseEvent;
    554554        attribute StorageEventConstructor StorageEvent;
    555555        attribute [Supplemented, Conditional=WEB_AUDIO] AudioProcessingEventConstructor AudioProcessingEvent;
     
    607607
    608608#if defined(ENABLE_WEB_SOCKETS) && ENABLE_WEB_SOCKETS
    609         attribute [JSCCustomGetter,EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
     609        attribute [Supplemented, JSCCustomGetter, EnabledAtRuntime] WebSocketConstructor WebSocket; // Usable with the new operator
    610610#endif
    611611
Note: See TracChangeset for help on using the changeset viewer.