Changes between Version 53 and Version 54 of WebKitIDL
- Timestamp:
- Feb 20, 2012, 6:13:46 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebKitIDL
v53 v54 1154 1154 [CustomIndexedSetter] allows you to write the custom bindings, as follows. 1155 1155 1156 * JavaScriptCore: You can write JSXXX::indexSetter(...) in WebCore/bindings/js/JSXXXCustom.cpp:1156 * JavaScriptCore: You can write custom JSXXX::indexSetter(...) in WebCore/bindings/js/JSXXXCustom.cpp: 1157 1157 1158 1158 {{{ … … 1162 1162 } 1163 1163 }}} 1164 * In V8: You can write V8XXX::indexedPropertySetter(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp:1164 * In V8: You can write custom V8XXX::indexedPropertySetter(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp: 1165 1165 1166 1166 {{{ … … 1207 1207 [CustomNamedGetter] or [CustomNamedSetter] allow you to write the custom bindings, as follows: 1208 1208 1209 * [CustomNamedGetter] in JavaScriptCore: You can write JSXXX::canGetItemsForName(...) and JSXXX::nameGetter(...) in WebCore/bindings/js/JSXXXCustom.cpp:1209 * [CustomNamedGetter] in JavaScriptCore: You can write custom JSXXX::canGetItemsForName(...) and JSXXX::nameGetter(...) in WebCore/bindings/js/JSXXXCustom.cpp: 1210 1210 1211 1211 {{{ … … 1220 1220 } 1221 1221 }}} 1222 * [CustomNamedGetter] in V8: You can write V8XXX::namedPropertyGetter(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp:1222 * [CustomNamedGetter] in V8: You can write custom V8XXX::namedPropertyGetter(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp: 1223 1223 1224 1224 {{{ … … 1228 1228 } 1229 1229 }}} 1230 * [CustomNamedSetter] in JavaScriptCore: You can write JSXXX::putDelegate(...) in WebCore/bindings/js/JSXXXCustom.cpp:1230 * [CustomNamedSetter] in JavaScriptCore: You can write custom JSXXX::putDelegate(...) in WebCore/bindings/js/JSXXXCustom.cpp: 1231 1231 1232 1232 {{{ … … 1236 1236 } 1237 1237 }}} 1238 * [CustomNamedSetter] in V8: You can write V8XXX::namedPropertySetter(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp:1238 * [CustomNamedSetter] in V8: You can write custom V8XXX::namedPropertySetter(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp: 1239 1239 1240 1240 {{{ … … 1329 1329 1330 1330 * [CustomEnumerateProperty] in JavaScriptCore: You can write custom bindings when properties of XXX are enumerated. 1331 Specifically, you can write JSXXX::getOwnPropertyNames(...) in WebCore/bindings/js/JSXXXCustom.cpp:1331 Specifically, you can write custom JSXXX::getOwnPropertyNames(...) in WebCore/bindings/js/JSXXXCustom.cpp: 1332 1332 1333 1333 {{{ … … 1353 1353 1354 1354 * [CustomDeleteProperty] in JavaScriptCore: You can write custom bindings for the case where a property of XXX is deleted. 1355 Specifically, you can write JSXXX::deleteProperty(...) in WebCore/bindings/js/JSXXXCustom.cpp:1355 Specifically, you can write custom JSXXX::deleteProperty(...) in WebCore/bindings/js/JSXXXCustom.cpp: 1356 1356 1357 1357 {{{ … … 1397 1397 If you want to write custom bindings for XXX.call(...), you can use [CustomCall]. 1398 1398 1399 * JavaScriptCore: You can write JSXXX::getCallData(...) in WebCore/bindings/js/JSXXXCustom.cpp:1399 * JavaScriptCore: You can write custom JSXXX::getCallData(...) in WebCore/bindings/js/JSXXXCustom.cpp: 1400 1400 1401 1401 {{{ … … 1405 1405 } 1406 1406 }}} 1407 * V8: You can write V8XXX::callAsFunctionCallback(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp:1407 * V8: You can write custom V8XXX::callAsFunctionCallback(...) in WebCore/bindings/v8/custom/V8XXXCustom.cpp: 1408 1408 1409 1409 {{{ … … 1416 1416 == [JSCustomToNativeObject](i), [JSCustomFinalize](i), [JSCustomIsReachable](i), [JSCustomMarkFunction](i), [JSCustomNamedGetterOnPrototype](i), [JSCustomPushEventHandlerScope](i), [JSCustomDefineOwnProperty](i), [JSCustomDefineOwnPropertyOnPrototype](i), [JSCustomGetOwnPropertySlotAndDescriptor](i) == #JSCustomToNativeObject 1417 1417 1418 Summary: They allow you to write custom code for the JavaScriptCorecode that would be generated automatically by default.1418 Summary: They allow you to write custom bindings for the JavaScriptCore-specific code that would be generated automatically by default. 1419 1419 1420 1420 Usage: They can be specified on interfaces: … … 1434 1434 }}} 1435 1435 1436 You can write the following custom codein WebCore/bindings/js/JSXXXCustom.cpp.1436 You can write the following custom bindings in WebCore/bindings/js/JSXXXCustom.cpp. 1437 1437 Refer to use cases in WebCore/bindings/js/JSXXXCustom.cpp for more details. 1438 1438 1439 * [JSCustomToNativeObject]: you can write custom toXXX(...):1439 * [JSCustomToNativeObject]: You can write custom toXXX(...): 1440 1440 1441 1441 {{{ … … 1469 1469 } 1470 1470 }}} 1471 * [JSCustomNamedGetterOnPrototype]: You can write custom JSXXX ::putDelegate(...):1472 1473 {{{ 1474 bool JSXXX ::putDelegate(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)1471 * [JSCustomNamedGetterOnPrototype]: You can write custom JSXXXPrototype::putDelegate(...): 1472 1473 {{{ 1474 bool JSXXXPrototype::putDelegate(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) 1475 1475 { 1476 1476 ...;