Changes between Version 156 and Version 157 of WebKitIDL


Ignore:
Timestamp:
Aug 28, 2017 11:26:56 AM (4 years ago)
Author:
Konstantin Tokarev
Comment:

Remove uses of obsolete module MODULE_NAME { } blocks which were removed in r131145

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v156 v157  
    6363Here is an example of IDL files:
    6464{{{
    65 module core {
    66     [
    67         CustomToJSObject
    68     ] interface Node {
    69         const unsigned short ELEMENT_NODE = 1;
    70         attribute Node parentNode;
    71         attribute DOMString? nodeName;
    72         [Custom] Node appendChild([CustomReturn] Node newChild);
    73         void addEventListener(DOMString type, EventListener listener, optional boolean useCapture);
    74     };
    75 }
     65[
     66    CustomToJSObject
     67] interface Node {
     68    const unsigned short ELEMENT_NODE = 1;
     69    attribute Node parentNode;
     70    attribute DOMString? nodeName;
     71    [Custom] Node appendChild([CustomReturn] Node newChild);
     72    void addEventListener(DOMString type, EventListener listener, optional boolean useCapture);
     73};
    7674}}}
    7775
     
    10098A template of an IDL file is as follows:
    10199{{{
    102 module MODULE_NAME {
    103     [
    104         IDL_ATTRIBUTE_ON_INTERFACE1,
    105         IDL_ATTRIBUTE_ON_INTERFACE2,
    106         ...
    107     ] interface INTERFACE_NAME {
    108         const unsigned long value = 12345;
    109         [IDL_ATTRIBUTE_ON_ATTRIBUTE1, IDL_ATTRIBUTE_ON_ATTRIBUTE2, ...] attribute Node node;
    110         [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func([IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...);
    111     };
    112 }
     100[
     101    IDL_ATTRIBUTE_ON_INTERFACE1,
     102    IDL_ATTRIBUTE_ON_INTERFACE2,
     103    ...
     104] interface INTERFACE_NAME {
     105    const unsigned long value = 12345;
     106    [IDL_ATTRIBUTE_ON_ATTRIBUTE1, IDL_ATTRIBUTE_ON_ATTRIBUTE2, ...] attribute Node node;
     107    [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func([IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...);
     108};
    113109}}}
    114110
    115111If there is no IDL attributes on interfaces, the IDL file just looks like this:
    116112{{{
    117 module MODULE_NAME {
    118     interface INTERFACE_NAME {
    119         const unsigned long value = 12345;
    120         [IDL_ATTRIBUTE_ON_ATTRIBUTE1, IDL_ATTRIBUTE_ON_ATTRIBUTE2, ...] attribute Node node;
    121         [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func([IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...);
    122     };
    123 }
     113interface INTERFACE_NAME {
     114    const unsigned long value = 12345;
     115    [IDL_ATTRIBUTE_ON_ATTRIBUTE1, IDL_ATTRIBUTE_ON_ATTRIBUTE2, ...] attribute Node node;
     116    [IDL_ATTRIBUTE_ON_METHOD1, IDL_ATTRIBUTE_ON_METHOD2, ...] void func([IDL_ATTRIBUTE_ON_PARAMETER1, IDL_ATTRIBUTE_ON_PARAMETER2, ...] int param, ...);
     117};
    124118}}}
    125119