Changes between Version 4 and Version 5 of WebKitIDL
- Timestamp:
- Jan 27, 2012, 6:00:14 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitIDL
v4 v5 30 30 Here is an example. Without the [Supplemental] IDL, if we want to add attributes or methods of XXX to DOMWindow, 31 31 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. 34 35 35 36 On the other hand, in the modularized world with the [Supplemental] IDL, we just need to modify the code under WebCore/Modules/XXX/, like this: 36 37 37 WebCore/Modules/XXX/DOMWindowXXX.idl38 * WebCore/Modules/XXX/DOMWindowXXX.idl 38 39 {{{ 39 40 interface [ … … 46 47 }}} 47 48 48 WebCore/Modules/XXX/DOMWindowXXX.h49 * WebCore/Modules/XXX/DOMWindowXXX.h 49 50 {{{ 50 51 DOMWindowXXX::foo(...) { ... } // the C++ implementation of the foo attribute getter