Changes between Version 4 and Version 5 of WebKitIDL


Ignore:
Timestamp:
Jan 27, 2012, 6:00:14 PM (13 years ago)
Author:
haraken@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WebKitIDL

    v4 v5  
    3030Here is an example. Without the [Supplemental] IDL, if we want to add attributes or methods of XXX to DOMWindow,
    3131
    32 - we need to modify WebCore/page/DOMWindow.idl to add the IDLs of the attributes or methods
    33 - we might need to modify WebCore/page/DOMWindow.{h,cpp} to add the C++ implementation of attribute getters and setters or method callbacks.
     32* we need to modify WebCore/page/DOMWindow.idl to add the IDLs of the attributes or methods
     33
     34* we might need to modify WebCore/page/DOMWindow.{h,cpp} to add the C++ implementation of attribute getters and setters or method callbacks.
    3435
    3536On the other hand, in the modularized world with the [Supplemental] IDL, we just need to modify the code under WebCore/Modules/XXX/, like this:
    3637
    37 WebCore/Modules/XXX/DOMWindowXXX.idl
     38* WebCore/Modules/XXX/DOMWindowXXX.idl
    3839{{{
    3940   interface [
     
    4647}}}
    4748
    48 WebCore/Modules/XXX/DOMWindowXXX.h
     49* WebCore/Modules/XXX/DOMWindowXXX.h
    4950{{{
    5051   DOMWindowXXX::foo(...) { ... }   // the C++ implementation of the foo attribute getter