Changes between Version 59 and Version 60 of WebKitIDL


Ignore:
Timestamp:
Feb 21, 2012 5:24:10 PM (12 years ago)
Author:
haraken@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v59 v60  
    4040 - [#NamedGetter NamedGetter(i)][[br]]
    4141 - [#CustomNamedGetter CustomNamedGetter(i), CustomNamedSetter(i)][[br]]
     42 - [#InterfaceName InterfaceName(i)][[br]]
    4243 - [#EventTarget EventTarget(i)][[br]]
    4344 - [#DoNotCheckConstants DoNotCheckConstants(i)][[br]]
     
    12391240}}}
    12401241
     1242== [InterfaceName](i) == #InterfaceName
     1243
     1244Summary: If you want to expose a different interface name to JavaScript, you can specify the name by [InterfaceName].
     1245
     1246Usage: The possible usage is [InterfaceName=X], where X is the interface name exposed to JavaScript.
     1247[InterfaceName] can be specified on interfaces:
     1248{{{
     1249    interface [
     1250        InterfaceName=Window
     1251    ] DOMWindow {
     1252    };
     1253}}}
     1254
     1255Without [InterfaceName=...], the interface name exposed to JavaScript becomes the same as the interface name in an IDL file.
     1256If you want change it based on the spec, you can use [InterfaceName=...].
     1257In the above example, 'window.Window' will exist in JavaScript.
     1258
    12411259== [EventTarget](i) FIXME == #EventTarget
    12421260