12015-07-28 Xabier Rodriguez Calvar <calvaris@igalia.com>
2
3 Create [StaticToPrototype] extended IDL attribute
4 https://bugs.webkit.org/show_bug.cgi?id=146593
5
6 Reviewed by NOBODY (OOPS!).
7
8 I added the [CustomObjectGenerateNoBindings] IDL extended attribute. The idea is that when using this attribute,
9 bindings generate only the headers of the JS functions and we have to implement all the access in the Custom.cpp
10 files, meaning accessing the implementations at our wish.
11
12 Added customObjectGenerateNoBindingsAttr, customObjectGenerateNoBindingsMethod,
13 customObjectGenerateNoBindingsMethodWithArgs to the generator tests.
14
15 * bindings/scripts/CodeGeneratorGObject.pm:
16 (SkipAttribute):
17 (SkipFunction): Skipped [CustomObjectGenerateNoBindings] attributes and methods.
18 * bindings/scripts/CodeGeneratorJS.pm:
19 (GenerateImplementation): Avoided generating the code for [CustomObjectGenerateNoBindings] methods and attributes.
20 * bindings/scripts/IDLAttributes.txt: Added [CustomObjectGenerateNoBindings] IDL extended attribute
21 * bindings/scripts/test/JS/JSTestObj.cpp: Expectations: added headers and methods to the VTables.
22 * bindings/scripts/test/ObjC/DOMTestObj.h:
23 * bindings/scripts/test/ObjC/DOMTestObj.mm:
24 (-[DOMTestObj customObjectGenerateNoBindingsAttr]):
25 (-[DOMTestObj setCustomObjectGenerateNoBindingsAttr:]):
26 (-[DOMTestObj customObjectGenerateNoBindingsMethod]):
27 (-[DOMTestObj customObjectGenerateNoBindingsMethodWithArgs:strArg:objArg:]): Expectations behaving same way as [Custom].
28 * bindings/scripts/test/TestObj.idl: Added customObjectGenerateNoBindingsAttr,
29 customObjectGenerateNoBindingsMethod, customObjectGenerateNoBindingsMethodWithArgs.
30