[GObject bindings] Supplemental interfaces are not disabled with the "Conditional...
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 22:10:35 +0000 (22:10 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Mar 2012 22:10:35 +0000 (22:10 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80030

Patch by Zan Dobersek <zandobersek@gmail.com> on 2012-03-23
Reviewed by Martin Robinson.

Source/WebCore:

Changes in CodeGeneratorGObject.pm:
- group implementation of private helpers and guard them inside
an ifdef if a root conditional attribute is present.
- always define the type of a GObject binding, even if the root
conditional feature is not enabled
- the methods are generated as well, but are simply stubs if the
feature is not enabled, throwing a warning upon interaction.
- if the method itself is guarded by a conditional attribute,
the stub implementation gains one more level of depth, throwing
a warning if the method's conditional feature is not enabled
but the root conditional feature is.
- small style fixes in random places.

Also changed are GObject baselines for binding tests.

No new tests - no new testable functionality.

* bindings/gobject/GNUmakefile.am:
* bindings/scripts/CodeGeneratorGObject.pm:
(HumanReadableConditional):
(GenerateConditionalWarn):
(GenerateProperty):
(GenerateProperties):
(GenerateFunction):
(GenerateFunctions):
(GenerateCFile):
(GenerateEventTargetIface):
(Generate):
(WriteData):
* bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp:
(WebKit):
(WebKit::kit):
(WebKit::wrapFloat64Array):
(webkit_dom_float64array_finalize):
(webkit_dom_float64array_foo):
* bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObject.cpp:
(WebKit):
(WebKit::kit):
(WebKit::wrapTestActiveDOMObject):
(webkit_dom_test_active_dom_object_finalize):
(webkit_dom_test_active_dom_object_exciting_function):
(webkit_dom_test_active_dom_object_post_message):
(webkit_dom_test_active_dom_object_get_exciting_attr):
* bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObjectPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
(WebKit):
(WebKit::kit):
(WebKit::core):
(WebKit::wrapTestCallback):
(webkit_dom_test_callback_finalize):
(webkit_dom_test_callback_callback_with_no_param):
(webkit_dom_test_callback_callback_with_class1param):
(webkit_dom_test_callback_callback_with_class2param):
(webkit_dom_test_callback_callback_with_non_bool_return_type):
(webkit_dom_test_callback_callback_with_string_list):
* bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.cpp:
(WebKit):
(WebKit::kit):
(WebKit::wrapTestCustomNamedGetter):
(webkit_dom_test_custom_named_getter_finalize):
(webkit_dom_test_custom_named_getter_another_function):
* bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetterPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestEventConstructor.cpp:
(WebKit):
(WebKit::kit):
(WebKit::wrapTestEventConstructor):
(webkit_dom_test_event_constructor_finalize):
(webkit_dom_test_event_constructor_get_attr1):
(webkit_dom_test_event_constructor_get_attr2):
* bindings/scripts/test/GObject/WebKitDOMTestEventConstructorPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp:
(WebKit):
(WebKit::core):
(WebKit::wrapTestEventTarget):
(webkit_dom_test_event_target_finalize):
(webkit_dom_test_event_target_item):
(webkit_dom_test_event_target_dispatch_event):
* bindings/scripts/test/GObject/WebKitDOMTestEventTargetPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
(WebKit):
(WebKit::kit):
(WebKit::core):
(WebKit::wrapTestInterface):
(webkit_dom_test_interface_finalize):
(webkit_dom_test_interface_supplemental_method1):
(webkit_dom_test_interface_supplemental_method2):
(webkit_dom_test_interface_supplemental_method4):
(webkit_dom_test_interface_get_supplemental_str1):
(webkit_dom_test_interface_get_supplemental_str2):
(webkit_dom_test_interface_set_supplemental_str2):
(webkit_dom_test_interface_get_supplemental_node):
(webkit_dom_test_interface_set_supplemental_node):
* bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp:
(WebKit):
(WebKit::kit):
(WebKit::wrapTestMediaQueryListListener):
(webkit_dom_test_media_query_list_listener_finalize):
* bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestNamedConstructor.cpp:
(WebKit):
(WebKit::kit):
(WebKit::wrapTestNamedConstructor):
(webkit_dom_test_named_constructor_finalize):
* bindings/scripts/test/GObject/WebKitDOMTestNamedConstructorPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
(WebKit):
(WebKit::kit):
(WebKit::core):
(WebKit::wrapTestObj):
(webkit_dom_test_obj_finalize):
(webkit_dom_test_obj_set_property):
(webkit_dom_test_obj_get_property):
(webkit_dom_test_obj_constructed):
(webkit_dom_test_obj_class_init):
(webkit_dom_test_obj_init):
(webkit_dom_test_obj_void_method):
(webkit_dom_test_obj_void_method_with_args):
(webkit_dom_test_obj_int_method):
(webkit_dom_test_obj_int_method_with_args):
(webkit_dom_test_obj_obj_method):
(webkit_dom_test_obj_obj_method_with_args):
(webkit_dom_test_obj_method_with_sequence_arg):
(webkit_dom_test_obj_method_that_requires_all_args_and_throws):
(webkit_dom_test_obj_serialized_value):
(webkit_dom_test_obj_idb_key):
(webkit_dom_test_obj_options_object):
(webkit_dom_test_obj_method_with_exception):
(webkit_dom_test_obj_with_script_state_void):
(webkit_dom_test_obj_with_script_state_obj):
(webkit_dom_test_obj_with_script_state_void_exception):
(webkit_dom_test_obj_with_script_state_obj_exception):
(webkit_dom_test_obj_with_script_execution_context):
(webkit_dom_test_obj_with_script_execution_context_and_script_state):
(webkit_dom_test_obj_with_script_execution_context_and_script_state_obj_exception):
(webkit_dom_test_obj_with_script_execution_context_and_script_state_with_spaces):
(webkit_dom_test_obj_method_with_optional_arg):
(webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg):
(webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args):
(webkit_dom_test_obj_method_with_optional_string):
(webkit_dom_test_obj_method_with_optional_string_is_undefined):
(webkit_dom_test_obj_method_with_optional_string_is_null_string):
(webkit_dom_test_obj_conditional_method1):
(webkit_dom_test_obj_conditional_method2):
(webkit_dom_test_obj_conditional_method3):
(webkit_dom_test_obj_class_method):
(webkit_dom_test_obj_class_method_with_optional):
(webkit_dom_test_obj_overloaded_method1):
(webkit_dom_test_obj_convert1):
(webkit_dom_test_obj_convert2):
(webkit_dom_test_obj_convert3):
(webkit_dom_test_obj_convert4):
(webkit_dom_test_obj_convert5):
(webkit_dom_test_obj_mutable_point_function):
(webkit_dom_test_obj_immutable_point_function):
(webkit_dom_test_obj_orange):
(webkit_dom_test_obj_strict_function):
(webkit_dom_test_obj_get_read_only_int_attr):
(webkit_dom_test_obj_get_read_only_string_attr):
(webkit_dom_test_obj_get_read_only_test_obj_attr):
(webkit_dom_test_obj_get_short_attr):
(webkit_dom_test_obj_set_short_attr):
(webkit_dom_test_obj_get_unsigned_short_attr):
(webkit_dom_test_obj_set_unsigned_short_attr):
(webkit_dom_test_obj_get_int_attr):
(webkit_dom_test_obj_set_int_attr):
(webkit_dom_test_obj_get_long_long_attr):
(webkit_dom_test_obj_set_long_long_attr):
(webkit_dom_test_obj_get_unsigned_long_long_attr):
(webkit_dom_test_obj_set_unsigned_long_long_attr):
(webkit_dom_test_obj_get_string_attr):
(webkit_dom_test_obj_set_string_attr):
(webkit_dom_test_obj_get_test_obj_attr):
(webkit_dom_test_obj_set_test_obj_attr):
(webkit_dom_test_obj_get_xml_obj_attr):
(webkit_dom_test_obj_set_xml_obj_attr):
(webkit_dom_test_obj_get_create):
(webkit_dom_test_obj_set_create):
(webkit_dom_test_obj_get_reflected_string_attr):
(webkit_dom_test_obj_set_reflected_string_attr):
(webkit_dom_test_obj_get_reflected_integral_attr):
(webkit_dom_test_obj_set_reflected_integral_attr):
(webkit_dom_test_obj_get_reflected_unsigned_integral_attr):
(webkit_dom_test_obj_set_reflected_unsigned_integral_attr):
(webkit_dom_test_obj_get_reflected_boolean_attr):
(webkit_dom_test_obj_set_reflected_boolean_attr):
(webkit_dom_test_obj_get_reflected_url_attr):
(webkit_dom_test_obj_set_reflected_url_attr):
(webkit_dom_test_obj_get_reflected_custom_integral_attr):
(webkit_dom_test_obj_set_reflected_custom_integral_attr):
(webkit_dom_test_obj_get_reflected_custom_boolean_attr):
(webkit_dom_test_obj_set_reflected_custom_boolean_attr):
(webkit_dom_test_obj_get_reflected_custom_url_attr):
(webkit_dom_test_obj_set_reflected_custom_url_attr):
(webkit_dom_test_obj_get_attr_with_getter_exception):
(webkit_dom_test_obj_set_attr_with_getter_exception):
(webkit_dom_test_obj_get_attr_with_setter_exception):
(webkit_dom_test_obj_set_attr_with_setter_exception):
(webkit_dom_test_obj_get_string_attr_with_getter_exception):
(webkit_dom_test_obj_set_string_attr_with_getter_exception):
(webkit_dom_test_obj_get_string_attr_with_setter_exception):
(webkit_dom_test_obj_set_string_attr_with_setter_exception):
(webkit_dom_test_obj_get_with_script_state_attribute):
(webkit_dom_test_obj_set_with_script_state_attribute):
(webkit_dom_test_obj_get_with_script_execution_context_attribute):
(webkit_dom_test_obj_set_with_script_execution_context_attribute):
(webkit_dom_test_obj_get_with_script_state_attribute_raises):
(webkit_dom_test_obj_set_with_script_state_attribute_raises):
(webkit_dom_test_obj_get_with_script_execution_context_attribute_raises):
(webkit_dom_test_obj_set_with_script_execution_context_attribute_raises):
(webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute):
(webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute):
(webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute_raises):
(webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute_raises):
(webkit_dom_test_obj_get_with_script_execution_context_and_script_state_with_spaces_attribute):
(webkit_dom_test_obj_set_with_script_execution_context_and_script_state_with_spaces_attribute):
(webkit_dom_test_obj_get_conditional_attr1):
(webkit_dom_test_obj_set_conditional_attr1):
(webkit_dom_test_obj_get_conditional_attr2):
(webkit_dom_test_obj_set_conditional_attr2):
(webkit_dom_test_obj_get_conditional_attr3):
(webkit_dom_test_obj_set_conditional_attr3):
(webkit_dom_test_obj_get_content_document):
(webkit_dom_test_obj_get_mutable_point):
(webkit_dom_test_obj_set_mutable_point):
(webkit_dom_test_obj_get_immutable_point):
(webkit_dom_test_obj_set_immutable_point):
(webkit_dom_test_obj_get_strict_float):
(webkit_dom_test_obj_set_strict_float):
(webkit_dom_test_obj_get_description):
(webkit_dom_test_obj_get_id):
(webkit_dom_test_obj_set_id):
(webkit_dom_test_obj_get_hash):
* bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h:
* bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.cpp:
(WebKit):
(WebKit::kit):
(WebKit::core):
(WebKit::wrapTestSerializedScriptValueInterface):
(webkit_dom_test_serialized_script_value_interface_finalize):
(webkit_dom_test_serialized_script_value_interface_accept_transfer_list):
(webkit_dom_test_serialized_script_value_interface_multi_transfer_list):
(webkit_dom_test_serialized_script_value_interface_get_value):
(webkit_dom_test_serialized_script_value_interface_set_value):
(webkit_dom_test_serialized_script_value_interface_get_readonly_value):
(webkit_dom_test_serialized_script_value_interface_get_cached_value):
(webkit_dom_test_serialized_script_value_interface_set_cached_value):
(webkit_dom_test_serialized_script_value_interface_get_cached_readonly_value):
* bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterfacePrivate.h:

Source/WebKit/gtk:

Add a private macro that can be used when necessary to throw a warning
about a future not enabled at compile-time.

* webkit/webkitglobalsprivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111914 268f45cc-cd09-0410-ab3c-d52691b4dbfc

27 files changed:
Source/WebCore/ChangeLog
Source/WebCore/bindings/gobject/GNUmakefile.am
Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObject.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObjectPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetterPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventConstructor.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventConstructorPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTargetPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestNamedConstructor.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestNamedConstructorPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.cpp
Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterfacePrivate.h
Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/webkit/webkitglobalsprivate.h

index 29986a28a0e30af6a4fab5b7cb9f41ae45d507a4..5966f2362e797a71c909bbfb9806fc7100d0f3d2 100644 (file)
@@ -1,3 +1,262 @@
+2012-03-23  Zan Dobersek  <zandobersek@gmail.com>
+
+        [GObject bindings] Supplemental interfaces are not disabled with the "Conditional" attribute
+        https://bugs.webkit.org/show_bug.cgi?id=80030
+
+        Reviewed by Martin Robinson.
+
+        Changes in CodeGeneratorGObject.pm:
+        - group implementation of private helpers and guard them inside
+        an ifdef if a root conditional attribute is present.
+        - always define the type of a GObject binding, even if the root
+        conditional feature is not enabled
+        - the methods are generated as well, but are simply stubs if the
+        feature is not enabled, throwing a warning upon interaction.
+        - if the method itself is guarded by a conditional attribute,
+        the stub implementation gains one more level of depth, throwing
+        a warning if the method's conditional feature is not enabled
+        but the root conditional feature is.
+        - small style fixes in random places.
+
+        Also changed are GObject baselines for binding tests.
+
+        No new tests - no new testable functionality.
+
+        * bindings/gobject/GNUmakefile.am:
+        * bindings/scripts/CodeGeneratorGObject.pm:
+        (HumanReadableConditional):
+        (GenerateConditionalWarn):
+        (GenerateProperty):
+        (GenerateProperties):
+        (GenerateFunction):
+        (GenerateFunctions):
+        (GenerateCFile):
+        (GenerateEventTargetIface):
+        (Generate):
+        (WriteData):
+        * bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::wrapFloat64Array):
+        (webkit_dom_float64array_finalize):
+        (webkit_dom_float64array_foo):
+        * bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObject.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::wrapTestActiveDOMObject):
+        (webkit_dom_test_active_dom_object_finalize):
+        (webkit_dom_test_active_dom_object_exciting_function):
+        (webkit_dom_test_active_dom_object_post_message):
+        (webkit_dom_test_active_dom_object_get_exciting_attr):
+        * bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObjectPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapTestCallback):
+        (webkit_dom_test_callback_finalize):
+        (webkit_dom_test_callback_callback_with_no_param):
+        (webkit_dom_test_callback_callback_with_class1param):
+        (webkit_dom_test_callback_callback_with_class2param):
+        (webkit_dom_test_callback_callback_with_non_bool_return_type):
+        (webkit_dom_test_callback_callback_with_string_list):
+        * bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::wrapTestCustomNamedGetter):
+        (webkit_dom_test_custom_named_getter_finalize):
+        (webkit_dom_test_custom_named_getter_another_function):
+        * bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetterPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestEventConstructor.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::wrapTestEventConstructor):
+        (webkit_dom_test_event_constructor_finalize):
+        (webkit_dom_test_event_constructor_get_attr1):
+        (webkit_dom_test_event_constructor_get_attr2):
+        * bindings/scripts/test/GObject/WebKitDOMTestEventConstructorPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp:
+        (WebKit):
+        (WebKit::core):
+        (WebKit::wrapTestEventTarget):
+        (webkit_dom_test_event_target_finalize):
+        (webkit_dom_test_event_target_item):
+        (webkit_dom_test_event_target_dispatch_event):
+        * bindings/scripts/test/GObject/WebKitDOMTestEventTargetPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapTestInterface):
+        (webkit_dom_test_interface_finalize):
+        (webkit_dom_test_interface_supplemental_method1):
+        (webkit_dom_test_interface_supplemental_method2):
+        (webkit_dom_test_interface_supplemental_method4):
+        (webkit_dom_test_interface_get_supplemental_str1):
+        (webkit_dom_test_interface_get_supplemental_str2):
+        (webkit_dom_test_interface_set_supplemental_str2):
+        (webkit_dom_test_interface_get_supplemental_node):
+        (webkit_dom_test_interface_set_supplemental_node):
+        * bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::wrapTestMediaQueryListListener):
+        (webkit_dom_test_media_query_list_listener_finalize):
+        * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestNamedConstructor.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::wrapTestNamedConstructor):
+        (webkit_dom_test_named_constructor_finalize):
+        * bindings/scripts/test/GObject/WebKitDOMTestNamedConstructorPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapTestObj):
+        (webkit_dom_test_obj_finalize):
+        (webkit_dom_test_obj_set_property):
+        (webkit_dom_test_obj_get_property):
+        (webkit_dom_test_obj_constructed):
+        (webkit_dom_test_obj_class_init):
+        (webkit_dom_test_obj_init):
+        (webkit_dom_test_obj_void_method):
+        (webkit_dom_test_obj_void_method_with_args):
+        (webkit_dom_test_obj_int_method):
+        (webkit_dom_test_obj_int_method_with_args):
+        (webkit_dom_test_obj_obj_method):
+        (webkit_dom_test_obj_obj_method_with_args):
+        (webkit_dom_test_obj_method_with_sequence_arg):
+        (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
+        (webkit_dom_test_obj_serialized_value):
+        (webkit_dom_test_obj_idb_key):
+        (webkit_dom_test_obj_options_object):
+        (webkit_dom_test_obj_method_with_exception):
+        (webkit_dom_test_obj_with_script_state_void):
+        (webkit_dom_test_obj_with_script_state_obj):
+        (webkit_dom_test_obj_with_script_state_void_exception):
+        (webkit_dom_test_obj_with_script_state_obj_exception):
+        (webkit_dom_test_obj_with_script_execution_context):
+        (webkit_dom_test_obj_with_script_execution_context_and_script_state):
+        (webkit_dom_test_obj_with_script_execution_context_and_script_state_obj_exception):
+        (webkit_dom_test_obj_with_script_execution_context_and_script_state_with_spaces):
+        (webkit_dom_test_obj_method_with_optional_arg):
+        (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg):
+        (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args):
+        (webkit_dom_test_obj_method_with_optional_string):
+        (webkit_dom_test_obj_method_with_optional_string_is_undefined):
+        (webkit_dom_test_obj_method_with_optional_string_is_null_string):
+        (webkit_dom_test_obj_conditional_method1):
+        (webkit_dom_test_obj_conditional_method2):
+        (webkit_dom_test_obj_conditional_method3):
+        (webkit_dom_test_obj_class_method):
+        (webkit_dom_test_obj_class_method_with_optional):
+        (webkit_dom_test_obj_overloaded_method1):
+        (webkit_dom_test_obj_convert1):
+        (webkit_dom_test_obj_convert2):
+        (webkit_dom_test_obj_convert3):
+        (webkit_dom_test_obj_convert4):
+        (webkit_dom_test_obj_convert5):
+        (webkit_dom_test_obj_mutable_point_function):
+        (webkit_dom_test_obj_immutable_point_function):
+        (webkit_dom_test_obj_orange):
+        (webkit_dom_test_obj_strict_function):
+        (webkit_dom_test_obj_get_read_only_int_attr):
+        (webkit_dom_test_obj_get_read_only_string_attr):
+        (webkit_dom_test_obj_get_read_only_test_obj_attr):
+        (webkit_dom_test_obj_get_short_attr):
+        (webkit_dom_test_obj_set_short_attr):
+        (webkit_dom_test_obj_get_unsigned_short_attr):
+        (webkit_dom_test_obj_set_unsigned_short_attr):
+        (webkit_dom_test_obj_get_int_attr):
+        (webkit_dom_test_obj_set_int_attr):
+        (webkit_dom_test_obj_get_long_long_attr):
+        (webkit_dom_test_obj_set_long_long_attr):
+        (webkit_dom_test_obj_get_unsigned_long_long_attr):
+        (webkit_dom_test_obj_set_unsigned_long_long_attr):
+        (webkit_dom_test_obj_get_string_attr):
+        (webkit_dom_test_obj_set_string_attr):
+        (webkit_dom_test_obj_get_test_obj_attr):
+        (webkit_dom_test_obj_set_test_obj_attr):
+        (webkit_dom_test_obj_get_xml_obj_attr):
+        (webkit_dom_test_obj_set_xml_obj_attr):
+        (webkit_dom_test_obj_get_create):
+        (webkit_dom_test_obj_set_create):
+        (webkit_dom_test_obj_get_reflected_string_attr):
+        (webkit_dom_test_obj_set_reflected_string_attr):
+        (webkit_dom_test_obj_get_reflected_integral_attr):
+        (webkit_dom_test_obj_set_reflected_integral_attr):
+        (webkit_dom_test_obj_get_reflected_unsigned_integral_attr):
+        (webkit_dom_test_obj_set_reflected_unsigned_integral_attr):
+        (webkit_dom_test_obj_get_reflected_boolean_attr):
+        (webkit_dom_test_obj_set_reflected_boolean_attr):
+        (webkit_dom_test_obj_get_reflected_url_attr):
+        (webkit_dom_test_obj_set_reflected_url_attr):
+        (webkit_dom_test_obj_get_reflected_custom_integral_attr):
+        (webkit_dom_test_obj_set_reflected_custom_integral_attr):
+        (webkit_dom_test_obj_get_reflected_custom_boolean_attr):
+        (webkit_dom_test_obj_set_reflected_custom_boolean_attr):
+        (webkit_dom_test_obj_get_reflected_custom_url_attr):
+        (webkit_dom_test_obj_set_reflected_custom_url_attr):
+        (webkit_dom_test_obj_get_attr_with_getter_exception):
+        (webkit_dom_test_obj_set_attr_with_getter_exception):
+        (webkit_dom_test_obj_get_attr_with_setter_exception):
+        (webkit_dom_test_obj_set_attr_with_setter_exception):
+        (webkit_dom_test_obj_get_string_attr_with_getter_exception):
+        (webkit_dom_test_obj_set_string_attr_with_getter_exception):
+        (webkit_dom_test_obj_get_string_attr_with_setter_exception):
+        (webkit_dom_test_obj_set_string_attr_with_setter_exception):
+        (webkit_dom_test_obj_get_with_script_state_attribute):
+        (webkit_dom_test_obj_set_with_script_state_attribute):
+        (webkit_dom_test_obj_get_with_script_execution_context_attribute):
+        (webkit_dom_test_obj_set_with_script_execution_context_attribute):
+        (webkit_dom_test_obj_get_with_script_state_attribute_raises):
+        (webkit_dom_test_obj_set_with_script_state_attribute_raises):
+        (webkit_dom_test_obj_get_with_script_execution_context_attribute_raises):
+        (webkit_dom_test_obj_set_with_script_execution_context_attribute_raises):
+        (webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute):
+        (webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute):
+        (webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute_raises):
+        (webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute_raises):
+        (webkit_dom_test_obj_get_with_script_execution_context_and_script_state_with_spaces_attribute):
+        (webkit_dom_test_obj_set_with_script_execution_context_and_script_state_with_spaces_attribute):
+        (webkit_dom_test_obj_get_conditional_attr1):
+        (webkit_dom_test_obj_set_conditional_attr1):
+        (webkit_dom_test_obj_get_conditional_attr2):
+        (webkit_dom_test_obj_set_conditional_attr2):
+        (webkit_dom_test_obj_get_conditional_attr3):
+        (webkit_dom_test_obj_set_conditional_attr3):
+        (webkit_dom_test_obj_get_content_document):
+        (webkit_dom_test_obj_get_mutable_point):
+        (webkit_dom_test_obj_set_mutable_point):
+        (webkit_dom_test_obj_get_immutable_point):
+        (webkit_dom_test_obj_set_immutable_point):
+        (webkit_dom_test_obj_get_strict_float):
+        (webkit_dom_test_obj_set_strict_float):
+        (webkit_dom_test_obj_get_description):
+        (webkit_dom_test_obj_get_id):
+        (webkit_dom_test_obj_set_id):
+        (webkit_dom_test_obj_get_hash):
+        * bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h:
+        * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.cpp:
+        (WebKit):
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapTestSerializedScriptValueInterface):
+        (webkit_dom_test_serialized_script_value_interface_finalize):
+        (webkit_dom_test_serialized_script_value_interface_accept_transfer_list):
+        (webkit_dom_test_serialized_script_value_interface_multi_transfer_list):
+        (webkit_dom_test_serialized_script_value_interface_get_value):
+        (webkit_dom_test_serialized_script_value_interface_set_value):
+        (webkit_dom_test_serialized_script_value_interface_get_readonly_value):
+        (webkit_dom_test_serialized_script_value_interface_get_cached_value):
+        (webkit_dom_test_serialized_script_value_interface_set_cached_value):
+        (webkit_dom_test_serialized_script_value_interface_get_cached_readonly_value):
+        * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterfacePrivate.h:
+
 2012-03-23  Dana Jansens  <danakj@chromium.org>
 
         [chromium] Record painted pixel counts for measuring effectiveness of per-tile painting
index a51280f9581d078e650dd5ea179c6396eab5ec51..660b78a32c15f28bf11a2e665b0904dc7f708f88 100644 (file)
@@ -66,6 +66,8 @@ webkitgtk_gdom_built_sources += \
        DerivedSources/webkit/WebKitDOMFileList.cpp \
        DerivedSources/webkit/WebKitDOMFileListPrivate.h \
        DerivedSources/webkit/WebKitDOMFilePrivate.h \
+       DerivedSources/webkit/WebKitDOMGeolocation.cpp \
+       DerivedSources/webkit/WebKitDOMGeolocationPrivate.h \
        DerivedSources/webkit/WebKitDOMHistory.cpp \
        DerivedSources/webkit/WebKitDOMHistoryPrivate.h \
        DerivedSources/webkit/WebKitDOMHTMLAnchorElement.cpp \
@@ -293,6 +295,7 @@ webkitgtk_built_h_api += \
        DerivedSources/webkit/WebKitDOMBlob.h \
        DerivedSources/webkit/WebKitDOMFile.h \
        DerivedSources/webkit/WebKitDOMFileList.h \
+       DerivedSources/webkit/WebKitDOMGeolocation.h \
        DerivedSources/webkit/WebKitDOMHTMLAnchorElement.h \
        DerivedSources/webkit/WebKitDOMHTMLAppletElement.h \
        DerivedSources/webkit/WebKitDOMHTMLAreaElement.h \
@@ -386,14 +389,6 @@ webkitgtk_built_h_api += \
        DerivedSources/webkit/webkitdom.h \
        DerivedSources/webkit/webkitdomdefines.h
 
-if ENABLE_GEOLOCATION
-webkitgtk_built_h_api += \
-       $(top_builddir)/DerivedSources/webkit/WebKitDOMGeolocation.h
-webkitgtk_gdom_built_sources += \
-       DerivedSources/webkit/WebKitDOMGeolocation.cpp \
-       DerivedSources/webkit/WebKitDOMGeolocationPrivate.h
-endif
-
 if ENABLE_VIDEO
 webkitgtk_built_h_api += \
        $(top_builddir)/DerivedSources/webkit/WebKitDOMHTMLAudioElement.h \
index 21134d47b5c0dbac570d72208c7dac6ebeed2f2d..ee85841a2abdf6fb782cd104c9c02d3ecf21fdec 100644 (file)
@@ -114,6 +114,21 @@ sub FixUpDecamelizedName {
     return $classname;
 }
 
+sub HumanReadableConditional {
+    my @conditional = split('_', shift);
+    my @upperCaseExceptions = ("SQL", "API");
+    my @humanReadable;
+
+    for $part (@conditional) {
+        if (!grep {$_ eq $part} @upperCaseExceptions) {
+            $part = camelize(lc($part));
+        }
+        push(@humanReadable, $part);
+    }
+
+    return join(' ', @humanReadable);
+}
+
 sub ClassNameToGObjectType {
     my $className = shift;
     my $CLASS_NAME = uc(decamelize($className));
@@ -344,6 +359,32 @@ sub GenerateConditionalString
     }
 }
 
+sub GenerateConditionalWarning
+{
+    my $node = shift;
+    my $conditional = $node->extendedAttributes->{"Conditional"};
+    my @warn;
+
+    if ($conditional) {
+        if ($conditional =~ /&/) {
+            my @splitConditionals = split(/&/, $conditional);
+            foreach $condition (@splitConditionals) {
+                push(@warn, "#if !ENABLE($condition)\n");
+                push(@warn, "    WEBKIT_WARN_FEATURE_NOT_PRESENT(\"" . HumanReadableConditional($condition) . "\")\n");
+                push(@warn, "#endif\n");
+            }
+        } elsif ($conditional =~ /\|/) {
+            foreach $condition (split(/\|/, $conditional)) {
+                push(@warn, "    WEBKIT_WARN_FEATURE_NOT_PRESENT(\"" . HumanReadableConditional($condition) . "\")\n");
+            }
+        } else {
+            push(@warn, "    WEBKIT_WARN_FEATURE_NOT_PRESENT(\"" . HumanReadableConditional($conditional) . "\")\n");
+        }
+    }
+
+    return @warn;
+}
+
 sub GenerateProperty {
     my $attribute = shift;
     my $interfaceName = shift;
@@ -358,9 +399,9 @@ sub GenerateProperty {
     my $propNameCaps = uc($propName);
     $propName =~ s/_/-/g;
     my ${propEnum} = "PROP_${propNameCaps}";
-    push(@cBodyPriv, "#if ${conditionalString}\n") if $conditionalString;
-    push(@cBodyPriv, "    ${propEnum},\n");
-    push(@cBodyPriv, "#endif /* ${conditionalString} */\n") if $conditionalString;
+    push(@cBodyProperties, "#if ${conditionalString}\n") if $conditionalString;
+    push(@cBodyProperties, "    ${propEnum},\n");
+    push(@cBodyProperties, "#endif /* ${conditionalString} */\n") if $conditionalString;
 
     my $propType = $attribute->signature->type;
     my ${propGType} = decamelize($propType);
@@ -486,6 +527,14 @@ sub GenerateProperties {
     my $clsCaps = substr(ClassNameToGObjectType($className), 12);
     my $lowerCaseIfaceName = "webkit_dom_" . (FixUpDecamelizedName(decamelize($interfaceName)));
 
+    my $conditionGuardStart = "";
+    my $conditionGuardEnd = "";
+    my $conditionalString = GenerateConditionalString($dataNode);
+    if ($conditionalString) {
+        $conditionGuardStart = "#if ${conditionalString}";
+        $conditionGuardEnd = "#endif // ${conditionalString}";
+    }
+
     # Properties
     my $implContent = "";
 
@@ -494,7 +543,7 @@ sub GenerateProperties {
 enum {
     PROP_0,
 EOF
-    push(@cBodyPriv, $implContent);
+    push(@cBodyProperties, $implContent);
 
     my @readableProperties = GetReadableProperties($dataNode->attributes);
 
@@ -511,7 +560,7 @@ EOF
     ${className}* self = WEBKIT_DOM_${clsCaps}(object);
     $privFunction
 EOF
-    push(@txtGetProps, $txtGetProp);
+        push(@txtGetProps, $txtGetProp);
     }
 
     $txtGetProp = << "EOF";
@@ -548,7 +597,7 @@ EOF
         }
     }
 
-    push(@cBodyPriv, "};\n\n");
+    push(@cBodyProperties, "};\n\n");
 
     $txtGetProp = << "EOF";
     default:
@@ -572,9 +621,9 @@ EOF
     $" = "";
 
     $implContent = << "EOF";
-
 static void ${lowerCaseIfaceName}_finalize(GObject* object)
 {
+$conditionGuardStart
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -585,6 +634,7 @@ static void ${lowerCaseIfaceName}_finalize(GObject* object)
 
         dom_object->coreObject = NULL;
     }
+$conditionGuardEnd
 
     G_OBJECT_CLASS(${lowerCaseIfaceName}_parent_class)->finalize(object);
 }
@@ -596,7 +646,7 @@ static void ${lowerCaseIfaceName}_finalize(GObject* object)
 static void ${lowerCaseIfaceName}_constructed(GObject* object)
 {
 EOF
-    push(@cBodyPriv, $implContent);
+    push(@cBodyProperties, $implContent);
 
     $implContent = << "EOF";
 @txtInstallEventListeners
@@ -621,7 +671,7 @@ static void ${lowerCaseIfaceName}_init(${className}* request)
 }
 
 EOF
-    push(@cBodyPriv, $implContent);
+    push(@cBodyProperties, $implContent);
 }
 
 sub GenerateHeader {
@@ -725,7 +775,7 @@ sub addIncludeInBody {
 }
 
 sub GenerateFunction {
-    my ($object, $interfaceName, $function, $prefix) = @_;
+    my ($object, $interfaceName, $function, $prefix, $parentNode) = @_;
 
     my $decamelize = FixUpDecamelizedName(decamelize($interfaceName));
 
@@ -742,7 +792,11 @@ sub GenerateFunction {
     my $functionName = "webkit_dom_" . $decamelize . "_" . $prefix . decamelize($functionSigName);
     my $returnType = GetGlibTypeName($functionSigType);
     my $returnValueIsGDOMType = IsGDOMClassType($functionSigType);
+
     my $conditionalString = GenerateConditionalString($function->signature);
+    my $parentConditionalString = GenerateConditionalString($parentNode);
+    my @conditionalWarn = GenerateConditionalWarning($function->signature);
+    my @parentConditionalWarn = GenerateConditionalWarning($parentNode);
 
     my $functionSig = "${className}* self";
 
@@ -816,6 +870,7 @@ sub GenerateFunction {
     push(@hBody, "\n");
 
     push(@cBody, "$returnType\n$functionName($functionSig)\n{\n");
+    push(@cBody, "#if ${parentConditionalString}\n") if $parentConditionalString;
     push(@cBody, "#if ${conditionalString}\n") if $conditionalString;
 
     if ($returnType ne "void") {
@@ -1017,15 +1072,29 @@ EOF
     }
 
     if ($conditionalString) {
+        push(@cBody, "#else\n");
+        push(@cBody, @conditionalWarn) if scalar(@conditionalWarn);
+        if ($returnType ne "void") {
+            if ($codeGenerator->IsNonPointerType($functionSigType)) {
+                push(@cBody, "    return static_cast<${returnType}>(0);\n");
+            } else {
+                push(@cBody, "    return NULL;\n");
+            }
+        }
+        push(@cBody, "#endif /* ${conditionalString} */\n");
+    }
+
+    if ($parentConditionalString) {
+        push(@cBody, "#else\n");
+        push(@cBody, @parentConditionalWarn) if scalar(@parentConditionalWarn);
         if ($returnType ne "void") {
-            push(@cBody, "#else\n");
             if ($codeGenerator->IsNonPointerType($functionSigType)) {
                 push(@cBody, "    return static_cast<${returnType}>(0);\n");
             } else {
                 push(@cBody, "    return NULL;\n");
             }
         }
-        push(@cBody, "#endif /* ${conditionalString} */\n") if $conditionalString;
+        push(@cBody, "#endif /* ${parentConditionalString} */\n");
     }
 
     push(@cBody, "}\n\n");
@@ -1047,7 +1116,7 @@ sub GenerateFunctions {
     my ($object, $interfaceName, $dataNode) = @_;
 
     foreach my $function (@{$dataNode->functions}) {
-        $object->GenerateFunction($interfaceName, $function, "");
+        $object->GenerateFunction($interfaceName, $function, "", $dataNode);
     }
 
     TOP:
@@ -1080,7 +1149,7 @@ sub GenerateFunctions {
         my $function = new domFunction();
         $function->signature($attribute->signature);
         $function->raisesExceptions($attribute->getterExceptions);
-        $object->GenerateFunction($interfaceName, $function, "get_");
+        $object->GenerateFunction($interfaceName, $function, "get_", $dataNode);
 
         # FIXME: We are not generating setters for 'Replaceable'
         # attributes now, but we should somehow.
@@ -1108,7 +1177,7 @@ sub GenerateFunctions {
         
         $function->raisesExceptions($attribute->setterExceptions);
         
-        $object->GenerateFunction($interfaceName, $function, "set_");
+        $object->GenerateFunction($interfaceName, $function, "set_", $dataNode);
     }
 }
 
@@ -1127,8 +1196,10 @@ sub GenerateCFile {
     $implContent = << "EOF";
 ${defineTypeMacro}(${className}, ${lowerCaseIfaceName}, ${parentGObjType}${defineTypeInterfaceImplementation}
 
-namespace WebKit {
+EOF
+    push(@cBodyProperties, $implContent);
 
+    $implContent = << "EOF";
 WebCore::${interfaceName}* core(${className}* request)
 {
     g_return_val_if_fail(request, 0);
@@ -1139,15 +1210,13 @@ WebCore::${interfaceName}* core(${className}* request)
     return coreObject;
 }
 
-} // namespace WebKit
 EOF
-
     push(@cBodyPriv, $implContent);
+
     $object->GenerateProperties($interfaceName, $dataNode);
     $object->GenerateFunctions($interfaceName, $dataNode);
 
     my $wrapMethod = << "EOF";
-namespace WebKit {
 ${className}* wrap${interfaceName}(WebCore::${interfaceName}* coreObject)
 {
     g_return_val_if_fail(coreObject, 0);
@@ -1161,7 +1230,7 @@ ${className}* wrap${interfaceName}(WebCore::${interfaceName}* coreObject)
     return  WEBKIT_DOM_${clsCaps}(g_object_new(WEBKIT_TYPE_DOM_${clsCaps},
                                                "core-object", coreObject, NULL));
 }
-} // namespace WebKit
+
 EOF
     push(@cBodyPriv, $wrapMethod);
 }
@@ -1229,7 +1298,7 @@ static void webkit_dom_event_target_init(WebKitDOMEventTargetIface* iface)
 
 EOF
 
-    push(@cBody, $impl);
+    push(@cBodyProperties, $impl);
 
     $defineTypeMacro = "G_DEFINE_TYPE_WITH_CODE";
     $defineTypeInterfaceImplementation = ", G_IMPLEMENT_INTERFACE(WEBKIT_TYPE_DOM_EVENT_TARGET, webkit_dom_event_target_init))";
@@ -1242,11 +1311,6 @@ sub Generate {
     my $parentGObjType = GetParentGObjType($dataNode);
     my $interfaceName = $dataNode->name;
 
-    # Add the guard if the 'Conditional' extended attribute exists
-    my $conditionalString = GenerateConditionalString($dataNode);
-    push(@conditionGuardStart, "#if ${conditionalString}\n\n") if $conditionalString;
-    push(@conditionGuardEnd, "#endif /* ${conditionalString} */\n") if $conditionalString;
-
     # Add the default impl header template
     @cPrefix = split("\r", $licenceTemplate);
     push(@cPrefix, "\n");
@@ -1267,8 +1331,6 @@ sub Generate {
 
     if (!UsesManualKitImplementation($interfaceName)) {
         my $converter = << "EOF";
-namespace WebKit {
-    
 ${className}* kit(WebCore::$interfaceName* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -1278,11 +1340,9 @@ ${className}* kit(WebCore::$interfaceName* obj)
 
     return static_cast<${className}*>(DOMObjectCache::put(obj, WebKit::wrap${interfaceName}(obj)));
 }
-    
-} // namespace WebKit //
 
 EOF
-    push(@cBody, $converter);
+    push(@cBodyPriv, $converter);
     }
 
     $object->GenerateHeader($interfaceName, $parentClassName);
@@ -1301,6 +1361,9 @@ sub WriteData {
     my $guard = uc(decamelize($className)) . "_PRIVATE_H";
     my $parentClassName = GetParentClassName($dataNode);
 
+    # Add the guard if the 'Conditional' extended attribute exists
+    my $conditionalString = GenerateConditionalString($dataNode);
+
     open(PRIVHEADER, ">$filename") or die "Couldn't open file $filename for writing";
 
     print PRIVHEADER split("\r", $licenceTemplate);
@@ -1313,12 +1376,15 @@ sub WriteData {
 #include <glib-object.h>
 #include <webkit/${parentClassName}.h>
 #include "${interfaceName}.h"
+
 EOF
 
     print PRIVHEADER $text;
+    print PRIVHEADER "#if ${conditionalString}\n" if $conditionalString;
     print PRIVHEADER map { "#include \"$_\"\n" } sort keys(%hdrPropIncludes);
     print PRIVHEADER "\n" if keys(%hdrPropIncludes);
     $text = << "EOF";
+
 namespace WebKit {
     ${className} *
     wrap${interfaceName}(WebCore::${interfaceName} *coreObject);
@@ -1342,9 +1408,10 @@ EOF
     $text = << "EOF";
 } // namespace WebKit
 
-#endif /* ${guard} */
 EOF
     print PRIVHEADER $text;
+    print PRIVHEADER "#endif /* ${conditionalString} */\n\n" if $conditionalString;
+    print PRIVHEADER "#endif /* ${guard} */\n";
 
     close(PRIVHEADER);
 
@@ -1376,16 +1443,19 @@ EOF
     print IMPL @cPrefix;
     print IMPL "#include <glib-object.h>\n";
     print IMPL "#include \"config.h\"\n\n";
-    print IMPL @conditionGuardStart;
     print IMPL "#include <wtf/GetPtr.h>\n";
     print IMPL "#include <wtf/RefPtr.h>\n";
     print IMPL map { "#include \"$_\"\n" } sort keys(%implIncludes);
     print IMPL "\n" if keys(%implIncludes);
-    print IMPL @cBody;
+    print IMPL "#if ${conditionalString}\n\n" if $conditionalString;
 
-    print IMPL "\n";
+    print IMPL "namespace WebKit {\n\n";
     print IMPL @cBodyPriv;
-    print IMPL @conditionGuardEnd;
+    print IMPL "} // namespace WebKit\n\n";
+    print IMPL "#endif // ${conditionalString}\n\n" if $conditionalString;
+
+    print IMPL @cBodyProperties;
+    print IMPL @cBody;
 
     close(IMPL);
 
@@ -1397,6 +1467,7 @@ EOF
     @cPrefix = ();
     @cBody = ();
     @cBodyPriv = ();
+    @cBodyProperties = ();
 }
 
 sub GenerateInterface {
index 34033de625bc26841ea82f70066cf6a9dbc7e323..2b6d06f7cafa56991aacffa2423de585c275c4c7 100644 (file)
@@ -41,7 +41,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMFloat64Array* kit(WebCore::Float64Array* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -51,30 +51,6 @@ WebKitDOMFloat64Array* kit(WebCore::Float64Array* obj)
 
     return static_cast<WebKitDOMFloat64Array*>(DOMObjectCache::put(obj, WebKit::wrapFloat64Array(obj)));
 }
-    
-} // namespace WebKit //
-
-WebKitDOMInt32Array*
-webkit_dom_float64array_foo(WebKitDOMFloat64Array* self, WebKitDOMFloat32Array* array)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::Float64Array * item = WebKit::core(self);
-    g_return_val_if_fail(array, 0);
-    WebCore::Float32Array * converted_array = NULL;
-    if (array != NULL) {
-        converted_array = WebKit::core(array);
-        g_return_val_if_fail(converted_array, 0);
-    }
-    PassRefPtr<WebCore::Int32Array> g_res = WTF::getPtr(item->foo(converted_array));
-    WebKitDOMInt32Array* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-
-G_DEFINE_TYPE(WebKitDOMFloat64Array, webkit_dom_float64array, WEBKIT_TYPE_DOM_ARRAY_BUFFER_VIEW)
-
-namespace WebKit {
 
 WebCore::Float64Array* core(WebKitDOMFloat64Array* request)
 {
@@ -86,14 +62,31 @@ WebCore::Float64Array* core(WebKitDOMFloat64Array* request)
     return coreObject;
 }
 
+WebKitDOMFloat64Array* wrapFloat64Array(WebCore::Float64Array* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_FLOAT64ARRAY(g_object_new(WEBKIT_TYPE_DOM_FLOAT64ARRAY,
+                                               "core-object", coreObject, NULL));
+}
+
 } // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMFloat64Array, webkit_dom_float64array, WEBKIT_TYPE_DOM_ARRAY_BUFFER_VIEW)
+
 enum {
     PROP_0,
 };
 
-
 static void webkit_dom_float64array_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -105,6 +98,7 @@ static void webkit_dom_float64array_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_float64array_parent_class)->finalize(object);
 }
 
@@ -153,18 +147,20 @@ static void webkit_dom_float64array_init(WebKitDOMFloat64Array* request)
 {
 }
 
-namespace WebKit {
-WebKitDOMFloat64Array* wrapFloat64Array(WebCore::Float64Array* coreObject)
+WebKitDOMInt32Array*
+webkit_dom_float64array_foo(WebKitDOMFloat64Array* self, WebKitDOMFloat32Array* array)
 {
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
-
-    return  WEBKIT_DOM_FLOAT64ARRAY(g_object_new(WEBKIT_TYPE_DOM_FLOAT64ARRAY,
-                                               "core-object", coreObject, NULL));
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::Float64Array * item = WebKit::core(self);
+    g_return_val_if_fail(array, 0);
+    WebCore::Float32Array * converted_array = NULL;
+    if (array != NULL) {
+        converted_array = WebKit::core(array);
+        g_return_val_if_fail(converted_array, 0);
+    }
+    PassRefPtr<WebCore::Int32Array> g_res = WTF::getPtr(item->foo(converted_array));
+    WebKitDOMInt32Array* res = WebKit::kit(g_res.get());
+    return res;
 }
-} // namespace WebKit
+
index b0ec614f2bcf1ef9a60dd36b08ca3a3a98156e5e..c2a7f777054290fd9ba519ee87163af5de0745f8 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMArrayBufferView.h>
 #include "Float64Array.h"
+
+
 namespace WebKit {
     WebKitDOMFloat64Array *
     wrapFloat64Array(WebCore::Float64Array *coreObject);
index c93a92cd9f4f81d87806e9d5030f1c07ed05e301..71502c58fd9f3b36135031bcb3f72c9c284b01fd 100644 (file)
@@ -38,7 +38,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestActiveDOMObject* kit(WebCore::TestActiveDOMObject* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -48,49 +48,6 @@ WebKitDOMTestActiveDOMObject* kit(WebCore::TestActiveDOMObject* obj)
 
     return static_cast<WebKitDOMTestActiveDOMObject*>(DOMObjectCache::put(obj, WebKit::wrapTestActiveDOMObject(obj)));
 }
-    
-} // namespace WebKit //
-
-void
-webkit_dom_test_active_dom_object_exciting_function(WebKitDOMTestActiveDOMObject* self, WebKitDOMNode* next_child)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestActiveDOMObject * item = WebKit::core(self);
-    g_return_if_fail(next_child);
-    WebCore::Node * converted_next_child = NULL;
-    if (next_child != NULL) {
-        converted_next_child = WebKit::core(next_child);
-        g_return_if_fail(converted_next_child);
-    }
-    item->excitingFunction(converted_next_child);
-}
-
-void
-webkit_dom_test_active_dom_object_post_message(WebKitDOMTestActiveDOMObject* self, const gchar* message)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestActiveDOMObject * item = WebKit::core(self);
-    g_return_if_fail(message);
-    WTF::String converted_message = WTF::String::fromUTF8(message);
-    item->postMessage(converted_message);
-}
-
-glong
-webkit_dom_test_active_dom_object_get_exciting_attr(WebKitDOMTestActiveDOMObject* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestActiveDOMObject * item = WebKit::core(self);
-    glong res = item->excitingAttr();
-    return res;
-}
-
-
-G_DEFINE_TYPE(WebKitDOMTestActiveDOMObject, webkit_dom_test_active_dom_object, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
 
 WebCore::TestActiveDOMObject* core(WebKitDOMTestActiveDOMObject* request)
 {
@@ -102,15 +59,32 @@ WebCore::TestActiveDOMObject* core(WebKitDOMTestActiveDOMObject* request)
     return coreObject;
 }
 
+WebKitDOMTestActiveDOMObject* wrapTestActiveDOMObject(WebCore::TestActiveDOMObject* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_ACTIVE_DOM_OBJECT(g_object_new(WEBKIT_TYPE_DOM_TEST_ACTIVE_DOM_OBJECT,
+                                               "core-object", coreObject, NULL));
+}
+
 } // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMTestActiveDOMObject, webkit_dom_test_active_dom_object, WEBKIT_TYPE_DOM_OBJECT)
+
 enum {
     PROP_0,
     PROP_EXCITING_ATTR,
 };
 
-
 static void webkit_dom_test_active_dom_object_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -122,6 +96,7 @@ static void webkit_dom_test_active_dom_object_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_test_active_dom_object_parent_class)->finalize(object);
 }
 
@@ -186,18 +161,39 @@ static void webkit_dom_test_active_dom_object_init(WebKitDOMTestActiveDOMObject*
 {
 }
 
-namespace WebKit {
-WebKitDOMTestActiveDOMObject* wrapTestActiveDOMObject(WebCore::TestActiveDOMObject* coreObject)
+void
+webkit_dom_test_active_dom_object_exciting_function(WebKitDOMTestActiveDOMObject* self, WebKitDOMNode* next_child)
 {
-    g_return_val_if_fail(coreObject, 0);
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestActiveDOMObject * item = WebKit::core(self);
+    g_return_if_fail(next_child);
+    WebCore::Node * converted_next_child = NULL;
+    if (next_child != NULL) {
+        converted_next_child = WebKit::core(next_child);
+        g_return_if_fail(converted_next_child);
+    }
+    item->excitingFunction(converted_next_child);
+}
 
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
+void
+webkit_dom_test_active_dom_object_post_message(WebKitDOMTestActiveDOMObject* self, const gchar* message)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestActiveDOMObject * item = WebKit::core(self);
+    g_return_if_fail(message);
+    WTF::String converted_message = WTF::String::fromUTF8(message);
+    item->postMessage(converted_message);
+}
 
-    return  WEBKIT_DOM_TEST_ACTIVE_DOM_OBJECT(g_object_new(WEBKIT_TYPE_DOM_TEST_ACTIVE_DOM_OBJECT,
-                                               "core-object", coreObject, NULL));
+glong
+webkit_dom_test_active_dom_object_get_exciting_attr(WebKitDOMTestActiveDOMObject* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestActiveDOMObject * item = WebKit::core(self);
+    glong res = item->excitingAttr();
+    return res;
 }
-} // namespace WebKit
+
index f28c7f9d1e006bbaab2f718bcf664159040f70d7..25b54558d0cebbf8b1b59a0c9d72aceccba1276d 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestActiveDOMObject.h"
+
+
 namespace WebKit {
     WebKitDOMTestActiveDOMObject *
     wrapTestActiveDOMObject(WebCore::TestActiveDOMObject *coreObject);
index db7bc5dbcc01f0076055d48cd49d22563ee0c1df..417fc49ff591c0a55975e3e01f256dd96873c47e 100644 (file)
@@ -21,8 +21,6 @@
 #include <glib-object.h>
 #include "config.h"
 
-#if ENABLE(SQL_DATABASE)
-
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 #include "DOMObjectCache.h"
 #include "webkitglobalsprivate.h"
 #include "webkitmarshal.h"
 
+#if ENABLE(SQL_DATABASE)
+
 namespace WebKit {
-    
+
 WebKitDOMTestCallback* kit(WebCore::TestCallback* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -56,22 +56,123 @@ WebKitDOMTestCallback* kit(WebCore::TestCallback* obj)
 
     return static_cast<WebKitDOMTestCallback*>(DOMObjectCache::put(obj, WebKit::wrapTestCallback(obj)));
 }
+
+WebCore::TestCallback* core(WebKitDOMTestCallback* request)
+{
+    g_return_val_if_fail(request, 0);
+
+    WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback*>(WEBKIT_DOM_OBJECT(request)->coreObject);
+    g_return_val_if_fail(coreObject, 0);
+
+    return coreObject;
+}
+
+WebKitDOMTestCallback* wrapTestCallback(WebCore::TestCallback* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_CALLBACK(g_object_new(WEBKIT_TYPE_DOM_TEST_CALLBACK,
+                                               "core-object", coreObject, NULL));
+}
+
+} // namespace WebKit
+
+#endif // ENABLE(SQL_DATABASE)
+
+G_DEFINE_TYPE(WebKitDOMTestCallback, webkit_dom_test_callback, WEBKIT_TYPE_DOM_OBJECT)
+
+enum {
+    PROP_0,
+};
+
+static void webkit_dom_test_callback_finalize(GObject* object)
+{
+#if ENABLE(SQL_DATABASE)
+    WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
-} // namespace WebKit //
+    if (dom_object->coreObject) {
+        WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback *>(dom_object->coreObject);
+
+        WebKit::DOMObjectCache::forget(coreObject);
+        coreObject->deref();
+
+        dom_object->coreObject = NULL;
+    }
+#endif // ENABLE(SQL_DATABASE)
+
+    G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->finalize(object);
+}
+
+static void webkit_dom_test_callback_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
+{
+    WebCore::JSMainThreadNullState state;
+    switch (prop_id) {
+    default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
+        break;
+    }
+}
+
+
+static void webkit_dom_test_callback_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
+{
+    WebCore::JSMainThreadNullState state;
+    switch (prop_id) {
+    default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
+        break;
+    }
+}
+
+
+static void webkit_dom_test_callback_constructed(GObject* object)
+{
+
+    if (G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->constructed)
+        G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->constructed(object);
+}
+
+static void webkit_dom_test_callback_class_init(WebKitDOMTestCallbackClass* requestClass)
+{
+    GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
+    gobjectClass->finalize = webkit_dom_test_callback_finalize;
+    gobjectClass->set_property = webkit_dom_test_callback_set_property;
+    gobjectClass->get_property = webkit_dom_test_callback_get_property;
+    gobjectClass->constructed = webkit_dom_test_callback_constructed;
+
+
+
+}
+
+static void webkit_dom_test_callback_init(WebKitDOMTestCallback* request)
+{
+}
 
 gboolean
 webkit_dom_test_callback_callback_with_no_param(WebKitDOMTestCallback* self)
 {
+#if ENABLE(SQL_DATABASE)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestCallback * item = WebKit::core(self);
     gboolean res = item->callbackWithNoParam();
     return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
+    return static_cast<gboolean>(0);
+#endif /* ENABLE(SQL_DATABASE) */
 }
 
 gboolean
 webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1* class1param)
 {
+#if ENABLE(SQL_DATABASE)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestCallback * item = WebKit::core(self);
@@ -83,11 +184,16 @@ webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self,
     }
     gboolean res = item->callbackWithClass1Param(converted_class1param);
     return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
+    return static_cast<gboolean>(0);
+#endif /* ENABLE(SQL_DATABASE) */
 }
 
 gboolean
 webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2* class2param, const gchar* str_arg)
 {
+#if ENABLE(SQL_DATABASE)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestCallback * item = WebKit::core(self);
@@ -101,11 +207,16 @@ webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self,
     WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
     gboolean res = item->callbackWithClass2Param(converted_class2param, converted_str_arg);
     return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
+    return static_cast<gboolean>(0);
+#endif /* ENABLE(SQL_DATABASE) */
 }
 
 glong
 webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallback* self, WebKitDOMClass3* class3param)
 {
+#if ENABLE(SQL_DATABASE)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestCallback * item = WebKit::core(self);
@@ -117,11 +228,16 @@ webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallbac
     }
     glong res = item->callbackWithNonBoolReturnType(converted_class3param);
     return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
+    return static_cast<glong>(0);
+#endif /* ENABLE(SQL_DATABASE) */
 }
 
 gboolean
 webkit_dom_test_callback_callback_with_string_list(WebKitDOMTestCallback* self, WebKitDOMDOMStringList* list_param)
 {
+#if ENABLE(SQL_DATABASE)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestCallback * item = WebKit::core(self);
@@ -133,113 +249,24 @@ webkit_dom_test_callback_callback_with_string_list(WebKitDOMTestCallback* self,
     }
     gboolean res = item->callbackWithStringList(converted_list_param);
     return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
+    return static_cast<gboolean>(0);
+#endif /* ENABLE(SQL_DATABASE) */
 }
 
 gboolean
 webkit_dom_test_callback_callback_with_boolean(WebKitDOMTestCallback* self, gboolean bool_param)
 {
+#if ENABLE(SQL_DATABASE)
     g_return_val_if_fail(self, 0);
     WebCore::JSMainThreadNullState state;
     WebCore::TestCallback * item = WebKit::core(self);
     gboolean res = item->callbackWithBoolean(bool_param);
     return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
+    return static_cast<gboolean>(0);
+#endif /* ENABLE(SQL_DATABASE) */
 }
 
-
-G_DEFINE_TYPE(WebKitDOMTestCallback, webkit_dom_test_callback, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
-
-WebCore::TestCallback* core(WebKitDOMTestCallback* request)
-{
-    g_return_val_if_fail(request, 0);
-
-    WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback*>(WEBKIT_DOM_OBJECT(request)->coreObject);
-    g_return_val_if_fail(coreObject, 0);
-
-    return coreObject;
-}
-
-} // namespace WebKit
-enum {
-    PROP_0,
-};
-
-
-static void webkit_dom_test_callback_finalize(GObject* object)
-{
-    WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
-    
-    if (dom_object->coreObject) {
-        WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback *>(dom_object->coreObject);
-
-        WebKit::DOMObjectCache::forget(coreObject);
-        coreObject->deref();
-
-        dom_object->coreObject = NULL;
-    }
-
-    G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->finalize(object);
-}
-
-static void webkit_dom_test_callback_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
-    WebCore::JSMainThreadNullState state;
-    switch (prop_id) {
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
-        break;
-    }
-}
-
-
-static void webkit_dom_test_callback_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
-{
-    WebCore::JSMainThreadNullState state;
-    switch (prop_id) {
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
-        break;
-    }
-}
-
-
-static void webkit_dom_test_callback_constructed(GObject* object)
-{
-
-    if (G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->constructed)
-        G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->constructed(object);
-}
-
-static void webkit_dom_test_callback_class_init(WebKitDOMTestCallbackClass* requestClass)
-{
-    GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
-    gobjectClass->finalize = webkit_dom_test_callback_finalize;
-    gobjectClass->set_property = webkit_dom_test_callback_set_property;
-    gobjectClass->get_property = webkit_dom_test_callback_get_property;
-    gobjectClass->constructed = webkit_dom_test_callback_constructed;
-
-
-
-}
-
-static void webkit_dom_test_callback_init(WebKitDOMTestCallback* request)
-{
-}
-
-namespace WebKit {
-WebKitDOMTestCallback* wrapTestCallback(WebCore::TestCallback* coreObject)
-{
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
-
-    return  WEBKIT_DOM_TEST_CALLBACK(g_object_new(WEBKIT_TYPE_DOM_TEST_CALLBACK,
-                                               "core-object", coreObject, NULL));
-}
-} // namespace WebKit
-#endif /* ENABLE(SQL_DATABASE) */
index 3ad6ff4441a9c04b6ca5020a47b5df30c96a507e..897d664e599740f296163f03c2bb4115e90a80c7 100644 (file)
@@ -24,6 +24,9 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestCallback.h"
+
+#if ENABLE(SQL_DATABASE)
+
 namespace WebKit {
     WebKitDOMTestCallback *
     wrapTestCallback(WebCore::TestCallback *coreObject);
@@ -36,4 +39,6 @@ namespace WebKit {
 
 } // namespace WebKit
 
+#endif /* ENABLE(SQL_DATABASE) */
+
 #endif /* WEB_KIT_DOM_TEST_CALLBACK_PRIVATE_H */
index ea648f5646715a4866d3d3078632681cf181bb34..1fb627c404704a934f43a8bc193cc58e6d52e510 100644 (file)
@@ -36,7 +36,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestCustomNamedGetter* kit(WebCore::TestCustomNamedGetter* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -46,24 +46,6 @@ WebKitDOMTestCustomNamedGetter* kit(WebCore::TestCustomNamedGetter* obj)
 
     return static_cast<WebKitDOMTestCustomNamedGetter*>(DOMObjectCache::put(obj, WebKit::wrapTestCustomNamedGetter(obj)));
 }
-    
-} // namespace WebKit //
-
-void
-webkit_dom_test_custom_named_getter_another_function(WebKitDOMTestCustomNamedGetter* self, const gchar* str)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestCustomNamedGetter * item = WebKit::core(self);
-    g_return_if_fail(str);
-    WTF::String converted_str = WTF::String::fromUTF8(str);
-    item->anotherFunction(converted_str);
-}
-
-
-G_DEFINE_TYPE(WebKitDOMTestCustomNamedGetter, webkit_dom_test_custom_named_getter, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
 
 WebCore::TestCustomNamedGetter* core(WebKitDOMTestCustomNamedGetter* request)
 {
@@ -75,14 +57,31 @@ WebCore::TestCustomNamedGetter* core(WebKitDOMTestCustomNamedGetter* request)
     return coreObject;
 }
 
+WebKitDOMTestCustomNamedGetter* wrapTestCustomNamedGetter(WebCore::TestCustomNamedGetter* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_CUSTOM_NAMED_GETTER(g_object_new(WEBKIT_TYPE_DOM_TEST_CUSTOM_NAMED_GETTER,
+                                               "core-object", coreObject, NULL));
+}
+
 } // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMTestCustomNamedGetter, webkit_dom_test_custom_named_getter, WEBKIT_TYPE_DOM_OBJECT)
+
 enum {
     PROP_0,
 };
 
-
 static void webkit_dom_test_custom_named_getter_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -94,6 +93,7 @@ static void webkit_dom_test_custom_named_getter_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_test_custom_named_getter_parent_class)->finalize(object);
 }
 
@@ -142,18 +142,14 @@ static void webkit_dom_test_custom_named_getter_init(WebKitDOMTestCustomNamedGet
 {
 }
 
-namespace WebKit {
-WebKitDOMTestCustomNamedGetter* wrapTestCustomNamedGetter(WebCore::TestCustomNamedGetter* coreObject)
+void
+webkit_dom_test_custom_named_getter_another_function(WebKitDOMTestCustomNamedGetter* self, const gchar* str)
 {
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
-
-    return  WEBKIT_DOM_TEST_CUSTOM_NAMED_GETTER(g_object_new(WEBKIT_TYPE_DOM_TEST_CUSTOM_NAMED_GETTER,
-                                               "core-object", coreObject, NULL));
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestCustomNamedGetter * item = WebKit::core(self);
+    g_return_if_fail(str);
+    WTF::String converted_str = WTF::String::fromUTF8(str);
+    item->anotherFunction(converted_str);
 }
-} // namespace WebKit
+
index fedd14afc122ad70060fd4e0f724ef45e115aada..54835a43051e35212c782f6e96fc85e561a8afd0 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestCustomNamedGetter.h"
+
+
 namespace WebKit {
     WebKitDOMTestCustomNamedGetter *
     wrapTestCustomNamedGetter(WebCore::TestCustomNamedGetter *coreObject);
index 3788f184464840b22f33857d0191758fd666a0a7..7f62362a67582f0da0b59c032a606d3d40e9cbdd 100644 (file)
@@ -36,7 +36,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestEventConstructor* kit(WebCore::TestEventConstructor* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -46,33 +46,6 @@ WebKitDOMTestEventConstructor* kit(WebCore::TestEventConstructor* obj)
 
     return static_cast<WebKitDOMTestEventConstructor*>(DOMObjectCache::put(obj, WebKit::wrapTestEventConstructor(obj)));
 }
-    
-} // namespace WebKit //
-
-gchar*
-webkit_dom_test_event_constructor_get_attr1(WebKitDOMTestEventConstructor* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestEventConstructor * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->attr1());
-    return res;
-}
-
-gchar*
-webkit_dom_test_event_constructor_get_attr2(WebKitDOMTestEventConstructor* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestEventConstructor * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->attr2());
-    return res;
-}
-
-
-G_DEFINE_TYPE(WebKitDOMTestEventConstructor, webkit_dom_test_event_constructor, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
 
 WebCore::TestEventConstructor* core(WebKitDOMTestEventConstructor* request)
 {
@@ -84,16 +57,33 @@ WebCore::TestEventConstructor* core(WebKitDOMTestEventConstructor* request)
     return coreObject;
 }
 
+WebKitDOMTestEventConstructor* wrapTestEventConstructor(WebCore::TestEventConstructor* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_EVENT_CONSTRUCTOR(g_object_new(WEBKIT_TYPE_DOM_TEST_EVENT_CONSTRUCTOR,
+                                               "core-object", coreObject, NULL));
+}
+
 } // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMTestEventConstructor, webkit_dom_test_event_constructor, WEBKIT_TYPE_DOM_OBJECT)
+
 enum {
     PROP_0,
     PROP_ATTR1,
     PROP_ATTR2,
 };
 
-
 static void webkit_dom_test_event_constructor_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -105,6 +95,7 @@ static void webkit_dom_test_event_constructor_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_test_event_constructor_parent_class)->finalize(object);
 }
 
@@ -179,18 +170,23 @@ static void webkit_dom_test_event_constructor_init(WebKitDOMTestEventConstructor
 {
 }
 
-namespace WebKit {
-WebKitDOMTestEventConstructor* wrapTestEventConstructor(WebCore::TestEventConstructor* coreObject)
+gchar*
+webkit_dom_test_event_constructor_get_attr1(WebKitDOMTestEventConstructor* self)
 {
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestEventConstructor * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->attr1());
+    return res;
+}
 
-    return  WEBKIT_DOM_TEST_EVENT_CONSTRUCTOR(g_object_new(WEBKIT_TYPE_DOM_TEST_EVENT_CONSTRUCTOR,
-                                               "core-object", coreObject, NULL));
+gchar*
+webkit_dom_test_event_constructor_get_attr2(WebKitDOMTestEventConstructor* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestEventConstructor * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->attr2());
+    return res;
 }
-} // namespace WebKit
+
index bc0e8528900e37fc6b3635dcd7cf1264bfe1fdd5..250abc530a9d87af8bba61571494104ef743a826 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestEventConstructor.h"
+
+
 namespace WebKit {
     WebKitDOMTestEventConstructor *
     wrapTestEventConstructor(WebCore::TestEventConstructor *coreObject);
index c6ad86e434d9c1b244512500a7b47be3b46290a0..1a2e5e3f5849f7f99932ab04dbfff5ce21b39630 100644 (file)
@@ -44,7 +44,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestEventTarget* kit(WebCore::TestEventTarget* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -54,8 +54,32 @@ WebKitDOMTestEventTarget* kit(WebCore::TestEventTarget* obj)
 
     return static_cast<WebKitDOMTestEventTarget*>(DOMObjectCache::put(obj, WebKit::wrapTestEventTarget(obj)));
 }
-    
-} // namespace WebKit //
+
+WebCore::TestEventTarget* core(WebKitDOMTestEventTarget* request)
+{
+    g_return_val_if_fail(request, 0);
+
+    WebCore::TestEventTarget* coreObject = static_cast<WebCore::TestEventTarget*>(WEBKIT_DOM_OBJECT(request)->coreObject);
+    g_return_val_if_fail(coreObject, 0);
+
+    return coreObject;
+}
+
+WebKitDOMTestEventTarget* wrapTestEventTarget(WebCore::TestEventTarget* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_EVENT_TARGET(g_object_new(WEBKIT_TYPE_DOM_TEST_EVENT_TARGET,
+                                               "core-object", coreObject, NULL));
+}
+
+} // namespace WebKit
 
 static void webkit_dom_test_event_target_dispatch_event(WebKitDOMEventTarget* target, WebKitDOMEvent* event, GError** error)
 {
@@ -89,61 +113,15 @@ static void webkit_dom_event_target_init(WebKitDOMEventTargetIface* iface)
     iface->remove_event_listener = webkit_dom_test_event_target_remove_event_listener;
 }
 
-WebKitDOMNode*
-webkit_dom_test_event_target_item(WebKitDOMTestEventTarget* self, gulong index)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestEventTarget * item = WebKit::core(self);
-    PassRefPtr<WebCore::Node> g_res = WTF::getPtr(item->item(index));
-    WebKitDOMNode* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-gboolean
-webkit_dom_test_event_target_dispatch_event(WebKitDOMTestEventTarget* self, WebKitDOMEvent* evt, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestEventTarget * item = WebKit::core(self);
-    g_return_val_if_fail(evt, 0);
-    WebCore::Event * converted_evt = NULL;
-    if (evt != NULL) {
-        converted_evt = WebKit::core(evt);
-        g_return_val_if_fail(converted_evt, 0);
-    }
-    WebCore::ExceptionCode ec = 0;
-    gboolean res = item->dispatchEvent(converted_evt, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    return res;
-}
-
-
 G_DEFINE_TYPE_WITH_CODE(WebKitDOMTestEventTarget, webkit_dom_test_event_target, WEBKIT_TYPE_DOM_OBJECT, G_IMPLEMENT_INTERFACE(WEBKIT_TYPE_DOM_EVENT_TARGET, webkit_dom_event_target_init))
 
-namespace WebKit {
-
-WebCore::TestEventTarget* core(WebKitDOMTestEventTarget* request)
-{
-    g_return_val_if_fail(request, 0);
-
-    WebCore::TestEventTarget* coreObject = static_cast<WebCore::TestEventTarget*>(WEBKIT_DOM_OBJECT(request)->coreObject);
-    g_return_val_if_fail(coreObject, 0);
-
-    return coreObject;
-}
-
-} // namespace WebKit
 enum {
     PROP_0,
 };
 
-
 static void webkit_dom_test_event_target_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -155,6 +133,7 @@ static void webkit_dom_test_event_target_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_test_event_target_parent_class)->finalize(object);
 }
 
@@ -203,18 +182,35 @@ static void webkit_dom_test_event_target_init(WebKitDOMTestEventTarget* request)
 {
 }
 
-namespace WebKit {
-WebKitDOMTestEventTarget* wrapTestEventTarget(WebCore::TestEventTarget* coreObject)
+WebKitDOMNode*
+webkit_dom_test_event_target_item(WebKitDOMTestEventTarget* self, gulong index)
 {
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestEventTarget * item = WebKit::core(self);
+    PassRefPtr<WebCore::Node> g_res = WTF::getPtr(item->item(index));
+    WebKitDOMNode* res = WebKit::kit(g_res.get());
+    return res;
+}
 
-    return  WEBKIT_DOM_TEST_EVENT_TARGET(g_object_new(WEBKIT_TYPE_DOM_TEST_EVENT_TARGET,
-                                               "core-object", coreObject, NULL));
+gboolean
+webkit_dom_test_event_target_dispatch_event(WebKitDOMTestEventTarget* self, WebKitDOMEvent* evt, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestEventTarget * item = WebKit::core(self);
+    g_return_val_if_fail(evt, 0);
+    WebCore::Event * converted_evt = NULL;
+    if (evt != NULL) {
+        converted_evt = WebKit::core(evt);
+        g_return_val_if_fail(converted_evt, 0);
+    }
+    WebCore::ExceptionCode ec = 0;
+    gboolean res = item->dispatchEvent(converted_evt, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    return res;
 }
-} // namespace WebKit
+
index e5616e3dfd6578cb8fc74da40a5512bce3b1004a..0908ce15104a3864bddd45a6efff4d0e057aa586 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestEventTarget.h"
+
+
 namespace WebKit {
     WebKitDOMTestEventTarget *
     wrapTestEventTarget(WebCore::TestEventTarget *coreObject);
index e6b5ac23c7f1dda3da34740d446b05c7dcec89b2..082f8f2ea8bf3e14713d5bb22316ff1178a82067 100644 (file)
@@ -21,8 +21,6 @@
 #include <glib-object.h>
 #include "config.h"
 
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 #include "DOMObjectCache.h"
 #include "webkitglobalsprivate.h"
 #include "webkitmarshal.h"
 
+#if ENABLE(Condition1) || ENABLE(Condition2)
+
 namespace WebKit {
-    
+
 WebKitDOMTestInterface* kit(WebCore::TestInterface* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -55,148 +55,37 @@ WebKitDOMTestInterface* kit(WebCore::TestInterface* obj)
 
     return static_cast<WebKitDOMTestInterface*>(DOMObjectCache::put(obj, WebKit::wrapTestInterface(obj)));
 }
-    
-} // namespace WebKit //
-
-void
-webkit_dom_test_interface_supplemental_method1(WebKitDOMTestInterface* self)
-{
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    WebCore::TestSupplemental::supplementalMethod1(item);
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
-}
 
-WebKitDOMTestObj*
-webkit_dom_test_interface_supplemental_method2(WebKitDOMTestInterface* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error)
+WebCore::TestInterface* core(WebKitDOMTestInterface* request)
 {
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    g_return_val_if_fail(str_arg, 0);
-    g_return_val_if_fail(obj_arg, 0);
-    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
-    WebCore::TestObj * converted_obj_arg = NULL;
-    if (obj_arg != NULL) {
-        converted_obj_arg = WebKit::core(obj_arg);
-        g_return_val_if_fail(converted_obj_arg, 0);
-    }
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(WebCore::TestSupplemental::supplementalMethod2(item, converted_str_arg, converted_obj_arg, ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-#else
-    return NULL;
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
-}
+    g_return_val_if_fail(request, 0);
 
-void
-webkit_dom_test_interface_supplemental_method4(WebKitDOMTestInterface* self)
-{
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    WebCore::TestSupplemental::supplementalMethod4(item);
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
-}
+    WebCore::TestInterface* coreObject = static_cast<WebCore::TestInterface*>(WEBKIT_DOM_OBJECT(request)->coreObject);
+    g_return_val_if_fail(coreObject, 0);
 
-gchar*
-webkit_dom_test_interface_get_supplemental_str1(WebKitDOMTestInterface* self)
-{
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(WebCore::TestSupplemental::supplementalStr1(item));
-    return res;
-#else
-    return NULL;
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+    return coreObject;
 }
 
-gchar*
-webkit_dom_test_interface_get_supplemental_str2(WebKitDOMTestInterface* self)
+WebKitDOMTestInterface* wrapTestInterface(WebCore::TestInterface* coreObject)
 {
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(WebCore::TestSupplemental::supplementalStr2(item));
-    return res;
-#else
-    return NULL;
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
-}
+    g_return_val_if_fail(coreObject, 0);
 
-void
-webkit_dom_test_interface_set_supplemental_str2(WebKitDOMTestInterface* self, const gchar* value)
-{
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    WebCore::TestSupplemental::setSupplementalStr2(item, converted_value);
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
-}
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
 
-WebKitDOMNode*
-webkit_dom_test_interface_get_supplemental_node(WebKitDOMTestInterface* self)
-{
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    PassRefPtr<WebCore::Node> g_res = WTF::getPtr(WebCore::TestSupplemental::supplementalNode(item));
-    WebKitDOMNode* res = WebKit::kit(g_res.get());
-    return res;
-#else
-    return NULL;
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+    return  WEBKIT_DOM_TEST_INTERFACE(g_object_new(WEBKIT_TYPE_DOM_TEST_INTERFACE,
+                                               "core-object", coreObject, NULL));
 }
 
-void
-webkit_dom_test_interface_set_supplemental_node(WebKitDOMTestInterface* self, WebKitDOMNode* value)
-{
-#if ENABLE(Condition11) || ENABLE(Condition12)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestInterface * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::Node * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    WebCore::TestSupplemental::setSupplementalNode(item, converted_value);
-#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
-}
+} // namespace WebKit
 
+#endif // ENABLE(Condition1) || ENABLE(Condition2)
 
 G_DEFINE_TYPE(WebKitDOMTestInterface, webkit_dom_test_interface, WEBKIT_TYPE_DOM_OBJECT)
 
-namespace WebKit {
-
-WebCore::TestInterface* core(WebKitDOMTestInterface* request)
-{
-    g_return_val_if_fail(request, 0);
-
-    WebCore::TestInterface* coreObject = static_cast<WebCore::TestInterface*>(WEBKIT_DOM_OBJECT(request)->coreObject);
-    g_return_val_if_fail(coreObject, 0);
-
-    return coreObject;
-}
-
-} // namespace WebKit
 enum {
     PROP_0,
 #if ENABLE(Condition11) || ENABLE(Condition12)
@@ -210,9 +99,9 @@ enum {
 #endif /* ENABLE(Condition11) || ENABLE(Condition12) */
 };
 
-
 static void webkit_dom_test_interface_finalize(GObject* object)
 {
+#if ENABLE(Condition1) || ENABLE(Condition2)
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -223,6 +112,7 @@ static void webkit_dom_test_interface_finalize(GObject* object)
 
         dom_object->coreObject = NULL;
     }
+#endif // ENABLE(Condition1) || ENABLE(Condition2)
 
     G_OBJECT_CLASS(webkit_dom_test_interface_parent_class)->finalize(object);
 }
@@ -332,19 +222,190 @@ static void webkit_dom_test_interface_init(WebKitDOMTestInterface* request)
 {
 }
 
-namespace WebKit {
-WebKitDOMTestInterface* wrapTestInterface(WebCore::TestInterface* coreObject)
+void
+webkit_dom_test_interface_supplemental_method1(WebKitDOMTestInterface* self)
 {
-    g_return_val_if_fail(coreObject, 0);
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    WebCore::TestSupplemental::supplementalMethod1(item);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
 
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
+WebKitDOMTestObj*
+webkit_dom_test_interface_supplemental_method2(WebKitDOMTestInterface* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    g_return_val_if_fail(str_arg, 0);
+    g_return_val_if_fail(obj_arg, 0);
+    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
+    WebCore::TestObj * converted_obj_arg = NULL;
+    if (obj_arg != NULL) {
+        converted_obj_arg = WebKit::core(obj_arg);
+        g_return_val_if_fail(converted_obj_arg, 0);
+    }
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(WebCore::TestSupplemental::supplementalMethod2(item, converted_str_arg, converted_obj_arg, ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+    return NULL;
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
 
-    return  WEBKIT_DOM_TEST_INTERFACE(g_object_new(WEBKIT_TYPE_DOM_TEST_INTERFACE,
-                                               "core-object", coreObject, NULL));
+void
+webkit_dom_test_interface_supplemental_method4(WebKitDOMTestInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    WebCore::TestSupplemental::supplementalMethod4(item);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
 }
-} // namespace WebKit
+
+gchar*
+webkit_dom_test_interface_get_supplemental_str1(WebKitDOMTestInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(WebCore::TestSupplemental::supplementalStr1(item));
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+    return NULL;
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
 #endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+gchar*
+webkit_dom_test_interface_get_supplemental_str2(WebKitDOMTestInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(WebCore::TestSupplemental::supplementalStr2(item));
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+    return NULL;
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+void
+webkit_dom_test_interface_set_supplemental_str2(WebKitDOMTestInterface* self, const gchar* value)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    WebCore::TestSupplemental::setSupplementalStr2(item, converted_value);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+WebKitDOMNode*
+webkit_dom_test_interface_get_supplemental_node(WebKitDOMTestInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    PassRefPtr<WebCore::Node> g_res = WTF::getPtr(WebCore::TestSupplemental::supplementalNode(item));
+    WebKitDOMNode* res = WebKit::kit(g_res.get());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+    return NULL;
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+void
+webkit_dom_test_interface_set_supplemental_node(WebKitDOMTestInterface* self, WebKitDOMNode* value)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+#if ENABLE(Condition11) || ENABLE(Condition12)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestInterface * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::Node * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    WebCore::TestSupplemental::setSupplementalNode(item, converted_value);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition11")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition12")
+#endif /* ENABLE(Condition11) || ENABLE(Condition12) */
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
index 0a4e3a207c6066ceb0f20462f44cd140b1cbe109..1020e02e7fd4b43ba6c34353835cf923e09cb992 100644 (file)
@@ -24,6 +24,9 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestInterface.h"
+
+#if ENABLE(Condition1) || ENABLE(Condition2)
+
 namespace WebKit {
     WebKitDOMTestInterface *
     wrapTestInterface(WebCore::TestInterface *coreObject);
@@ -36,4 +39,6 @@ namespace WebKit {
 
 } // namespace WebKit
 
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+
 #endif /* WEB_KIT_DOM_TEST_INTERFACE_PRIVATE_H */
index 5946ec0c00ce73ef5d3015cd978d3122dddae0a0..b516863c613c19481e1d5c55901daf85665f0a14 100644 (file)
@@ -36,7 +36,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestMediaQueryListListener* kit(WebCore::TestMediaQueryListListener* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -46,13 +46,6 @@ WebKitDOMTestMediaQueryListListener* kit(WebCore::TestMediaQueryListListener* ob
 
     return static_cast<WebKitDOMTestMediaQueryListListener*>(DOMObjectCache::put(obj, WebKit::wrapTestMediaQueryListListener(obj)));
 }
-    
-} // namespace WebKit //
-
-
-G_DEFINE_TYPE(WebKitDOMTestMediaQueryListListener, webkit_dom_test_media_query_list_listener, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
 
 WebCore::TestMediaQueryListListener* core(WebKitDOMTestMediaQueryListListener* request)
 {
@@ -64,14 +57,31 @@ WebCore::TestMediaQueryListListener* core(WebKitDOMTestMediaQueryListListener* r
     return coreObject;
 }
 
+WebKitDOMTestMediaQueryListListener* wrapTestMediaQueryListListener(WebCore::TestMediaQueryListListener* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER(g_object_new(WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER,
+                                               "core-object", coreObject, NULL));
+}
+
 } // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMTestMediaQueryListListener, webkit_dom_test_media_query_list_listener, WEBKIT_TYPE_DOM_OBJECT)
+
 enum {
     PROP_0,
 };
 
-
 static void webkit_dom_test_media_query_list_listener_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -83,6 +93,7 @@ static void webkit_dom_test_media_query_list_listener_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_test_media_query_list_listener_parent_class)->finalize(object);
 }
 
@@ -131,18 +142,3 @@ static void webkit_dom_test_media_query_list_listener_init(WebKitDOMTestMediaQue
 {
 }
 
-namespace WebKit {
-WebKitDOMTestMediaQueryListListener* wrapTestMediaQueryListListener(WebCore::TestMediaQueryListListener* coreObject)
-{
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
-
-    return  WEBKIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER(g_object_new(WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER,
-                                               "core-object", coreObject, NULL));
-}
-} // namespace WebKit
index 5fc652f3e10afc6e0ef99ab9e19a862e8192b401..ac27088e834da82795367690fa92f95714c6d5cd 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestMediaQueryListListener.h"
+
+
 namespace WebKit {
     WebKitDOMTestMediaQueryListListener *
     wrapTestMediaQueryListListener(WebCore::TestMediaQueryListListener *coreObject);
index 60417297901f8f58de6e98dd62f3cf3c5ec6c29f..efd528f949be7f190123e133197a2acc47b39e51 100644 (file)
@@ -36,7 +36,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestNamedConstructor* kit(WebCore::TestNamedConstructor* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -46,13 +46,6 @@ WebKitDOMTestNamedConstructor* kit(WebCore::TestNamedConstructor* obj)
 
     return static_cast<WebKitDOMTestNamedConstructor*>(DOMObjectCache::put(obj, WebKit::wrapTestNamedConstructor(obj)));
 }
-    
-} // namespace WebKit //
-
-
-G_DEFINE_TYPE(WebKitDOMTestNamedConstructor, webkit_dom_test_named_constructor, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
 
 WebCore::TestNamedConstructor* core(WebKitDOMTestNamedConstructor* request)
 {
@@ -64,14 +57,31 @@ WebCore::TestNamedConstructor* core(WebKitDOMTestNamedConstructor* request)
     return coreObject;
 }
 
+WebKitDOMTestNamedConstructor* wrapTestNamedConstructor(WebCore::TestNamedConstructor* coreObject)
+{
+    g_return_val_if_fail(coreObject, 0);
+
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
+
+    return  WEBKIT_DOM_TEST_NAMED_CONSTRUCTOR(g_object_new(WEBKIT_TYPE_DOM_TEST_NAMED_CONSTRUCTOR,
+                                               "core-object", coreObject, NULL));
+}
+
 } // namespace WebKit
+
+G_DEFINE_TYPE(WebKitDOMTestNamedConstructor, webkit_dom_test_named_constructor, WEBKIT_TYPE_DOM_OBJECT)
+
 enum {
     PROP_0,
 };
 
-
 static void webkit_dom_test_named_constructor_finalize(GObject* object)
 {
+
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -83,6 +93,7 @@ static void webkit_dom_test_named_constructor_finalize(GObject* object)
         dom_object->coreObject = NULL;
     }
 
+
     G_OBJECT_CLASS(webkit_dom_test_named_constructor_parent_class)->finalize(object);
 }
 
@@ -131,18 +142,3 @@ static void webkit_dom_test_named_constructor_init(WebKitDOMTestNamedConstructor
 {
 }
 
-namespace WebKit {
-WebKitDOMTestNamedConstructor* wrapTestNamedConstructor(WebCore::TestNamedConstructor* coreObject)
-{
-    g_return_val_if_fail(coreObject, 0);
-
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
-
-    return  WEBKIT_DOM_TEST_NAMED_CONSTRUCTOR(g_object_new(WEBKIT_TYPE_DOM_TEST_NAMED_CONSTRUCTOR,
-                                               "core-object", coreObject, NULL));
-}
-} // namespace WebKit
index b585171c20e96a902887fc968c9e9659f399323e..5bad70b01dc12e275c30483407eebecc33e1790b 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestNamedConstructor.h"
+
+
 namespace WebKit {
     WebKitDOMTestNamedConstructor *
     wrapTestNamedConstructor(WebCore::TestNamedConstructor *coreObject);
index c7ed165e9bf5177aacfdedee4474a9de8a46a22b..f73b58b4b683c21ef2a42effe2da7a34d59b2b19 100644 (file)
@@ -64,7 +64,7 @@
 #include "webkitmarshal.h"
 
 namespace WebKit {
-    
+
 WebKitDOMTestObj* kit(WebCore::TestObj* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -74,1979 +74,521 @@ WebKitDOMTestObj* kit(WebCore::TestObj* obj)
 
     return static_cast<WebKitDOMTestObj*>(DOMObjectCache::put(obj, WebKit::wrapTestObj(obj)));
 }
-    
-} // namespace WebKit //
 
-void
-webkit_dom_test_obj_void_method(WebKitDOMTestObj* self)
+WebCore::TestObj* core(WebKitDOMTestObj* request)
 {
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->voidMethod();
-}
+    g_return_val_if_fail(request, 0);
 
-void
-webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(str_arg);
-    g_return_if_fail(obj_arg);
-    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
-    WebCore::TestObj * converted_obj_arg = NULL;
-    if (obj_arg != NULL) {
-        converted_obj_arg = WebKit::core(obj_arg);
-        g_return_if_fail(converted_obj_arg);
-    }
-    item->voidMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg);
-}
+    WebCore::TestObj* coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject);
+    g_return_val_if_fail(coreObject, 0);
 
-glong
-webkit_dom_test_obj_int_method(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->intMethod();
-    return res;
+    return coreObject;
 }
 
-glong
-webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
+WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
 {
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_val_if_fail(str_arg, 0);
-    g_return_val_if_fail(obj_arg, 0);
-    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
-    WebCore::TestObj * converted_obj_arg = NULL;
-    if (obj_arg != NULL) {
-        converted_obj_arg = WebKit::core(obj_arg);
-        g_return_val_if_fail(converted_obj_arg, 0);
-    }
-    glong res = item->intMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg);
-    return res;
-}
+    g_return_val_if_fail(coreObject, 0);
 
-WebKitDOMTestObj*
-webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethod());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
 
-WebKitDOMTestObj*
-webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_val_if_fail(str_arg, 0);
-    g_return_val_if_fail(obj_arg, 0);
-    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
-    WebCore::TestObj * converted_obj_arg = NULL;
-    if (obj_arg != NULL) {
-        converted_obj_arg = WebKit::core(obj_arg);
-        g_return_val_if_fail(converted_obj_arg, 0);
-    }
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg));
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
+    return  WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_TYPE_DOM_TEST_OBJ,
+                                               "core-object", coreObject, NULL));
 }
 
-void
-webkit_dom_test_obj_method_with_sequence_arg(WebKitDOMTestObj* self, WebKitDOMsequence* )
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail();
-    WebCore::sequence * converted_ = NULL;
-    if ( != NULL) {
-        converted_ = WebKit::core();
-        g_return_if_fail(converted_);
-    }
-    item->methodWithSequenceArg(converted_);
-}
+} // namespace WebKit
 
-WebKitDOMTestObj*
-webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_val_if_fail(str_arg, 0);
-    g_return_val_if_fail(obj_arg, 0);
-    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
-    WebCore::TestObj * converted_obj_arg = NULL;
-    if (obj_arg != NULL) {
-        converted_obj_arg = WebKit::core(obj_arg);
-        g_return_val_if_fail(converted_obj_arg, 0);
-    }
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->methodThatRequiresAllArgsAndThrows(converted_str_arg, converted_obj_arg, ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
+G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_TYPE_DOM_OBJECT)
 
-void
-webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue* serialized_arg)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(serialized_arg);
-    WebCore::SerializedScriptValue * converted_serialized_arg = NULL;
-    if (serialized_arg != NULL) {
-        converted_serialized_arg = WebKit::core(serialized_arg);
-        g_return_if_fail(converted_serialized_arg);
-    }
-    item->serializedValue(converted_serialized_arg);
-}
+enum {
+    PROP_0,
+    PROP_READ_ONLY_INT_ATTR,
+    PROP_READ_ONLY_STRING_ATTR,
+    PROP_READ_ONLY_TEST_OBJ_ATTR,
+    PROP_SHORT_ATTR,
+    PROP_UNSIGNED_SHORT_ATTR,
+    PROP_INT_ATTR,
+    PROP_LONG_LONG_ATTR,
+    PROP_UNSIGNED_LONG_LONG_ATTR,
+    PROP_STRING_ATTR,
+    PROP_TEST_OBJ_ATTR,
+    PROP_XML_OBJ_ATTR,
+    PROP_CREATE,
+    PROP_REFLECTED_STRING_ATTR,
+    PROP_REFLECTED_INTEGRAL_ATTR,
+    PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR,
+    PROP_REFLECTED_BOOLEAN_ATTR,
+    PROP_REFLECTED_URL_ATTR,
+    PROP_REFLECTED_STRING_ATTR,
+    PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR,
+    PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR,
+    PROP_REFLECTED_CUSTOM_URL_ATTR,
+    PROP_ATTR_WITH_GETTER_EXCEPTION,
+    PROP_ATTR_WITH_SETTER_EXCEPTION,
+    PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
+    PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
+    PROP_WITH_SCRIPT_STATE_ATTRIBUTE,
+    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE,
+    PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES,
+    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES,
+    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE,
+    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES,
+    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE,
+    PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE,
+#if ENABLE(Condition1)
+    PROP_CONDITIONAL_ATTR1,
+#endif /* ENABLE(Condition1) */
+#if ENABLE(Condition1) && ENABLE(Condition2)
+    PROP_CONDITIONAL_ATTR2,
+#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    PROP_CONDITIONAL_ATTR3,
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+    PROP_CONTENT_DOCUMENT,
+    PROP_MUTABLE_POINT,
+    PROP_IMMUTABLE_POINT,
+    PROP_STRAWBERRY,
+    PROP_STRICT_FLOAT,
+    PROP_DESCRIPTION,
+    PROP_ID,
+    PROP_HASH,
+};
 
-void
-webkit_dom_test_obj_idb_key(WebKitDOMTestObj* self, WebKitDOMIDBKey* key)
+static void webkit_dom_test_obj_finalize(GObject* object)
 {
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(key);
-    WebCore::IDBKey * converted_key = NULL;
-    if (key != NULL) {
-        converted_key = WebKit::core(key);
-        g_return_if_fail(converted_key);
+
+    WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
+    
+    if (dom_object->coreObject) {
+        WebCore::TestObj* coreObject = static_cast<WebCore::TestObj *>(dom_object->coreObject);
+
+        WebKit::DOMObjectCache::forget(coreObject);
+        coreObject->deref();
+
+        dom_object->coreObject = NULL;
     }
-    item->idbKey(converted_key);
+
+
+    G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
 }
 
-void
-webkit_dom_test_obj_options_object(WebKitDOMTestObj* self, WebKitDOMDictionary* oo, WebKitDOMDictionary* ooo)
+static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
 {
-    g_return_if_fail(self);
     WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(oo);
-    g_return_if_fail(ooo);
-    WebCore::Dictionary * converted_oo = NULL;
-    if (oo != NULL) {
-        converted_oo = WebKit::core(oo);
-        g_return_if_fail(converted_oo);
+    WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
+    WebCore::TestObj* coreSelf = WebKit::core(self);
+    switch (prop_id) {
+    case PROP_UNSIGNED_SHORT_ATTR:
+    {
+        coreSelf->setUnsignedShortAttr((g_value_get_uint(value)));
+        break;
     }
-    WebCore::Dictionary * converted_ooo = NULL;
-    if (ooo != NULL) {
-        converted_ooo = WebKit::core(ooo);
-        g_return_if_fail(converted_ooo);
+    case PROP_INT_ATTR:
+    {
+        coreSelf->setIntAttr((g_value_get_long(value)));
+        break;
     }
-    item->optionsObject(converted_oo, converted_ooo);
-}
-
-void
-webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    item->methodWithException(ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    case PROP_UNSIGNED_LONG_LONG_ATTR:
+    {
+        coreSelf->setUnsignedLongLongAttr((g_value_get_uint64(value)));
+        break;
     }
-}
-
-void
-webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->withScriptStateVoid();
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObj());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    item->withScriptStateVoidException(ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    case PROP_STRING_ATTR:
+    {
+        coreSelf->setStringAttr(WTF::String::fromUTF8(g_value_get_string(value)));
+        break;
     }
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObjException(ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    case PROP_CREATE:
+    {
+        coreSelf->setCreate((g_value_get_boolean(value)));
+        break;
     }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_with_script_execution_context(WebKitDOMTestObj* self)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->withScriptExecutionContext();
-}
-
-void
-webkit_dom_test_obj_with_script_execution_context_and_script_state(WebKitDOMTestObj* self)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->withScriptExecutionContextAndScriptState();
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_execution_context_and_script_state_obj_exception(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateObjException(ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    case PROP_REFLECTED_STRING_ATTR:
+    {
+        coreSelf->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
+        break;
+    }
+    case PROP_REFLECTED_INTEGRAL_ATTR:
+    {
+        coreSelf->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, (g_value_get_long(value)));
+        break;
+    }
+    case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
+    {
+        coreSelf->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, (g_value_get_ulong(value)));
+        break;
+    }
+    case PROP_REFLECTED_BOOLEAN_ATTR:
+    {
+        coreSelf->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, (g_value_get_boolean(value)));
+        break;
+    }
+    case PROP_REFLECTED_URL_ATTR:
+    {
+        coreSelf->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
+        break;
+    }
+    case PROP_REFLECTED_STRING_ATTR:
+    {
+        coreSelf->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
+        break;
+    }
+    case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
+    {
+        coreSelf->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, (g_value_get_long(value)));
+        break;
+    }
+    case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
+    {
+        coreSelf->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, (g_value_get_boolean(value)));
+        break;
+    }
+    case PROP_REFLECTED_CUSTOM_URL_ATTR:
+    {
+        coreSelf->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
+        break;
+    }
+    case PROP_ATTR_WITH_GETTER_EXCEPTION:
+    {
+        WebCore::ExceptionCode ec = 0;
+        coreSelf->setAttrWithGetterException((g_value_get_long(value)), ec);
+        break;
+    }
+    case PROP_ATTR_WITH_SETTER_EXCEPTION:
+    {
+        WebCore::ExceptionCode ec = 0;
+        coreSelf->setAttrWithSetterException((g_value_get_long(value)), ec);
+        break;
+    }
+    case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
+    {
+        WebCore::ExceptionCode ec = 0;
+        coreSelf->setStringAttrWithGetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec);
+        break;
+    }
+    case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
+    {
+        WebCore::ExceptionCode ec = 0;
+        coreSelf->setStringAttrWithSetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec);
+        break;
+    }
+    case PROP_WITH_SCRIPT_STATE_ATTRIBUTE:
+    {
+        coreSelf->setWithScriptStateAttribute((g_value_get_long(value)));
+        break;
+    }
+#if ENABLE(Condition1)
+    case PROP_CONDITIONAL_ATTR1:
+    {
+        coreSelf->setConditionalAttr1((g_value_get_long(value)));
+        break;
+    }
+#endif /* ENABLE(Condition1) */
+#if ENABLE(Condition1) && ENABLE(Condition2)
+    case PROP_CONDITIONAL_ATTR2:
+    {
+        coreSelf->setConditionalAttr2((g_value_get_long(value)));
+        break;
+    }
+#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    case PROP_CONDITIONAL_ATTR3:
+    {
+        coreSelf->setConditionalAttr3((g_value_get_long(value)));
+        break;
+    }
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+    case PROP_STRICT_FLOAT:
+    {
+        coreSelf->setStrictFloat((g_value_get_float(value)));
+        break;
+    }
+    case PROP_ID:
+    {
+        coreSelf->setId((g_value_get_long(value)));
+        break;
+    }
+    default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
+        break;
     }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_execution_context_and_script_state_with_spaces(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateWithSpaces());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->methodWithOptionalArg(opt);
-}
-
-void
-webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong non_opt, glong opt)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->methodWithNonOptionalArgAndOptionalArg(non_opt, opt);
 }
 
-void
-webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong non_opt, glong opt1, glong opt2)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
-}
 
-void
-webkit_dom_test_obj_method_with_optional_string(WebKitDOMTestObj* self, const gchar* str)
+static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
 {
-    g_return_if_fail(self);
     WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(str);
-    WTF::String converted_str = WTF::String::fromUTF8(str);
-    item->methodWithOptionalString(converted_str);
-}
-
-void
-webkit_dom_test_obj_method_with_optional_string_is_undefined(WebKitDOMTestObj* self, const gchar* str)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(str);
-    WTF::String converted_str = WTF::String::fromUTF8(str);
-    item->methodWithOptionalStringIsUndefined(converted_str);
-}
-
-void
-webkit_dom_test_obj_method_with_optional_string_is_null_string(WebKitDOMTestObj* self, const gchar* str)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(str);
-    WTF::String converted_str = WTF::String::fromUTF8(str);
-    item->methodWithOptionalStringIsNullString(converted_str);
-}
-
-gchar*
-webkit_dom_test_obj_conditional_method1(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->conditionalMethod1());
-    return res;
-#else
-    return NULL;
-#endif /* ENABLE(Condition1) */
-}
-
-void
-webkit_dom_test_obj_conditional_method2(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1) && ENABLE(Condition2)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->conditionalMethod2();
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-}
-
-void
-webkit_dom_test_obj_conditional_method3(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1) || ENABLE(Condition2)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->conditionalMethod3();
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-}
-
-void
-webkit_dom_test_obj_class_method(WebKitDOMTestObj* self)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->classMethod();
-}
-
-glong
-webkit_dom_test_obj_class_method_with_optional(WebKitDOMTestObj* self, glong arg)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->classMethodWithOptional(arg);
-    return res;
-}
-
-void
-webkit_dom_test_obj_overloaded_method1(WebKitDOMTestObj* self, glong arg)
-{
-#if ENABLE(Condition1)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->overloadedMethod1(arg);
-#endif /* ENABLE(Condition1) */
-}
-
-void
-webkit_dom_test_obj_overloaded_method1(WebKitDOMTestObj* self, const gchar* type)
-{
-#if ENABLE(Condition1)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(type);
-    WTF::String converted_type = WTF::String::fromUTF8(type);
-    item->overloadedMethod1(converted_type);
-#endif /* ENABLE(Condition1) */
-}
-
-void
-webkit_dom_test_obj_convert1(WebKitDOMTestObj* self, WebKitDOMa* )
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail();
-    WebCore::a * converted_ = NULL;
-    if ( != NULL) {
-        converted_ = WebKit::core();
-        g_return_if_fail(converted_);
+    WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
+    WebCore::TestObj* coreSelf = WebKit::core(self);
+    switch (prop_id) {
+    case PROP_READ_ONLY_INT_ATTR:
+    {
+        g_value_set_long(value, coreSelf->readOnlyIntAttr());
+        break;
     }
-    item->convert1(converted_);
-}
-
-void
-webkit_dom_test_obj_convert2(WebKitDOMTestObj* self, WebKitDOMb* )
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail();
-    WebCore::b * converted_ = NULL;
-    if ( != NULL) {
-        converted_ = WebKit::core();
-        g_return_if_fail(converted_);
+    case PROP_READ_ONLY_STRING_ATTR:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
+        break;
     }
-    item->convert2(converted_);
-}
-
-void
-webkit_dom_test_obj_convert3(WebKitDOMTestObj* self, WebKitDOMc* )
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail();
-    WebCore::c * converted_ = NULL;
-    if ( != NULL) {
-        converted_ = WebKit::core();
-        g_return_if_fail(converted_);
+    case PROP_READ_ONLY_TEST_OBJ_ATTR:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
     }
-    item->convert3(converted_);
-}
-
-void
-webkit_dom_test_obj_convert4(WebKitDOMTestObj* self, WebKitDOMd* )
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail();
-    WebCore::d * converted_ = NULL;
-    if ( != NULL) {
-        converted_ = WebKit::core();
-        g_return_if_fail(converted_);
+    case PROP_SHORT_ATTR:
+    {
+        g_value_set_int(value, coreSelf->shortAttr());
+        break;
     }
-    item->convert4(converted_);
-}
-
-void
-webkit_dom_test_obj_convert5(WebKitDOMTestObj* self, WebKitDOMe* )
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail();
-    WebCore::e * converted_ = NULL;
-    if ( != NULL) {
-        converted_ = WebKit::core();
-        g_return_if_fail(converted_);
+    case PROP_UNSIGNED_SHORT_ATTR:
+    {
+        g_value_set_uint(value, coreSelf->unsignedShortAttr());
+        break;
     }
-    item->convert5(converted_);
-}
-
-WebKitDOMSVGPoint*
-webkit_dom_test_obj_mutable_point_function(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->mutablePointFunction());
-    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-WebKitDOMSVGPoint*
-webkit_dom_test_obj_immutable_point_function(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->immutablePointFunction());
-    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_orange(WebKitDOMTestObj* self)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->orange();
-}
-
-WebKitDOMbool*
-webkit_dom_test_obj_strict_function(WebKitDOMTestObj* self, const gchar* str, gfloat a, gint b, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_val_if_fail(str, 0);
-    WTF::String converted_str = WTF::String::fromUTF8(str);
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::bool> g_res = WTF::getPtr(item->strictFunction(converted_str, a, b, ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    case PROP_INT_ATTR:
+    {
+        g_value_set_long(value, coreSelf->intAttr());
+        break;
+    }
+    case PROP_LONG_LONG_ATTR:
+    {
+        g_value_set_int64(value, coreSelf->longLongAttr());
+        break;
+    }
+    case PROP_UNSIGNED_LONG_LONG_ATTR:
+    {
+        g_value_set_uint64(value, coreSelf->unsignedLongLongAttr());
+        break;
+    }
+    case PROP_STRING_ATTR:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
+        break;
+    }
+    case PROP_TEST_OBJ_ATTR:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_XML_OBJ_ATTR:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->xmlObjAttr();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_CREATE:
+    {
+        g_value_set_boolean(value, coreSelf->isCreate());
+        break;
+    }
+    case PROP_REFLECTED_STRING_ATTR:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr)));
+        break;
+    }
+    case PROP_REFLECTED_INTEGRAL_ATTR:
+    {
+        g_value_set_long(value, coreSelf->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
+        break;
+    }
+    case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
+    {
+        g_value_set_ulong(value, coreSelf->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr));
+        break;
+    }
+    case PROP_REFLECTED_BOOLEAN_ATTR:
+    {
+        g_value_set_boolean(value, coreSelf->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr));
+        break;
+    }
+    case PROP_REFLECTED_URL_ATTR:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr)));
+        break;
+    }
+    case PROP_REFLECTED_STRING_ATTR:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr)));
+        break;
+    }
+    case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
+    {
+        g_value_set_long(value, coreSelf->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
+        break;
+    }
+    case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
+    {
+        g_value_set_boolean(value, coreSelf->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr));
+        break;
+    }
+    case PROP_REFLECTED_CUSTOM_URL_ATTR:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr)));
+        break;
+    }
+    case PROP_ATTR_WITH_GETTER_EXCEPTION:
+    {
+        WebCore::ExceptionCode ec = 0;
+        g_value_set_long(value, coreSelf->attrWithGetterException(ec));
+        break;
+    }
+    case PROP_ATTR_WITH_SETTER_EXCEPTION:
+    {
+        g_value_set_long(value, coreSelf->attrWithSetterException());
+        break;
+    }
+    case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
+    {
+        WebCore::ExceptionCode ec = 0;
+        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithGetterException(ec)));
+        break;
+    }
+    case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithSetterException()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_STATE_ATTRIBUTE:
+    {
+        g_value_set_long(value, coreSelf->withScriptStateAttribute());
+        break;
+    }
+    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAttribute();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES:
+    {
+        WebCore::ExceptionCode ec = 0;
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptStateAttributeRaises(ec);
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES:
+    {
+        WebCore::ExceptionCode ec = 0;
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAttributeRaises(ec);
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAndScriptStateAttribute();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES:
+    {
+        WebCore::ExceptionCode ec = 0;
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAndScriptStateAttributeRaises(ec);
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAndScriptStateWithSpacesAttribute();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE:
+    {
+        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptArgumentsAndCallStackAttribute();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+#if ENABLE(Condition1)
+    case PROP_CONDITIONAL_ATTR1:
+    {
+        g_value_set_long(value, coreSelf->conditionalAttr1());
+        break;
+    }
+#endif /* ENABLE(Condition1) */
+#if ENABLE(Condition1) && ENABLE(Condition2)
+    case PROP_CONDITIONAL_ATTR2:
+    {
+        g_value_set_long(value, coreSelf->conditionalAttr2());
+        break;
+    }
+#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    case PROP_CONDITIONAL_ATTR3:
+    {
+        g_value_set_long(value, coreSelf->conditionalAttr3());
+        break;
+    }
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+    case PROP_CONTENT_DOCUMENT:
+    {
+        RefPtr<WebCore::Document> ptr = coreSelf->contentDocument();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_MUTABLE_POINT:
+    {
+        RefPtr<WebCore::SVGPoint> ptr = coreSelf->mutablePoint();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_IMMUTABLE_POINT:
+    {
+        RefPtr<WebCore::SVGPoint> ptr = coreSelf->immutablePoint();
+        g_value_set_object(value, WebKit::kit(ptr.get()));
+        break;
+    }
+    case PROP_STRAWBERRY:
+    {
+        g_value_set_int(value, coreSelf->blueberry());
+        break;
+    }
+    case PROP_STRICT_FLOAT:
+    {
+        g_value_set_float(value, coreSelf->strictFloat());
+        break;
+    }
+    case PROP_DESCRIPTION:
+    {
+        g_value_set_long(value, coreSelf->description());
+        break;
+    }
+    case PROP_ID:
+    {
+        g_value_set_long(value, coreSelf->id());
+        break;
+    }
+    case PROP_HASH:
+    {
+        g_value_take_string(value, convertToUTF8String(coreSelf->hash()));
+        break;
+    }
+    default:
+        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
+        break;
     }
-    WebKitDOMbool* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-glong
-webkit_dom_test_obj_get_read_only_int_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->readOnlyIntAttr();
-    return res;
-}
-
-gchar*
-webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->readOnlyStringAttr());
-    return res;
 }
 
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->readOnlyTestObjAttr());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
 
-gshort
-webkit_dom_test_obj_get_short_attr(WebKitDOMTestObj* self)
+static void webkit_dom_test_obj_constructed(GObject* object)
 {
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gshort res = item->shortAttr();
-    return res;
-}
 
-void
-webkit_dom_test_obj_set_short_attr(WebKitDOMTestObj* self, gshort value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setShortAttr(value);
+    if (G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructed)
+        G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructed(object);
 }
 
-gushort
-webkit_dom_test_obj_get_unsigned_short_attr(WebKitDOMTestObj* self)
+static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
 {
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gushort res = item->unsignedShortAttr();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_unsigned_short_attr(WebKitDOMTestObj* self, gushort value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setUnsignedShortAttr(value);
-}
-
-glong
-webkit_dom_test_obj_get_int_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->intAttr();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_int_attr(WebKitDOMTestObj* self, glong value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setIntAttr(value);
-}
-
-gint64
-webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gint64 res = item->longLongAttr();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setLongLongAttr(value);
-}
-
-guint64
-webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    guint64 res = item->unsignedLongLongAttr();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setUnsignedLongLongAttr(value);
-}
-
-gchar*
-webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->stringAttr());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, const gchar* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    item->setStringAttr(converted_value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->testObjAttr());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setTestObjAttr(converted_value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_xml_obj_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->xmlObjAttr());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_xml_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setXMLObjAttr(converted_value);
-}
-
-gboolean
-webkit_dom_test_obj_get_create(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gboolean res = item->isCreate();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_create(WebKitDOMTestObj* self, gboolean value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setCreate(value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    item->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_reflected_integral_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_integral_attr(WebKitDOMTestObj* self, glong value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, value);
-}
-
-gulong
-webkit_dom_test_obj_get_reflected_unsigned_integral_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gulong res = item->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_unsigned_integral_attr(WebKitDOMTestObj* self, gulong value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, value);
-}
-
-gboolean
-webkit_dom_test_obj_get_reflected_boolean_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gboolean res = item->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_boolean_attr(WebKitDOMTestObj* self, gboolean value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_url_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_url_attr(WebKitDOMTestObj* self, const gchar* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    item->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, converted_value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    item->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_reflected_custom_integral_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_integral_attr(WebKitDOMTestObj* self, glong value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, value);
-}
-
-gboolean
-webkit_dom_test_obj_get_reflected_custom_boolean_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gboolean res = item->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_boolean_attr(WebKitDOMTestObj* self, gboolean value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_custom_url_attr(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_url_attr(WebKitDOMTestObj* self, const gchar* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    item->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    glong res = item->attrWithGetterException(ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    item->setAttrWithGetterException(value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-glong
-webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->attrWithSetterException();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    item->setAttrWithSetterException(value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-gchar*
-webkit_dom_test_obj_get_string_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    gchar* res = convertToUTF8String(item->stringAttrWithGetterException(ec));
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_string_attr_with_getter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    WebCore::ExceptionCode ec = 0;
-    item->setStringAttrWithGetterException(converted_value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-gchar*
-webkit_dom_test_obj_get_string_attr_with_setter_exception(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->stringAttrWithSetterException());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_string_attr_with_setter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WTF::String converted_value = WTF::String::fromUTF8(value);
-    WebCore::ExceptionCode ec = 0;
-    item->setStringAttrWithSetterException(converted_value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-glong
-webkit_dom_test_obj_get_with_script_state_attribute(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->withScriptStateAttribute();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_state_attribute(WebKitDOMTestObj* self, glong value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setWithScriptStateAttribute(value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_with_script_execution_context_attribute(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAttribute());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_execution_context_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setWithScriptExecutionContextAttribute(converted_value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_with_script_state_attribute_raises(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateAttributeRaises(ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    WebCore::ExceptionCode ec = 0;
-    item->setWithScriptStateAttributeRaises(converted_value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAttributeRaises(ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    WebCore::ExceptionCode ec = 0;
-    item->setWithScriptExecutionContextAttributeRaises(converted_value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateAttribute());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setWithScriptExecutionContextAndScriptStateAttribute(converted_value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute_raises(WebKitDOMTestObj* self, GError **error)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    WebCore::ExceptionCode ec = 0;
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateAttributeRaises(ec));
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    WebCore::ExceptionCode ec = 0;
-    item->setWithScriptExecutionContextAndScriptStateAttributeRaises(converted_value, ec);
-    if (ec) {
-        WebCore::ExceptionCodeDescription ecdesc(ec);
-        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
-    }
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_with_script_execution_context_and_script_state_with_spaces_attribute(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateWithSpacesAttribute());
-    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_with_script_execution_context_and_script_state_with_spaces_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::TestObj * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_conditional_attr1(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->conditionalAttr1();
-    return res;
-#else
-    return static_cast<glong>(0);
-#endif /* ENABLE(Condition1) */
-}
-
-void
-webkit_dom_test_obj_set_conditional_attr1(WebKitDOMTestObj* self, glong value)
-{
-#if ENABLE(Condition1)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setConditionalAttr1(value);
-#endif /* ENABLE(Condition1) */
-}
-
-glong
-webkit_dom_test_obj_get_conditional_attr2(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1) && ENABLE(Condition2)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->conditionalAttr2();
-    return res;
-#else
-    return static_cast<glong>(0);
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-}
-
-void
-webkit_dom_test_obj_set_conditional_attr2(WebKitDOMTestObj* self, glong value)
-{
-#if ENABLE(Condition1) && ENABLE(Condition2)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setConditionalAttr2(value);
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-}
-
-glong
-webkit_dom_test_obj_get_conditional_attr3(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1) || ENABLE(Condition2)
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->conditionalAttr3();
-    return res;
-#else
-    return static_cast<glong>(0);
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-}
-
-void
-webkit_dom_test_obj_set_conditional_attr3(WebKitDOMTestObj* self, glong value)
-{
-#if ENABLE(Condition1) || ENABLE(Condition2)
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setConditionalAttr3(value);
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-}
-
-WebKitDOMDocument*
-webkit_dom_test_obj_get_content_document(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::Document> g_res = WTF::getPtr(item->contentDocument());
-    WebKitDOMDocument* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-WebKitDOMSVGPoint*
-webkit_dom_test_obj_get_mutable_point(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->mutablePoint());
-    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_mutable_point(WebKitDOMTestObj* self, WebKitDOMSVGPoint* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::SVGPoint * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setMutablePoint(converted_value);
-}
-
-WebKitDOMSVGPoint*
-webkit_dom_test_obj_get_immutable_point(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->immutablePoint());
-    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_immutable_point(WebKitDOMTestObj* self, WebKitDOMSVGPoint* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::SVGPoint * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setImmutablePoint(converted_value);
-}
-
-gint
-webkit_dom_test_obj_get_strawberry(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gint res = item->blueberry();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_strawberry(WebKitDOMTestObj* self, gint value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setBlueberry(value);
-}
-
-gfloat
-webkit_dom_test_obj_get_strict_float(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gfloat res = item->strictFloat();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_strict_float(WebKitDOMTestObj* self, gfloat value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setStrictFloat(value);
-}
-
-glong
-webkit_dom_test_obj_get_description(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->description();
-    return res;
-}
-
-glong
-webkit_dom_test_obj_get_id(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    glong res = item->id();
-    return res;
-}
-
-void
-webkit_dom_test_obj_set_id(WebKitDOMTestObj* self, glong value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    item->setId(value);
-}
-
-gchar*
-webkit_dom_test_obj_get_hash(WebKitDOMTestObj* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestObj * item = WebKit::core(self);
-    gchar* res = convertToUTF8String(item->hash());
-    return res;
-}
-
-
-G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
-
-WebCore::TestObj* core(WebKitDOMTestObj* request)
-{
-    g_return_val_if_fail(request, 0);
-
-    WebCore::TestObj* coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject);
-    g_return_val_if_fail(coreObject, 0);
-
-    return coreObject;
-}
-
-} // namespace WebKit
-enum {
-    PROP_0,
-    PROP_READ_ONLY_INT_ATTR,
-    PROP_READ_ONLY_STRING_ATTR,
-    PROP_READ_ONLY_TEST_OBJ_ATTR,
-    PROP_SHORT_ATTR,
-    PROP_UNSIGNED_SHORT_ATTR,
-    PROP_INT_ATTR,
-    PROP_LONG_LONG_ATTR,
-    PROP_UNSIGNED_LONG_LONG_ATTR,
-    PROP_STRING_ATTR,
-    PROP_TEST_OBJ_ATTR,
-    PROP_XML_OBJ_ATTR,
-    PROP_CREATE,
-    PROP_REFLECTED_STRING_ATTR,
-    PROP_REFLECTED_INTEGRAL_ATTR,
-    PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR,
-    PROP_REFLECTED_BOOLEAN_ATTR,
-    PROP_REFLECTED_URL_ATTR,
-    PROP_REFLECTED_STRING_ATTR,
-    PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR,
-    PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR,
-    PROP_REFLECTED_CUSTOM_URL_ATTR,
-    PROP_ATTR_WITH_GETTER_EXCEPTION,
-    PROP_ATTR_WITH_SETTER_EXCEPTION,
-    PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
-    PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
-    PROP_WITH_SCRIPT_STATE_ATTRIBUTE,
-    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE,
-    PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES,
-    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES,
-    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE,
-    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES,
-    PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE,
-    PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE,
-#if ENABLE(Condition1)
-    PROP_CONDITIONAL_ATTR1,
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
-    PROP_CONDITIONAL_ATTR2,
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
-    PROP_CONDITIONAL_ATTR3,
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-    PROP_CONTENT_DOCUMENT,
-    PROP_MUTABLE_POINT,
-    PROP_IMMUTABLE_POINT,
-    PROP_STRAWBERRY,
-    PROP_STRICT_FLOAT,
-    PROP_DESCRIPTION,
-    PROP_ID,
-    PROP_HASH,
-};
-
-
-static void webkit_dom_test_obj_finalize(GObject* object)
-{
-    WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
-    
-    if (dom_object->coreObject) {
-        WebCore::TestObj* coreObject = static_cast<WebCore::TestObj *>(dom_object->coreObject);
-
-        WebKit::DOMObjectCache::forget(coreObject);
-        coreObject->deref();
-
-        dom_object->coreObject = NULL;
-    }
-
-    G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
-}
-
-static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
-    WebCore::JSMainThreadNullState state;
-    WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
-    WebCore::TestObj* coreSelf = WebKit::core(self);
-    switch (prop_id) {
-    case PROP_UNSIGNED_SHORT_ATTR:
-    {
-        coreSelf->setUnsignedShortAttr((g_value_get_uint(value)));
-        break;
-    }
-    case PROP_INT_ATTR:
-    {
-        coreSelf->setIntAttr((g_value_get_long(value)));
-        break;
-    }
-    case PROP_UNSIGNED_LONG_LONG_ATTR:
-    {
-        coreSelf->setUnsignedLongLongAttr((g_value_get_uint64(value)));
-        break;
-    }
-    case PROP_STRING_ATTR:
-    {
-        coreSelf->setStringAttr(WTF::String::fromUTF8(g_value_get_string(value)));
-        break;
-    }
-    case PROP_CREATE:
-    {
-        coreSelf->setCreate((g_value_get_boolean(value)));
-        break;
-    }
-    case PROP_REFLECTED_STRING_ATTR:
-    {
-        coreSelf->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
-        break;
-    }
-    case PROP_REFLECTED_INTEGRAL_ATTR:
-    {
-        coreSelf->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, (g_value_get_long(value)));
-        break;
-    }
-    case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
-    {
-        coreSelf->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, (g_value_get_ulong(value)));
-        break;
-    }
-    case PROP_REFLECTED_BOOLEAN_ATTR:
-    {
-        coreSelf->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, (g_value_get_boolean(value)));
-        break;
-    }
-    case PROP_REFLECTED_URL_ATTR:
-    {
-        coreSelf->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
-        break;
-    }
-    case PROP_REFLECTED_STRING_ATTR:
-    {
-        coreSelf->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
-        break;
-    }
-    case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
-    {
-        coreSelf->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, (g_value_get_long(value)));
-        break;
-    }
-    case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
-    {
-        coreSelf->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, (g_value_get_boolean(value)));
-        break;
-    }
-    case PROP_REFLECTED_CUSTOM_URL_ATTR:
-    {
-        coreSelf->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
-        break;
-    }
-    case PROP_ATTR_WITH_GETTER_EXCEPTION:
-    {
-        WebCore::ExceptionCode ec = 0;
-        coreSelf->setAttrWithGetterException((g_value_get_long(value)), ec);
-        break;
-    }
-    case PROP_ATTR_WITH_SETTER_EXCEPTION:
-    {
-        WebCore::ExceptionCode ec = 0;
-        coreSelf->setAttrWithSetterException((g_value_get_long(value)), ec);
-        break;
-    }
-    case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
-    {
-        WebCore::ExceptionCode ec = 0;
-        coreSelf->setStringAttrWithGetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec);
-        break;
-    }
-    case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
-    {
-        WebCore::ExceptionCode ec = 0;
-        coreSelf->setStringAttrWithSetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec);
-        break;
-    }
-    case PROP_WITH_SCRIPT_STATE_ATTRIBUTE:
-    {
-        coreSelf->setWithScriptStateAttribute((g_value_get_long(value)));
-        break;
-    }
-#if ENABLE(Condition1)
-    case PROP_CONDITIONAL_ATTR1:
-    {
-        coreSelf->setConditionalAttr1((g_value_get_long(value)));
-        break;
-    }
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
-    case PROP_CONDITIONAL_ATTR2:
-    {
-        coreSelf->setConditionalAttr2((g_value_get_long(value)));
-        break;
-    }
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
-    case PROP_CONDITIONAL_ATTR3:
-    {
-        coreSelf->setConditionalAttr3((g_value_get_long(value)));
-        break;
-    }
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-    case PROP_STRICT_FLOAT:
-    {
-        coreSelf->setStrictFloat((g_value_get_float(value)));
-        break;
-    }
-    case PROP_ID:
-    {
-        coreSelf->setId((g_value_get_long(value)));
-        break;
-    }
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
-        break;
-    }
-}
-
-
-static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
-{
-    WebCore::JSMainThreadNullState state;
-    WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
-    WebCore::TestObj* coreSelf = WebKit::core(self);
-    switch (prop_id) {
-    case PROP_READ_ONLY_INT_ATTR:
-    {
-        g_value_set_long(value, coreSelf->readOnlyIntAttr());
-        break;
-    }
-    case PROP_READ_ONLY_STRING_ATTR:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
-        break;
-    }
-    case PROP_READ_ONLY_TEST_OBJ_ATTR:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_SHORT_ATTR:
-    {
-        g_value_set_int(value, coreSelf->shortAttr());
-        break;
-    }
-    case PROP_UNSIGNED_SHORT_ATTR:
-    {
-        g_value_set_uint(value, coreSelf->unsignedShortAttr());
-        break;
-    }
-    case PROP_INT_ATTR:
-    {
-        g_value_set_long(value, coreSelf->intAttr());
-        break;
-    }
-    case PROP_LONG_LONG_ATTR:
-    {
-        g_value_set_int64(value, coreSelf->longLongAttr());
-        break;
-    }
-    case PROP_UNSIGNED_LONG_LONG_ATTR:
-    {
-        g_value_set_uint64(value, coreSelf->unsignedLongLongAttr());
-        break;
-    }
-    case PROP_STRING_ATTR:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
-        break;
-    }
-    case PROP_TEST_OBJ_ATTR:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_XML_OBJ_ATTR:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->xmlObjAttr();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_CREATE:
-    {
-        g_value_set_boolean(value, coreSelf->isCreate());
-        break;
-    }
-    case PROP_REFLECTED_STRING_ATTR:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr)));
-        break;
-    }
-    case PROP_REFLECTED_INTEGRAL_ATTR:
-    {
-        g_value_set_long(value, coreSelf->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
-        break;
-    }
-    case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
-    {
-        g_value_set_ulong(value, coreSelf->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr));
-        break;
-    }
-    case PROP_REFLECTED_BOOLEAN_ATTR:
-    {
-        g_value_set_boolean(value, coreSelf->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr));
-        break;
-    }
-    case PROP_REFLECTED_URL_ATTR:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr)));
-        break;
-    }
-    case PROP_REFLECTED_STRING_ATTR:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr)));
-        break;
-    }
-    case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
-    {
-        g_value_set_long(value, coreSelf->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
-        break;
-    }
-    case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
-    {
-        g_value_set_boolean(value, coreSelf->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr));
-        break;
-    }
-    case PROP_REFLECTED_CUSTOM_URL_ATTR:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr)));
-        break;
-    }
-    case PROP_ATTR_WITH_GETTER_EXCEPTION:
-    {
-        WebCore::ExceptionCode ec = 0;
-        g_value_set_long(value, coreSelf->attrWithGetterException(ec));
-        break;
-    }
-    case PROP_ATTR_WITH_SETTER_EXCEPTION:
-    {
-        g_value_set_long(value, coreSelf->attrWithSetterException());
-        break;
-    }
-    case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
-    {
-        WebCore::ExceptionCode ec = 0;
-        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithGetterException(ec)));
-        break;
-    }
-    case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithSetterException()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_STATE_ATTRIBUTE:
-    {
-        g_value_set_long(value, coreSelf->withScriptStateAttribute());
-        break;
-    }
-    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAttribute();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES:
-    {
-        WebCore::ExceptionCode ec = 0;
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptStateAttributeRaises(ec);
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES:
-    {
-        WebCore::ExceptionCode ec = 0;
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAttributeRaises(ec);
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAndScriptStateAttribute();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES:
-    {
-        WebCore::ExceptionCode ec = 0;
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAndScriptStateAttributeRaises(ec);
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAndScriptStateWithSpacesAttribute();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE:
-    {
-        RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptArgumentsAndCallStackAttribute();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-#if ENABLE(Condition1)
-    case PROP_CONDITIONAL_ATTR1:
-    {
-        g_value_set_long(value, coreSelf->conditionalAttr1());
-        break;
-    }
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
-    case PROP_CONDITIONAL_ATTR2:
-    {
-        g_value_set_long(value, coreSelf->conditionalAttr2());
-        break;
-    }
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
-    case PROP_CONDITIONAL_ATTR3:
-    {
-        g_value_set_long(value, coreSelf->conditionalAttr3());
-        break;
-    }
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-    case PROP_CONTENT_DOCUMENT:
-    {
-        RefPtr<WebCore::Document> ptr = coreSelf->contentDocument();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_MUTABLE_POINT:
-    {
-        RefPtr<WebCore::SVGPoint> ptr = coreSelf->mutablePoint();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_IMMUTABLE_POINT:
-    {
-        RefPtr<WebCore::SVGPoint> ptr = coreSelf->immutablePoint();
-        g_value_set_object(value, WebKit::kit(ptr.get()));
-        break;
-    }
-    case PROP_STRAWBERRY:
-    {
-        g_value_set_int(value, coreSelf->blueberry());
-        break;
-    }
-    case PROP_STRICT_FLOAT:
-    {
-        g_value_set_float(value, coreSelf->strictFloat());
-        break;
-    }
-    case PROP_DESCRIPTION:
-    {
-        g_value_set_long(value, coreSelf->description());
-        break;
-    }
-    case PROP_ID:
-    {
-        g_value_set_long(value, coreSelf->id());
-        break;
-    }
-    case PROP_HASH:
-    {
-        g_value_take_string(value, convertToUTF8String(coreSelf->hash()));
-        break;
-    }
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
-        break;
-    }
-}
-
-
-static void webkit_dom_test_obj_constructed(GObject* object)
-{
-
-    if (G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructed)
-        G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructed(object);
-}
-
-static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
-{
-    GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
-    gobjectClass->finalize = webkit_dom_test_obj_finalize;
-    gobjectClass->set_property = webkit_dom_test_obj_set_property;
-    gobjectClass->get_property = webkit_dom_test_obj_get_property;
-    gobjectClass->constructed = webkit_dom_test_obj_constructed;
+    GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
+    gobjectClass->finalize = webkit_dom_test_obj_finalize;
+    gobjectClass->set_property = webkit_dom_test_obj_set_property;
+    gobjectClass->get_property = webkit_dom_test_obj_get_property;
+    gobjectClass->constructed = webkit_dom_test_obj_constructed;
 
     g_object_class_install_property(gobjectClass,
                                     PROP_READ_ONLY_INT_ATTR,
@@ -2304,122 +846,1612 @@ G_MAXLONG, /* max */
                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
                                                            WEBKIT_PARAM_READWRITE));
 #if ENABLE(Condition1)
-    g_object_class_install_property(gobjectClass,
-                                    PROP_CONDITIONAL_ATTR1,
-                                    g_param_spec_long("conditional-attr1", /* name */
-                                                           "test_obj_conditional-attr1", /* short description */
-                                                           "read-write  glong TestObj.conditional-attr1", /* longer - could do with some extra doc stuff here */
-                                                           G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
-                                                           WEBKIT_PARAM_READWRITE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_CONDITIONAL_ATTR1,
+                                    g_param_spec_long("conditional-attr1", /* name */
+                                                           "test_obj_conditional-attr1", /* short description */
+                                                           "read-write  glong TestObj.conditional-attr1", /* longer - could do with some extra doc stuff here */
+                                                           G_MINLONG, /* min */
+G_MAXLONG, /* max */
+0, /* default */
+                                                           WEBKIT_PARAM_READWRITE));
+#endif /* ENABLE(Condition1) */
+#if ENABLE(Condition1) && ENABLE(Condition2)
+    g_object_class_install_property(gobjectClass,
+                                    PROP_CONDITIONAL_ATTR2,
+                                    g_param_spec_long("conditional-attr2", /* name */
+                                                           "test_obj_conditional-attr2", /* short description */
+                                                           "read-write  glong TestObj.conditional-attr2", /* longer - could do with some extra doc stuff here */
+                                                           G_MINLONG, /* min */
+G_MAXLONG, /* max */
+0, /* default */
+                                                           WEBKIT_PARAM_READWRITE));
+#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_object_class_install_property(gobjectClass,
+                                    PROP_CONDITIONAL_ATTR3,
+                                    g_param_spec_long("conditional-attr3", /* name */
+                                                           "test_obj_conditional-attr3", /* short description */
+                                                           "read-write  glong TestObj.conditional-attr3", /* longer - could do with some extra doc stuff here */
+                                                           G_MINLONG, /* min */
+G_MAXLONG, /* max */
+0, /* default */
+                                                           WEBKIT_PARAM_READWRITE));
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+    g_object_class_install_property(gobjectClass,
+                                    PROP_CONTENT_DOCUMENT,
+                                    g_param_spec_object("content-document", /* name */
+                                                           "test_obj_content-document", /* short description */
+                                                           "read-only  WebKitDOMDocument* TestObj.content-document", /* longer - could do with some extra doc stuff here */
+                                                           WEBKIT_TYPE_DOM_DOCUMENT, /* gobject type */
+                                                           WEBKIT_PARAM_READABLE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_MUTABLE_POINT,
+                                    g_param_spec_object("mutable-point", /* name */
+                                                           "test_obj_mutable-point", /* short description */
+                                                           "read-write  WebKitDOMSVGPoint* TestObj.mutable-point", /* longer - could do with some extra doc stuff here */
+                                                           WEBKIT_TYPE_DOM_SVG_POINT, /* gobject type */
+                                                           WEBKIT_PARAM_READWRITE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_IMMUTABLE_POINT,
+                                    g_param_spec_object("immutable-point", /* name */
+                                                           "test_obj_immutable-point", /* short description */
+                                                           "read-write  WebKitDOMSVGPoint* TestObj.immutable-point", /* longer - could do with some extra doc stuff here */
+                                                           WEBKIT_TYPE_DOM_SVG_POINT, /* gobject type */
+                                                           WEBKIT_PARAM_READWRITE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_STRAWBERRY,
+                                    g_param_spec_int("strawberry", /* name */
+                                                           "test_obj_strawberry", /* short description */
+                                                           "read-write  gint TestObj.strawberry", /* longer - could do with some extra doc stuff here */
+                                                           G_MININT, /* min */
+G_MAXINT, /* max */
+0, /* default */
+                                                           WEBKIT_PARAM_READWRITE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_STRICT_FLOAT,
+                                    g_param_spec_float("strict-float", /* name */
+                                                           "test_obj_strict-float", /* short description */
+                                                           "read-write  gfloat TestObj.strict-float", /* longer - could do with some extra doc stuff here */
+                                                           -G_MAXFLOAT, /* min */
+G_MAXFLOAT, /* max */
+0.0, /* default */
+                                                           WEBKIT_PARAM_READWRITE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_DESCRIPTION,
+                                    g_param_spec_long("description", /* name */
+                                                           "test_obj_description", /* short description */
+                                                           "read-only  glong TestObj.description", /* longer - could do with some extra doc stuff here */
+                                                           G_MINLONG, /* min */
+G_MAXLONG, /* max */
+0, /* default */
+                                                           WEBKIT_PARAM_READABLE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_ID,
+                                    g_param_spec_long("id", /* name */
+                                                           "test_obj_id", /* short description */
+                                                           "read-write  glong TestObj.id", /* longer - could do with some extra doc stuff here */
+                                                           G_MINLONG, /* min */
+G_MAXLONG, /* max */
+0, /* default */
+                                                           WEBKIT_PARAM_READWRITE));
+    g_object_class_install_property(gobjectClass,
+                                    PROP_HASH,
+                                    g_param_spec_string("hash", /* name */
+                                                           "test_obj_hash", /* short description */
+                                                           "read-only  gchar* TestObj.hash", /* longer - could do with some extra doc stuff here */
+                                                           "", /* default */
+                                                           WEBKIT_PARAM_READABLE));
+
+
+}
+
+static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
+{
+}
+
+void
+webkit_dom_test_obj_void_method(WebKitDOMTestObj* self)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->voidMethod();
+}
+
+void
+webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(str_arg);
+    g_return_if_fail(obj_arg);
+    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
+    WebCore::TestObj * converted_obj_arg = NULL;
+    if (obj_arg != NULL) {
+        converted_obj_arg = WebKit::core(obj_arg);
+        g_return_if_fail(converted_obj_arg);
+    }
+    item->voidMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg);
+}
+
+glong
+webkit_dom_test_obj_int_method(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->intMethod();
+    return res;
+}
+
+glong
+webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_val_if_fail(str_arg, 0);
+    g_return_val_if_fail(obj_arg, 0);
+    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
+    WebCore::TestObj * converted_obj_arg = NULL;
+    if (obj_arg != NULL) {
+        converted_obj_arg = WebKit::core(obj_arg);
+        g_return_val_if_fail(converted_obj_arg, 0);
+    }
+    glong res = item->intMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg);
+    return res;
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethod());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_val_if_fail(str_arg, 0);
+    g_return_val_if_fail(obj_arg, 0);
+    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
+    WebCore::TestObj * converted_obj_arg = NULL;
+    if (obj_arg != NULL) {
+        converted_obj_arg = WebKit::core(obj_arg);
+        g_return_val_if_fail(converted_obj_arg, 0);
+    }
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg));
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_method_with_sequence_arg(WebKitDOMTestObj* self, WebKitDOMsequence* )
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail();
+    WebCore::sequence * converted_ = NULL;
+    if ( != NULL) {
+        converted_ = WebKit::core();
+        g_return_if_fail(converted_);
+    }
+    item->methodWithSequenceArg(converted_);
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_val_if_fail(str_arg, 0);
+    g_return_val_if_fail(obj_arg, 0);
+    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
+    WebCore::TestObj * converted_obj_arg = NULL;
+    if (obj_arg != NULL) {
+        converted_obj_arg = WebKit::core(obj_arg);
+        g_return_val_if_fail(converted_obj_arg, 0);
+    }
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->methodThatRequiresAllArgsAndThrows(converted_str_arg, converted_obj_arg, ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue* serialized_arg)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(serialized_arg);
+    WebCore::SerializedScriptValue * converted_serialized_arg = NULL;
+    if (serialized_arg != NULL) {
+        converted_serialized_arg = WebKit::core(serialized_arg);
+        g_return_if_fail(converted_serialized_arg);
+    }
+    item->serializedValue(converted_serialized_arg);
+}
+
+void
+webkit_dom_test_obj_idb_key(WebKitDOMTestObj* self, WebKitDOMIDBKey* key)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(key);
+    WebCore::IDBKey * converted_key = NULL;
+    if (key != NULL) {
+        converted_key = WebKit::core(key);
+        g_return_if_fail(converted_key);
+    }
+    item->idbKey(converted_key);
+}
+
+void
+webkit_dom_test_obj_options_object(WebKitDOMTestObj* self, WebKitDOMDictionary* oo, WebKitDOMDictionary* ooo)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(oo);
+    g_return_if_fail(ooo);
+    WebCore::Dictionary * converted_oo = NULL;
+    if (oo != NULL) {
+        converted_oo = WebKit::core(oo);
+        g_return_if_fail(converted_oo);
+    }
+    WebCore::Dictionary * converted_ooo = NULL;
+    if (ooo != NULL) {
+        converted_ooo = WebKit::core(ooo);
+        g_return_if_fail(converted_ooo);
+    }
+    item->optionsObject(converted_oo, converted_ooo);
+}
+
+void
+webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    item->methodWithException(ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+void
+webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->withScriptStateVoid();
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObj());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    item->withScriptStateVoidException(ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObjException(ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_with_script_execution_context(WebKitDOMTestObj* self)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->withScriptExecutionContext();
+}
+
+void
+webkit_dom_test_obj_with_script_execution_context_and_script_state(WebKitDOMTestObj* self)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->withScriptExecutionContextAndScriptState();
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_with_script_execution_context_and_script_state_obj_exception(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateObjException(ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_with_script_execution_context_and_script_state_with_spaces(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateWithSpaces());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->methodWithOptionalArg(opt);
+}
+
+void
+webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong non_opt, glong opt)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->methodWithNonOptionalArgAndOptionalArg(non_opt, opt);
+}
+
+void
+webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong non_opt, glong opt1, glong opt2)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
+}
+
+void
+webkit_dom_test_obj_method_with_optional_string(WebKitDOMTestObj* self, const gchar* str)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(str);
+    WTF::String converted_str = WTF::String::fromUTF8(str);
+    item->methodWithOptionalString(converted_str);
+}
+
+void
+webkit_dom_test_obj_method_with_optional_string_is_undefined(WebKitDOMTestObj* self, const gchar* str)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(str);
+    WTF::String converted_str = WTF::String::fromUTF8(str);
+    item->methodWithOptionalStringIsUndefined(converted_str);
+}
+
+void
+webkit_dom_test_obj_method_with_optional_string_is_null_string(WebKitDOMTestObj* self, const gchar* str)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(str);
+    WTF::String converted_str = WTF::String::fromUTF8(str);
+    item->methodWithOptionalStringIsNullString(converted_str);
+}
+
+gchar*
+webkit_dom_test_obj_conditional_method1(WebKitDOMTestObj* self)
+{
+#if ENABLE(Condition1)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->conditionalMethod1());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    return NULL;
+#endif /* ENABLE(Condition1) */
+}
+
+void
+webkit_dom_test_obj_conditional_method2(WebKitDOMTestObj* self)
+{
+#if ENABLE(Condition1) && ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->conditionalMethod2();
+#else
+#if !ENABLE(Condition1)
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+#endif
+#if !ENABLE(Condition2)
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif
+#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+}
+
+void
+webkit_dom_test_obj_conditional_method3(WebKitDOMTestObj* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->conditionalMethod3();
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+void
+webkit_dom_test_obj_class_method(WebKitDOMTestObj* self)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->classMethod();
+}
+
+glong
+webkit_dom_test_obj_class_method_with_optional(WebKitDOMTestObj* self, glong arg)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->classMethodWithOptional(arg);
+    return res;
+}
+
+void
+webkit_dom_test_obj_overloaded_method1(WebKitDOMTestObj* self, glong arg)
+{
+#if ENABLE(Condition1)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->overloadedMethod1(arg);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+#endif /* ENABLE(Condition1) */
+}
+
+void
+webkit_dom_test_obj_overloaded_method1(WebKitDOMTestObj* self, const gchar* type)
+{
+#if ENABLE(Condition1)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(type);
+    WTF::String converted_type = WTF::String::fromUTF8(type);
+    item->overloadedMethod1(converted_type);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+#endif /* ENABLE(Condition1) */
+}
+
+void
+webkit_dom_test_obj_convert1(WebKitDOMTestObj* self, WebKitDOMa* )
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail();
+    WebCore::a * converted_ = NULL;
+    if ( != NULL) {
+        converted_ = WebKit::core();
+        g_return_if_fail(converted_);
+    }
+    item->convert1(converted_);
+}
+
+void
+webkit_dom_test_obj_convert2(WebKitDOMTestObj* self, WebKitDOMb* )
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail();
+    WebCore::b * converted_ = NULL;
+    if ( != NULL) {
+        converted_ = WebKit::core();
+        g_return_if_fail(converted_);
+    }
+    item->convert2(converted_);
+}
+
+void
+webkit_dom_test_obj_convert3(WebKitDOMTestObj* self, WebKitDOMc* )
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail();
+    WebCore::c * converted_ = NULL;
+    if ( != NULL) {
+        converted_ = WebKit::core();
+        g_return_if_fail(converted_);
+    }
+    item->convert3(converted_);
+}
+
+void
+webkit_dom_test_obj_convert4(WebKitDOMTestObj* self, WebKitDOMd* )
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail();
+    WebCore::d * converted_ = NULL;
+    if ( != NULL) {
+        converted_ = WebKit::core();
+        g_return_if_fail(converted_);
+    }
+    item->convert4(converted_);
+}
+
+void
+webkit_dom_test_obj_convert5(WebKitDOMTestObj* self, WebKitDOMe* )
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail();
+    WebCore::e * converted_ = NULL;
+    if ( != NULL) {
+        converted_ = WebKit::core();
+        g_return_if_fail(converted_);
+    }
+    item->convert5(converted_);
+}
+
+WebKitDOMSVGPoint*
+webkit_dom_test_obj_mutable_point_function(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->mutablePointFunction());
+    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+WebKitDOMSVGPoint*
+webkit_dom_test_obj_immutable_point_function(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->immutablePointFunction());
+    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_orange(WebKitDOMTestObj* self)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->orange();
+}
+
+WebKitDOMbool*
+webkit_dom_test_obj_strict_function(WebKitDOMTestObj* self, const gchar* str, gfloat a, gint b, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_val_if_fail(str, 0);
+    WTF::String converted_str = WTF::String::fromUTF8(str);
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::bool> g_res = WTF::getPtr(item->strictFunction(converted_str, a, b, ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMbool* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+glong
+webkit_dom_test_obj_get_read_only_int_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->readOnlyIntAttr();
+    return res;
+}
+
+gchar*
+webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->readOnlyStringAttr());
+    return res;
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->readOnlyTestObjAttr());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+gshort
+webkit_dom_test_obj_get_short_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gshort res = item->shortAttr();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_short_attr(WebKitDOMTestObj* self, gshort value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setShortAttr(value);
+}
+
+gushort
+webkit_dom_test_obj_get_unsigned_short_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gushort res = item->unsignedShortAttr();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_unsigned_short_attr(WebKitDOMTestObj* self, gushort value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setUnsignedShortAttr(value);
+}
+
+glong
+webkit_dom_test_obj_get_int_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->intAttr();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_int_attr(WebKitDOMTestObj* self, glong value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setIntAttr(value);
+}
+
+gint64
+webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gint64 res = item->longLongAttr();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setLongLongAttr(value);
+}
+
+guint64
+webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    guint64 res = item->unsignedLongLongAttr();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setUnsignedLongLongAttr(value);
+}
+
+gchar*
+webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->stringAttr());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, const gchar* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    item->setStringAttr(converted_value);
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->testObjAttr());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setTestObjAttr(converted_value);
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_xml_obj_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->xmlObjAttr());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_xml_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setXMLObjAttr(converted_value);
+}
+
+gboolean
+webkit_dom_test_obj_get_create(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gboolean res = item->isCreate();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_create(WebKitDOMTestObj* self, gboolean value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setCreate(value);
+}
+
+gchar*
+webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    item->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, converted_value);
+}
+
+glong
+webkit_dom_test_obj_get_reflected_integral_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_integral_attr(WebKitDOMTestObj* self, glong value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, value);
+}
+
+gulong
+webkit_dom_test_obj_get_reflected_unsigned_integral_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gulong res = item->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_unsigned_integral_attr(WebKitDOMTestObj* self, gulong value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, value);
+}
+
+gboolean
+webkit_dom_test_obj_get_reflected_boolean_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gboolean res = item->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_boolean_attr(WebKitDOMTestObj* self, gboolean value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, value);
+}
+
+gchar*
+webkit_dom_test_obj_get_reflected_url_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_url_attr(WebKitDOMTestObj* self, const gchar* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    item->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, converted_value);
+}
+
+gchar*
+webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    item->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, converted_value);
+}
+
+glong
+webkit_dom_test_obj_get_reflected_custom_integral_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_custom_integral_attr(WebKitDOMTestObj* self, glong value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, value);
+}
+
+gboolean
+webkit_dom_test_obj_get_reflected_custom_boolean_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gboolean res = item->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_custom_boolean_attr(WebKitDOMTestObj* self, gboolean value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, value);
+}
+
+gchar*
+webkit_dom_test_obj_get_reflected_custom_url_attr(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_reflected_custom_url_attr(WebKitDOMTestObj* self, const gchar* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    item->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, converted_value);
+}
+
+glong
+webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    glong res = item->attrWithGetterException(ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    item->setAttrWithGetterException(value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+glong
+webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->attrWithSetterException();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    item->setAttrWithSetterException(value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+gchar*
+webkit_dom_test_obj_get_string_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    gchar* res = convertToUTF8String(item->stringAttrWithGetterException(ec));
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_string_attr_with_getter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    WebCore::ExceptionCode ec = 0;
+    item->setStringAttrWithGetterException(converted_value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+gchar*
+webkit_dom_test_obj_get_string_attr_with_setter_exception(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->stringAttrWithSetterException());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_string_attr_with_setter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WTF::String converted_value = WTF::String::fromUTF8(value);
+    WebCore::ExceptionCode ec = 0;
+    item->setStringAttrWithSetterException(converted_value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+glong
+webkit_dom_test_obj_get_with_script_state_attribute(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->withScriptStateAttribute();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_state_attribute(WebKitDOMTestObj* self, glong value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setWithScriptStateAttribute(value);
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_with_script_execution_context_attribute(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAttribute());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_execution_context_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setWithScriptExecutionContextAttribute(converted_value);
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_with_script_state_attribute_raises(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateAttributeRaises(ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    WebCore::ExceptionCode ec = 0;
+    item->setWithScriptStateAttributeRaises(converted_value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAttributeRaises(ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    WebCore::ExceptionCode ec = 0;
+    item->setWithScriptExecutionContextAttributeRaises(converted_value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateAttribute());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setWithScriptExecutionContextAndScriptStateAttribute(converted_value);
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute_raises(WebKitDOMTestObj* self, GError **error)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    WebCore::ExceptionCode ec = 0;
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateAttributeRaises(ec));
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    WebCore::ExceptionCode ec = 0;
+    item->setWithScriptExecutionContextAndScriptStateAttributeRaises(converted_value, ec);
+    if (ec) {
+        WebCore::ExceptionCodeDescription ecdesc(ec);
+        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+    }
+}
+
+WebKitDOMTestObj*
+webkit_dom_test_obj_get_with_script_execution_context_and_script_state_with_spaces_attribute(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAndScriptStateWithSpacesAttribute());
+    WebKitDOMTestObj* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_with_script_execution_context_and_script_state_with_spaces_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::TestObj * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(converted_value);
+}
+
+glong
+webkit_dom_test_obj_get_conditional_attr1(WebKitDOMTestObj* self)
+{
+#if ENABLE(Condition1)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->conditionalAttr1();
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    return static_cast<glong>(0);
+#endif /* ENABLE(Condition1) */
+}
+
+void
+webkit_dom_test_obj_set_conditional_attr1(WebKitDOMTestObj* self, glong value)
+{
+#if ENABLE(Condition1)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setConditionalAttr1(value);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
 #endif /* ENABLE(Condition1) */
+}
+
+glong
+webkit_dom_test_obj_get_conditional_attr2(WebKitDOMTestObj* self)
+{
+#if ENABLE(Condition1) && ENABLE(Condition2)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->conditionalAttr2();
+    return res;
+#else
+#if !ENABLE(Condition1)
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+#endif
+#if !ENABLE(Condition2)
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif
+    return static_cast<glong>(0);
+#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+}
+
+void
+webkit_dom_test_obj_set_conditional_attr2(WebKitDOMTestObj* self, glong value)
+{
 #if ENABLE(Condition1) && ENABLE(Condition2)
-    g_object_class_install_property(gobjectClass,
-                                    PROP_CONDITIONAL_ATTR2,
-                                    g_param_spec_long("conditional-attr2", /* name */
-                                                           "test_obj_conditional-attr2", /* short description */
-                                                           "read-write  glong TestObj.conditional-attr2", /* longer - could do with some extra doc stuff here */
-                                                           G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
-                                                           WEBKIT_PARAM_READWRITE));
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setConditionalAttr2(value);
+#else
+#if !ENABLE(Condition1)
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+#endif
+#if !ENABLE(Condition2)
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif
 #endif /* ENABLE(Condition1) && ENABLE(Condition2) */
+}
+
+glong
+webkit_dom_test_obj_get_conditional_attr3(WebKitDOMTestObj* self)
+{
 #if ENABLE(Condition1) || ENABLE(Condition2)
-    g_object_class_install_property(gobjectClass,
-                                    PROP_CONDITIONAL_ATTR3,
-                                    g_param_spec_long("conditional-attr3", /* name */
-                                                           "test_obj_conditional-attr3", /* short description */
-                                                           "read-write  glong TestObj.conditional-attr3", /* longer - could do with some extra doc stuff here */
-                                                           G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
-                                                           WEBKIT_PARAM_READWRITE));
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->conditionalAttr3();
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return static_cast<glong>(0);
 #endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-    g_object_class_install_property(gobjectClass,
-                                    PROP_CONTENT_DOCUMENT,
-                                    g_param_spec_object("content-document", /* name */
-                                                           "test_obj_content-document", /* short description */
-                                                           "read-only  WebKitDOMDocument* TestObj.content-document", /* longer - could do with some extra doc stuff here */
-                                                           WEBKIT_TYPE_DOM_DOCUMENT, /* gobject type */
-                                                           WEBKIT_PARAM_READABLE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_MUTABLE_POINT,
-                                    g_param_spec_object("mutable-point", /* name */
-                                                           "test_obj_mutable-point", /* short description */
-                                                           "read-write  WebKitDOMSVGPoint* TestObj.mutable-point", /* longer - could do with some extra doc stuff here */
-                                                           WEBKIT_TYPE_DOM_SVG_POINT, /* gobject type */
-                                                           WEBKIT_PARAM_READWRITE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_IMMUTABLE_POINT,
-                                    g_param_spec_object("immutable-point", /* name */
-                                                           "test_obj_immutable-point", /* short description */
-                                                           "read-write  WebKitDOMSVGPoint* TestObj.immutable-point", /* longer - could do with some extra doc stuff here */
-                                                           WEBKIT_TYPE_DOM_SVG_POINT, /* gobject type */
-                                                           WEBKIT_PARAM_READWRITE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_STRAWBERRY,
-                                    g_param_spec_int("strawberry", /* name */
-                                                           "test_obj_strawberry", /* short description */
-                                                           "read-write  gint TestObj.strawberry", /* longer - could do with some extra doc stuff here */
-                                                           G_MININT, /* min */
-G_MAXINT, /* max */
-0, /* default */
-                                                           WEBKIT_PARAM_READWRITE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_STRICT_FLOAT,
-                                    g_param_spec_float("strict-float", /* name */
-                                                           "test_obj_strict-float", /* short description */
-                                                           "read-write  gfloat TestObj.strict-float", /* longer - could do with some extra doc stuff here */
-                                                           -G_MAXFLOAT, /* min */
-G_MAXFLOAT, /* max */
-0.0, /* default */
-                                                           WEBKIT_PARAM_READWRITE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_DESCRIPTION,
-                                    g_param_spec_long("description", /* name */
-                                                           "test_obj_description", /* short description */
-                                                           "read-only  glong TestObj.description", /* longer - could do with some extra doc stuff here */
-                                                           G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
-                                                           WEBKIT_PARAM_READABLE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_ID,
-                                    g_param_spec_long("id", /* name */
-                                                           "test_obj_id", /* short description */
-                                                           "read-write  glong TestObj.id", /* longer - could do with some extra doc stuff here */
-                                                           G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
-                                                           WEBKIT_PARAM_READWRITE));
-    g_object_class_install_property(gobjectClass,
-                                    PROP_HASH,
-                                    g_param_spec_string("hash", /* name */
-                                                           "test_obj_hash", /* short description */
-                                                           "read-only  gchar* TestObj.hash", /* longer - could do with some extra doc stuff here */
-                                                           "", /* default */
-                                                           WEBKIT_PARAM_READABLE));
+}
 
+void
+webkit_dom_test_obj_set_conditional_attr3(WebKitDOMTestObj* self, glong value)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setConditionalAttr3(value);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
 
+WebKitDOMDocument*
+webkit_dom_test_obj_get_content_document(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::Document> g_res = WTF::getPtr(item->contentDocument());
+    WebKitDOMDocument* res = WebKit::kit(g_res.get());
+    return res;
 }
 
-static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
+WebKitDOMSVGPoint*
+webkit_dom_test_obj_get_mutable_point(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->mutablePoint());
+    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_mutable_point(WebKitDOMTestObj* self, WebKitDOMSVGPoint* value)
 {
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::SVGPoint * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setMutablePoint(converted_value);
 }
 
-namespace WebKit {
-WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
+WebKitDOMSVGPoint*
+webkit_dom_test_obj_get_immutable_point(WebKitDOMTestObj* self)
 {
-    g_return_val_if_fail(coreObject, 0);
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    PassRefPtr<WebCore::SVGPoint> g_res = WTF::getPtr(item->immutablePoint());
+    WebKitDOMSVGPoint* res = WebKit::kit(g_res.get());
+    return res;
+}
 
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
+void
+webkit_dom_test_obj_set_immutable_point(WebKitDOMTestObj* self, WebKitDOMSVGPoint* value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::SVGPoint * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setImmutablePoint(converted_value);
+}
 
-    return  WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_TYPE_DOM_TEST_OBJ,
-                                               "core-object", coreObject, NULL));
+gint
+webkit_dom_test_obj_get_strawberry(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gint res = item->blueberry();
+    return res;
 }
-} // namespace WebKit
+
+void
+webkit_dom_test_obj_set_strawberry(WebKitDOMTestObj* self, gint value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setBlueberry(value);
+}
+
+gfloat
+webkit_dom_test_obj_get_strict_float(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gfloat res = item->strictFloat();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_strict_float(WebKitDOMTestObj* self, gfloat value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setStrictFloat(value);
+}
+
+glong
+webkit_dom_test_obj_get_description(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->description();
+    return res;
+}
+
+glong
+webkit_dom_test_obj_get_id(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    glong res = item->id();
+    return res;
+}
+
+void
+webkit_dom_test_obj_set_id(WebKitDOMTestObj* self, glong value)
+{
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    item->setId(value);
+}
+
+gchar*
+webkit_dom_test_obj_get_hash(WebKitDOMTestObj* self)
+{
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestObj * item = WebKit::core(self);
+    gchar* res = convertToUTF8String(item->hash());
+    return res;
+}
+
index 96722f79753c39d2d1acd2ea704ba77dfbbc5561..2f7ae2aea87e8f17056b2fd68ec5954deef54b6a 100644 (file)
@@ -24,6 +24,8 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestObj.h"
+
+
 namespace WebKit {
     WebKitDOMTestObj *
     wrapTestObj(WebCore::TestObj *coreObject);
index 845a3737c1a12caa47a0f2a0a16d94f56b8e2030..da959dddb8cd2373543684a226f812738742e5b3 100644 (file)
@@ -21,8 +21,6 @@
 #include <glib-object.h>
 #include "config.h"
 
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 #include "DOMObjectCache.h"
 #include "webkitglobalsprivate.h"
 #include "webkitmarshal.h"
 
+#if ENABLE(Condition1) || ENABLE(Condition2)
+
 namespace WebKit {
-    
+
 WebKitDOMTestSerializedScriptValueInterface* kit(WebCore::TestSerializedScriptValueInterface* obj)
 {
     g_return_val_if_fail(obj, 0);
@@ -53,153 +53,37 @@ WebKitDOMTestSerializedScriptValueInterface* kit(WebCore::TestSerializedScriptVa
 
     return static_cast<WebKitDOMTestSerializedScriptValueInterface*>(DOMObjectCache::put(obj, WebKit::wrapTestSerializedScriptValueInterface(obj)));
 }
-    
-} // namespace WebKit //
-
-void
-webkit_dom_test_serialized_script_value_interface_accept_transfer_list(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* data, WebKitDOMArray* transfer_list)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    g_return_if_fail(data);
-    g_return_if_fail(transfer_list);
-    WebCore::SerializedScriptValue * converted_data = NULL;
-    if (data != NULL) {
-        converted_data = WebKit::core(data);
-        g_return_if_fail(converted_data);
-    }
-    WebCore::Array * converted_transfer_list = NULL;
-    if (transfer_list != NULL) {
-        converted_transfer_list = WebKit::core(transfer_list);
-        g_return_if_fail(converted_transfer_list);
-    }
-    item->acceptTransferList(converted_data, converted_transfer_list);
-}
 
-void
-webkit_dom_test_serialized_script_value_interface_multi_transfer_list(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* first, WebKitDOMArray* tx, WebKitDOMSerializedScriptValue* second, WebKitDOMArray* txx)
+WebCore::TestSerializedScriptValueInterface* core(WebKitDOMTestSerializedScriptValueInterface* request)
 {
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    g_return_if_fail(first);
-    g_return_if_fail(tx);
-    g_return_if_fail(second);
-    g_return_if_fail(txx);
-    WebCore::SerializedScriptValue * converted_first = NULL;
-    if (first != NULL) {
-        converted_first = WebKit::core(first);
-        g_return_if_fail(converted_first);
-    }
-    WebCore::Array * converted_tx = NULL;
-    if (tx != NULL) {
-        converted_tx = WebKit::core(tx);
-        g_return_if_fail(converted_tx);
-    }
-    WebCore::SerializedScriptValue * converted_second = NULL;
-    if (second != NULL) {
-        converted_second = WebKit::core(second);
-        g_return_if_fail(converted_second);
-    }
-    WebCore::Array * converted_txx = NULL;
-    if (txx != NULL) {
-        converted_txx = WebKit::core(txx);
-        g_return_if_fail(converted_txx);
-    }
-    item->multiTransferList(converted_first, converted_tx, converted_second, converted_txx);
-}
+    g_return_val_if_fail(request, 0);
 
-WebKitDOMSerializedScriptValue*
-webkit_dom_test_serialized_script_value_interface_get_value(WebKitDOMTestSerializedScriptValueInterface* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->value());
-    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
-    return res;
-}
+    WebCore::TestSerializedScriptValueInterface* coreObject = static_cast<WebCore::TestSerializedScriptValueInterface*>(WEBKIT_DOM_OBJECT(request)->coreObject);
+    g_return_val_if_fail(coreObject, 0);
 
-void
-webkit_dom_test_serialized_script_value_interface_set_value(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::SerializedScriptValue * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setValue(converted_value);
+    return coreObject;
 }
 
-WebKitDOMSerializedScriptValue*
-webkit_dom_test_serialized_script_value_interface_get_readonly_value(WebKitDOMTestSerializedScriptValueInterface* self)
+WebKitDOMTestSerializedScriptValueInterface* wrapTestSerializedScriptValueInterface(WebCore::TestSerializedScriptValueInterface* coreObject)
 {
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->readonlyValue());
-    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
-    return res;
-}
+    g_return_val_if_fail(coreObject, 0);
 
-WebKitDOMSerializedScriptValue*
-webkit_dom_test_serialized_script_value_interface_get_cached_value(WebKitDOMTestSerializedScriptValueInterface* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->cachedValue());
-    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
-    return res;
-}
+    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
+     * in a C-allocated GObject structure.  See the finalize() code for the
+     * matching deref().
+     */
+    coreObject->ref();
 
-void
-webkit_dom_test_serialized_script_value_interface_set_cached_value(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* value)
-{
-    g_return_if_fail(self);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    g_return_if_fail(value);
-    WebCore::SerializedScriptValue * converted_value = NULL;
-    if (value != NULL) {
-        converted_value = WebKit::core(value);
-        g_return_if_fail(converted_value);
-    }
-    item->setCachedValue(converted_value);
+    return  WEBKIT_DOM_TEST_SERIALIZED_SCRIPT_VALUE_INTERFACE(g_object_new(WEBKIT_TYPE_DOM_TEST_SERIALIZED_SCRIPT_VALUE_INTERFACE,
+                                               "core-object", coreObject, NULL));
 }
 
-WebKitDOMSerializedScriptValue*
-webkit_dom_test_serialized_script_value_interface_get_cached_readonly_value(WebKitDOMTestSerializedScriptValueInterface* self)
-{
-    g_return_val_if_fail(self, 0);
-    WebCore::JSMainThreadNullState state;
-    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
-    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->cachedReadonlyValue());
-    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
-    return res;
-}
+} // namespace WebKit
 
+#endif // ENABLE(Condition1) || ENABLE(Condition2)
 
 G_DEFINE_TYPE(WebKitDOMTestSerializedScriptValueInterface, webkit_dom_test_serialized_script_value_interface, WEBKIT_TYPE_DOM_OBJECT)
 
-namespace WebKit {
-
-WebCore::TestSerializedScriptValueInterface* core(WebKitDOMTestSerializedScriptValueInterface* request)
-{
-    g_return_val_if_fail(request, 0);
-
-    WebCore::TestSerializedScriptValueInterface* coreObject = static_cast<WebCore::TestSerializedScriptValueInterface*>(WEBKIT_DOM_OBJECT(request)->coreObject);
-    g_return_val_if_fail(coreObject, 0);
-
-    return coreObject;
-}
-
-} // namespace WebKit
 enum {
     PROP_0,
     PROP_VALUE,
@@ -208,9 +92,9 @@ enum {
     PROP_CACHED_READONLY_VALUE,
 };
 
-
 static void webkit_dom_test_serialized_script_value_interface_finalize(GObject* object)
 {
+#if ENABLE(Condition1) || ENABLE(Condition2)
     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
     
     if (dom_object->coreObject) {
@@ -221,6 +105,7 @@ static void webkit_dom_test_serialized_script_value_interface_finalize(GObject*
 
         dom_object->coreObject = NULL;
     }
+#endif // ENABLE(Condition1) || ENABLE(Condition2)
 
     G_OBJECT_CLASS(webkit_dom_test_serialized_script_value_interface_parent_class)->finalize(object);
 }
@@ -324,19 +209,175 @@ static void webkit_dom_test_serialized_script_value_interface_init(WebKitDOMTest
 {
 }
 
-namespace WebKit {
-WebKitDOMTestSerializedScriptValueInterface* wrapTestSerializedScriptValueInterface(WebCore::TestSerializedScriptValueInterface* coreObject)
+void
+webkit_dom_test_serialized_script_value_interface_accept_transfer_list(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* data, WebKitDOMArray* transfer_list)
 {
-    g_return_val_if_fail(coreObject, 0);
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    g_return_if_fail(data);
+    g_return_if_fail(transfer_list);
+    WebCore::SerializedScriptValue * converted_data = NULL;
+    if (data != NULL) {
+        converted_data = WebKit::core(data);
+        g_return_if_fail(converted_data);
+    }
+    WebCore::Array * converted_transfer_list = NULL;
+    if (transfer_list != NULL) {
+        converted_transfer_list = WebKit::core(transfer_list);
+        g_return_if_fail(converted_transfer_list);
+    }
+    item->acceptTransferList(converted_data, converted_transfer_list);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
 
-    /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
-     * in a C-allocated GObject structure.  See the finalize() code for the
-     * matching deref().
-     */
-    coreObject->ref();
+void
+webkit_dom_test_serialized_script_value_interface_multi_transfer_list(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* first, WebKitDOMArray* tx, WebKitDOMSerializedScriptValue* second, WebKitDOMArray* txx)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    g_return_if_fail(first);
+    g_return_if_fail(tx);
+    g_return_if_fail(second);
+    g_return_if_fail(txx);
+    WebCore::SerializedScriptValue * converted_first = NULL;
+    if (first != NULL) {
+        converted_first = WebKit::core(first);
+        g_return_if_fail(converted_first);
+    }
+    WebCore::Array * converted_tx = NULL;
+    if (tx != NULL) {
+        converted_tx = WebKit::core(tx);
+        g_return_if_fail(converted_tx);
+    }
+    WebCore::SerializedScriptValue * converted_second = NULL;
+    if (second != NULL) {
+        converted_second = WebKit::core(second);
+        g_return_if_fail(converted_second);
+    }
+    WebCore::Array * converted_txx = NULL;
+    if (txx != NULL) {
+        converted_txx = WebKit::core(txx);
+        g_return_if_fail(converted_txx);
+    }
+    item->multiTransferList(converted_first, converted_tx, converted_second, converted_txx);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
 
-    return  WEBKIT_DOM_TEST_SERIALIZED_SCRIPT_VALUE_INTERFACE(g_object_new(WEBKIT_TYPE_DOM_TEST_SERIALIZED_SCRIPT_VALUE_INTERFACE,
-                                               "core-object", coreObject, NULL));
+WebKitDOMSerializedScriptValue*
+webkit_dom_test_serialized_script_value_interface_get_value(WebKitDOMTestSerializedScriptValueInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->value());
+    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
 }
-} // namespace WebKit
+
+void
+webkit_dom_test_serialized_script_value_interface_set_value(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* value)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::SerializedScriptValue * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setValue(converted_value);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+WebKitDOMSerializedScriptValue*
+webkit_dom_test_serialized_script_value_interface_get_readonly_value(WebKitDOMTestSerializedScriptValueInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->readonlyValue());
+    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+WebKitDOMSerializedScriptValue*
+webkit_dom_test_serialized_script_value_interface_get_cached_value(WebKitDOMTestSerializedScriptValueInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->cachedValue());
+    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+void
+webkit_dom_test_serialized_script_value_interface_set_cached_value(WebKitDOMTestSerializedScriptValueInterface* self, WebKitDOMSerializedScriptValue* value)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_if_fail(self);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    g_return_if_fail(value);
+    WebCore::SerializedScriptValue * converted_value = NULL;
+    if (value != NULL) {
+        converted_value = WebKit::core(value);
+        g_return_if_fail(converted_value);
+    }
+    item->setCachedValue(converted_value);
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
 #endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
+WebKitDOMSerializedScriptValue*
+webkit_dom_test_serialized_script_value_interface_get_cached_readonly_value(WebKitDOMTestSerializedScriptValueInterface* self)
+{
+#if ENABLE(Condition1) || ENABLE(Condition2)
+    g_return_val_if_fail(self, 0);
+    WebCore::JSMainThreadNullState state;
+    WebCore::TestSerializedScriptValueInterface * item = WebKit::core(self);
+    PassRefPtr<WebCore::SerializedScriptValue> g_res = WTF::getPtr(item->cachedReadonlyValue());
+    WebKitDOMSerializedScriptValue* res = WebKit::kit(g_res.get());
+    return res;
+#else
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
+    WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
+    return NULL;
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+}
+
index 82e79a26f17f7ce6b635c37d9f25d27244f3fb7d..3533c2681c5a53c62a11753adec58e5a75a78e1f 100644 (file)
@@ -24,6 +24,9 @@
 #include <glib-object.h>
 #include <webkit/WebKitDOMObject.h>
 #include "TestSerializedScriptValueInterface.h"
+
+#if ENABLE(Condition1) || ENABLE(Condition2)
+
 namespace WebKit {
     WebKitDOMTestSerializedScriptValueInterface *
     wrapTestSerializedScriptValueInterface(WebCore::TestSerializedScriptValueInterface *coreObject);
@@ -36,4 +39,6 @@ namespace WebKit {
 
 } // namespace WebKit
 
+#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
+
 #endif /* WEB_KIT_DOM_TEST_SERIALIZED_SCRIPT_VALUE_INTERFACE_PRIVATE_H */
index 89f3a9aa389c26c2938c63ed7897873f98c613e0..5f82d6ed01e84037a688c50ad0147cfd5ddf9dc6 100644 (file)
@@ -1,3 +1,15 @@
+2012-03-23  Zan Dobersek  <zandobersek@gmail.com>
+
+        [GObject bindings] Supplemental interfaces are not disabled with the "Conditional" attribute
+        https://bugs.webkit.org/show_bug.cgi?id=80030
+
+        Reviewed by Martin Robinson.
+
+        Add a private macro that can be used when necessary to throw a warning
+        about a future not enabled at compile-time.
+
+        * webkit/webkitglobalsprivate.h:
+
 2012-03-23  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Add a way to expose well known names for items in the default context menu
index a2227b58fed985b0a35580f50db56f91d4d42030..80cc402ceb5a5084bb5e96160c255a99726c816e 100644 (file)
@@ -28,6 +28,8 @@
 #define WEBKIT_PARAM_READABLE ((GParamFlags)(G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB))
 #define WEBKIT_PARAM_READWRITE ((GParamFlags)(G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB))
 
+#define WEBKIT_WARN_FEATURE_NOT_PRESENT(Feature) g_warning("WebKitGTK+ was not compiled with support for " Feature);
+
 extern "C" {
 
 void webkitInit();