Changes between Version 27 and Version 28 of WebKitIDL


Ignore:
Timestamp:
Feb 14, 2012 1:03:18 AM (12 years ago)
Author:
haraken@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v27 v28  
    156156You need to prepare WebCore/bindings/js/JSXXXCustom.cpp and write custom bindings, like this:
    157157{{{
    158     EncodedJSValue JSC_HOST_CALL jsXXXPrototypeFunctionCustomMethod(ExecState* exec)
     158    JSValue JSXXX::func(ExecState* exec)
    159159    {
    160160        ...;
    161161    }
    162162}}}
    163 Please refer to WebCore/bindings/js/JSXXXCustom.cpp for more details.
     163Refer to WebCore/bindings/js/JSXXXCustom.cpp for more details.
    164164
    165165 * JavaScriptCore attribute getter
     
    172172You need to prepare WebCore/bindings/js/JSXXXCustom.cpp and write custom bindings, like this:
    173173{{{
    174     JSValue jsXXXCustomAttr(ExecState* exec, JSValue slotBase, const Identifier&)
     174    JSValue JSXXX::str(ExecState* exec) const
    175175    {
    176176        ...;
    177177    }
    178178}}}
    179 Please refer to WebCore/bindings/js/JSXXXCustom.cpp for more details.
     179Refer to WebCore/bindings/js/JSXXXCustom.cpp for more details.
    180180
    181181 * JavaScriptCore attribute setter
     
    188188You need to prepare WebCore/bindings/js/JSXXXCustom.cpp and write custom bindings, like this:
    189189{{{
    190     void setJSXXXCustomAttr(ExecState* exec, JSObject* thisObject, JSValue value)
     190    void JSXXX::setStr(ExecState*, JSValue value)
    191191    {
    192192        ...;
    193193    }
    194194}}}
    195 Please refer to WebCore/bindings/js/JSXXXCustom.cpp for more details.
     195Refer to WebCore/bindings/js/JSXXXCustom.cpp for more details.
    196196
    197197 * V8 method
     
    209209    }
    210210}}}
    211 Please refer to WebCore/bindings/v8/custom/V8XXXCustom.cpp for more details.
     211Refer to WebCore/bindings/v8/custom/V8XXXCustom.cpp for more details.
    212212
    213213 * V8 attribute getter
     
    220220You need to prepare WebCore/bindings/v8/custom/V8XXXCustom.cpp and write custom bindings in the following signature:
    221221{{{
    222    
     222    v8::Handle<v8::Value> V8XXX::strAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
    223223    {
    224224        ...;
    225225    }
    226226}}}
    227 Please refer to WebCore/bindings/v8/custom/V8XXXCustom.cpp for more details.
     227Refer to WebCore/bindings/v8/custom/V8XXXCustom.cpp for more details.
    228228
    229229 * V8 attribute setter
     
    231231{{{
    232232    interface XXX {
    233         [V8Custom] void func(in int a, in int b);
     233        attribute [V8CustomSetter] DOMString str;
    234234    }
    235235}}}
    236236You need to prepare WebCore/bindings/v8/custom/V8XXXCustom.cpp and write custom bindings in the following signature:
    237237{{{
    238     v8::Handle<v8::Value> V8XXX::funcCallback(const v8::Arguments& args)
     238    void V8XXX::eventAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
    239239    {
    240240        ...;
    241241    }
    242242}}}
    243 Please refer to WebCore/bindings/v8/custom/V8XXXCustom.cpp for more details.
     243Refer to WebCore/bindings/v8/custom/V8XXXCustom.cpp for more details.
    244244
    245245We should minimize the number of custom bindings as less as possible. Before using [Custom], you should doubly consider if you really need custom bindings.