Get rid of custom bindings for HTMLLinkElement.sizes setter
[WebKit-https.git] / Source / WebCore / bindings / scripts / test / GObject / WebKitDOMTestObj.cpp
1 /*
2  *  This file is part of the WebKit open source project.
3  *  This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4  *
5  *  This library is free software; you can redistribute it and/or
6  *  modify it under the terms of the GNU Library General Public
7  *  License as published by the Free Software Foundation; either
8  *  version 2 of the License, or (at your option) any later version.
9  *
10  *  This library is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  *  Library General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Library General Public License
16  *  along with this library; see the file COPYING.LIB.  If not, write to
17  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  *  Boston, MA 02110-1301, USA.
19  */
20
21 #include "config.h"
22 #include "WebKitDOMTestObj.h"
23
24 #include "CSSImportRule.h"
25 #include "DOMObjectCache.h"
26 #include "Document.h"
27 #include "ExceptionCode.h"
28 #include "ExceptionCodeDescription.h"
29 #include "HTMLNames.h"
30 #include "JSMainThreadExecState.h"
31 #include "SerializedScriptValue.h"
32 #include "WebKitDOMDictionaryPrivate.h"
33 #include "WebKitDOMDocumentPrivate.h"
34 #include "WebKitDOMNodePrivate.h"
35 #include "WebKitDOMPrivate.h"
36 #include "WebKitDOMSVGPointPrivate.h"
37 #include "WebKitDOMTestEnumTypePrivate.h"
38 #include "WebKitDOMTestNodePrivate.h"
39 #include "WebKitDOMTestObjPrivate.h"
40 #include "WebKitDOMboolPrivate.h"
41 #include "gobject/ConvertToUTF8String.h"
42 #include <wtf/GetPtr.h>
43 #include <wtf/RefPtr.h>
44
45 #define WEBKIT_DOM_TEST_OBJ_GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE(obj, WEBKIT_DOM_TYPE_TEST_OBJ, WebKitDOMTestObjPrivate)
46
47 typedef struct _WebKitDOMTestObjPrivate {
48     RefPtr<WebCore::TestObj> coreObject;
49 } WebKitDOMTestObjPrivate;
50
51 namespace WebKit {
52
53 WebKitDOMTestObj* kit(WebCore::TestObj* obj)
54 {
55     if (!obj)
56         return 0;
57
58     if (gpointer ret = DOMObjectCache::get(obj))
59         return WEBKIT_DOM_TEST_OBJ(ret);
60
61     return wrapTestObj(obj);
62 }
63
64 WebCore::TestObj* core(WebKitDOMTestObj* request)
65 {
66     return request ? static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject) : 0;
67 }
68
69 WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
70 {
71     ASSERT(coreObject);
72     return WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_DOM_TYPE_TEST_OBJ, "core-object", coreObject, nullptr));
73 }
74
75 } // namespace WebKit
76
77 G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_DOM_TYPE_OBJECT)
78
79 enum {
80     PROP_0,
81     PROP_READ_ONLY_LONG_ATTR,
82     PROP_READ_ONLY_STRING_ATTR,
83     PROP_READ_ONLY_TEST_OBJ_ATTR,
84     PROP_BYTE_ATTR,
85     PROP_OCTET_ATTR,
86     PROP_SHORT_ATTR,
87     PROP_UNSIGNED_SHORT_ATTR,
88     PROP_LONG_ATTR,
89     PROP_LONG_LONG_ATTR,
90     PROP_UNSIGNED_LONG_LONG_ATTR,
91     PROP_STRING_ATTR,
92     PROP_TEST_OBJ_ATTR,
93     PROP_XML_OBJ_ATTR,
94     PROP_CREATE,
95     PROP_REFLECTED_STRING_ATTR,
96     PROP_REFLECTED_INTEGRAL_ATTR,
97     PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR,
98     PROP_REFLECTED_BOOLEAN_ATTR,
99     PROP_REFLECTED_URL_ATTR,
100     PROP_REFLECTED_STRING_ATTR,
101     PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR,
102     PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR,
103     PROP_REFLECTED_CUSTOM_URL_ATTR,
104     PROP_ATTR_WITH_GETTER_EXCEPTION,
105     PROP_ATTR_WITH_SETTER_EXCEPTION,
106     PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
107     PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
108     PROP_STRICT_TYPE_CHECKING_ATTRIBUTE,
109     PROP_WITH_SCRIPT_STATE_ATTRIBUTE,
110     PROP_WITH_CALL_WITH_AND_SETTER_CALL_WITH_ATTRIBUTE,
111     PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE,
112     PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES,
113     PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES,
114     PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE,
115     PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES,
116     PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE,
117     PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE,
118     PROP_CONDITIONAL_ATTR1,
119     PROP_CONDITIONAL_ATTR2,
120     PROP_CONDITIONAL_ATTR3,
121     PROP_ANY_ATTRIBUTE,
122     PROP_CONTENT_DOCUMENT,
123     PROP_MUTABLE_POINT,
124     PROP_IMMUTABLE_POINT,
125     PROP_STRAWBERRY,
126     PROP_STRICT_FLOAT,
127     PROP_DESCRIPTION,
128     PROP_ID,
129     PROP_HASH,
130     PROP_REPLACEABLE_ATTRIBUTE,
131     PROP_NULLABLE_DOUBLE_ATTRIBUTE,
132     PROP_NULLABLE_LONG_ATTRIBUTE,
133     PROP_NULLABLE_BOOLEAN_ATTRIBUTE,
134     PROP_NULLABLE_STRING_ATTRIBUTE,
135     PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE,
136     PROP_NULLABLE_STRING_VALUE,
137     PROP_ATTRIBUTE,
138     PROP_PUT_FORWARDS_ATTRIBUTE,
139     PROP_PUT_FORWARDS_NULLABLE_ATTRIBUTE,
140 };
141
142 static void webkit_dom_test_obj_finalize(GObject* object)
143 {
144     WebKitDOMTestObjPrivate* priv = WEBKIT_DOM_TEST_OBJ_GET_PRIVATE(object);
145
146     WebKit::DOMObjectCache::forget(priv->coreObject.get());
147
148     priv->~WebKitDOMTestObjPrivate();
149     G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
150 }
151
152 static void webkit_dom_test_obj_set_property(GObject* object, guint propertyId, const GValue* value, GParamSpec* pspec)
153 {
154     WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
155
156     switch (propertyId) {
157     case PROP_BYTE_ATTR:
158         webkit_dom_test_obj_set_byte_attr(self, g_value_get_int8(value));
159         break;
160     case PROP_OCTET_ATTR:
161         webkit_dom_test_obj_set_octet_attr(self, g_value_get_uint8(value));
162         break;
163     case PROP_SHORT_ATTR:
164         webkit_dom_test_obj_set_short_attr(self, g_value_get_int(value));
165         break;
166     case PROP_UNSIGNED_SHORT_ATTR:
167         webkit_dom_test_obj_set_unsigned_short_attr(self, g_value_get_uint(value));
168         break;
169     case PROP_LONG_ATTR:
170         webkit_dom_test_obj_set_long_attr(self, g_value_get_long(value));
171         break;
172     case PROP_LONG_LONG_ATTR:
173         webkit_dom_test_obj_set_long_long_attr(self, g_value_get_int64(value));
174         break;
175     case PROP_UNSIGNED_LONG_LONG_ATTR:
176         webkit_dom_test_obj_set_unsigned_long_long_attr(self, g_value_get_uint64(value));
177         break;
178     case PROP_STRING_ATTR:
179         webkit_dom_test_obj_set_string_attr(self, g_value_get_string(value));
180         break;
181     case PROP_CREATE:
182         webkit_dom_test_obj_set_create(self, g_value_get_boolean(value));
183         break;
184     case PROP_REFLECTED_STRING_ATTR:
185         webkit_dom_test_obj_set_reflected_string_attr(self, g_value_get_string(value));
186         break;
187     case PROP_REFLECTED_INTEGRAL_ATTR:
188         webkit_dom_test_obj_set_reflected_integral_attr(self, g_value_get_long(value));
189         break;
190     case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
191         webkit_dom_test_obj_set_reflected_unsigned_integral_attr(self, g_value_get_ulong(value));
192         break;
193     case PROP_REFLECTED_BOOLEAN_ATTR:
194         webkit_dom_test_obj_set_reflected_boolean_attr(self, g_value_get_boolean(value));
195         break;
196     case PROP_REFLECTED_URL_ATTR:
197         webkit_dom_test_obj_set_reflected_url_attr(self, g_value_get_string(value));
198         break;
199     case PROP_REFLECTED_STRING_ATTR:
200         webkit_dom_test_obj_set_reflected_string_attr(self, g_value_get_string(value));
201         break;
202     case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
203         webkit_dom_test_obj_set_reflected_custom_integral_attr(self, g_value_get_long(value));
204         break;
205     case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
206         webkit_dom_test_obj_set_reflected_custom_boolean_attr(self, g_value_get_boolean(value));
207         break;
208     case PROP_REFLECTED_CUSTOM_URL_ATTR:
209         webkit_dom_test_obj_set_reflected_custom_url_attr(self, g_value_get_string(value));
210         break;
211     case PROP_ATTR_WITH_GETTER_EXCEPTION:
212         webkit_dom_test_obj_set_attr_with_getter_exception(self, g_value_get_long(value));
213         break;
214     case PROP_ATTR_WITH_SETTER_EXCEPTION:
215         webkit_dom_test_obj_set_attr_with_setter_exception(self, g_value_get_long(value), nullptr);
216         break;
217     case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
218         webkit_dom_test_obj_set_string_attr_with_getter_exception(self, g_value_get_string(value));
219         break;
220     case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
221         webkit_dom_test_obj_set_string_attr_with_setter_exception(self, g_value_get_string(value), nullptr);
222         break;
223     case PROP_WITH_SCRIPT_STATE_ATTRIBUTE:
224         webkit_dom_test_obj_set_with_script_state_attribute(self, g_value_get_long(value));
225         break;
226     case PROP_WITH_CALL_WITH_AND_SETTER_CALL_WITH_ATTRIBUTE:
227         webkit_dom_test_obj_set_with_call_with_and_setter_call_with_attribute(self, g_value_get_long(value));
228         break;
229     case PROP_CONDITIONAL_ATTR1:
230         webkit_dom_test_obj_set_conditional_attr1(self, g_value_get_long(value));
231         break;
232     case PROP_CONDITIONAL_ATTR2:
233         webkit_dom_test_obj_set_conditional_attr2(self, g_value_get_long(value));
234         break;
235     case PROP_CONDITIONAL_ATTR3:
236         webkit_dom_test_obj_set_conditional_attr3(self, g_value_get_long(value));
237         break;
238     case PROP_STRAWBERRY:
239         webkit_dom_test_obj_set_strawberry(self, g_value_get_long(value));
240         break;
241     case PROP_STRICT_FLOAT:
242         webkit_dom_test_obj_set_strict_float(self, g_value_get_float(value));
243         break;
244     case PROP_ID:
245         webkit_dom_test_obj_set_id(self, g_value_get_long(value));
246         break;
247     case PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE:
248         webkit_dom_test_obj_set_nullable_long_settable_attribute(self, g_value_get_long(value));
249         break;
250     case PROP_NULLABLE_STRING_VALUE:
251         webkit_dom_test_obj_set_nullable_string_value(self, g_value_get_long(value));
252         break;
253     default:
254         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, propertyId, pspec);
255         break;
256     }
257 }
258
259 static void webkit_dom_test_obj_get_property(GObject* object, guint propertyId, GValue* value, GParamSpec* pspec)
260 {
261     WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
262
263     switch (propertyId) {
264     case PROP_READ_ONLY_LONG_ATTR:
265         g_value_set_long(value, webkit_dom_test_obj_get_read_only_long_attr(self));
266         break;
267     case PROP_READ_ONLY_STRING_ATTR:
268         g_value_take_string(value, webkit_dom_test_obj_get_read_only_string_attr(self));
269         break;
270     case PROP_READ_ONLY_TEST_OBJ_ATTR:
271         g_value_set_object(value, webkit_dom_test_obj_get_read_only_test_obj_attr(self));
272         break;
273     case PROP_BYTE_ATTR:
274         g_value_set_int8(value, webkit_dom_test_obj_get_byte_attr(self));
275         break;
276     case PROP_OCTET_ATTR:
277         g_value_set_uint8(value, webkit_dom_test_obj_get_octet_attr(self));
278         break;
279     case PROP_SHORT_ATTR:
280         g_value_set_int(value, webkit_dom_test_obj_get_short_attr(self));
281         break;
282     case PROP_UNSIGNED_SHORT_ATTR:
283         g_value_set_uint(value, webkit_dom_test_obj_get_unsigned_short_attr(self));
284         break;
285     case PROP_LONG_ATTR:
286         g_value_set_long(value, webkit_dom_test_obj_get_long_attr(self));
287         break;
288     case PROP_LONG_LONG_ATTR:
289         g_value_set_int64(value, webkit_dom_test_obj_get_long_long_attr(self));
290         break;
291     case PROP_UNSIGNED_LONG_LONG_ATTR:
292         g_value_set_uint64(value, webkit_dom_test_obj_get_unsigned_long_long_attr(self));
293         break;
294     case PROP_STRING_ATTR:
295         g_value_take_string(value, webkit_dom_test_obj_get_string_attr(self));
296         break;
297     case PROP_TEST_OBJ_ATTR:
298         g_value_set_object(value, webkit_dom_test_obj_get_test_obj_attr(self));
299         break;
300     case PROP_XML_OBJ_ATTR:
301         g_value_set_object(value, webkit_dom_test_obj_get_xml_obj_attr(self));
302         break;
303     case PROP_CREATE:
304         g_value_set_boolean(value, webkit_dom_test_obj_get_create(self));
305         break;
306     case PROP_REFLECTED_STRING_ATTR:
307         g_value_take_string(value, webkit_dom_test_obj_get_reflected_string_attr(self));
308         break;
309     case PROP_REFLECTED_INTEGRAL_ATTR:
310         g_value_set_long(value, webkit_dom_test_obj_get_reflected_integral_attr(self));
311         break;
312     case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
313         g_value_set_ulong(value, webkit_dom_test_obj_get_reflected_unsigned_integral_attr(self));
314         break;
315     case PROP_REFLECTED_BOOLEAN_ATTR:
316         g_value_set_boolean(value, webkit_dom_test_obj_get_reflected_boolean_attr(self));
317         break;
318     case PROP_REFLECTED_URL_ATTR:
319         g_value_take_string(value, webkit_dom_test_obj_get_reflected_url_attr(self));
320         break;
321     case PROP_REFLECTED_STRING_ATTR:
322         g_value_take_string(value, webkit_dom_test_obj_get_reflected_string_attr(self));
323         break;
324     case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
325         g_value_set_long(value, webkit_dom_test_obj_get_reflected_custom_integral_attr(self));
326         break;
327     case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
328         g_value_set_boolean(value, webkit_dom_test_obj_get_reflected_custom_boolean_attr(self));
329         break;
330     case PROP_REFLECTED_CUSTOM_URL_ATTR:
331         g_value_take_string(value, webkit_dom_test_obj_get_reflected_custom_url_attr(self));
332         break;
333     case PROP_ATTR_WITH_GETTER_EXCEPTION:
334         g_value_set_long(value, webkit_dom_test_obj_get_attr_with_getter_exception(self, nullptr));
335         break;
336     case PROP_ATTR_WITH_SETTER_EXCEPTION:
337         g_value_set_long(value, webkit_dom_test_obj_get_attr_with_setter_exception(self));
338         break;
339     case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
340         g_value_take_string(value, webkit_dom_test_obj_get_string_attr_with_getter_exception(self, nullptr));
341         break;
342     case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
343         g_value_take_string(value, webkit_dom_test_obj_get_string_attr_with_setter_exception(self));
344         break;
345     case PROP_STRICT_TYPE_CHECKING_ATTRIBUTE:
346         g_value_set_object(value, webkit_dom_test_obj_get_strict_type_checking_attribute(self));
347         break;
348     case PROP_WITH_SCRIPT_STATE_ATTRIBUTE:
349         g_value_set_long(value, webkit_dom_test_obj_get_with_script_state_attribute(self));
350         break;
351     case PROP_WITH_CALL_WITH_AND_SETTER_CALL_WITH_ATTRIBUTE:
352         g_value_set_long(value, webkit_dom_test_obj_get_with_call_with_and_setter_call_with_attribute(self));
353         break;
354     case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE:
355         g_value_set_object(value, webkit_dom_test_obj_get_with_script_execution_context_attribute(self));
356         break;
357     case PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES:
358         g_value_set_object(value, webkit_dom_test_obj_get_with_script_state_attribute_raises(self, nullptr));
359         break;
360     case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES:
361         g_value_set_object(value, webkit_dom_test_obj_get_with_script_execution_context_attribute_raises(self, nullptr));
362         break;
363     case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE:
364         g_value_set_object(value, webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute(self));
365         break;
366     case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES:
367         g_value_set_object(value, webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute_raises(self, nullptr));
368         break;
369     case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE:
370         g_value_set_object(value, webkit_dom_test_obj_get_with_script_execution_context_and_script_state_with_spaces_attribute(self));
371         break;
372     case PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE:
373         g_value_set_object(value, webkit_dom_test_obj_get_with_script_arguments_and_call_stack_attribute(self));
374         break;
375     case PROP_CONDITIONAL_ATTR1:
376         g_value_set_long(value, webkit_dom_test_obj_get_conditional_attr1(self));
377         break;
378     case PROP_CONDITIONAL_ATTR2:
379         g_value_set_long(value, webkit_dom_test_obj_get_conditional_attr2(self));
380         break;
381     case PROP_CONDITIONAL_ATTR3:
382         g_value_set_long(value, webkit_dom_test_obj_get_conditional_attr3(self));
383         break;
384     case PROP_ANY_ATTRIBUTE:
385         g_value_set_object(value, webkit_dom_test_obj_get_any_attribute(self));
386         break;
387     case PROP_CONTENT_DOCUMENT:
388         g_value_set_object(value, webkit_dom_test_obj_get_content_document(self));
389         break;
390     case PROP_MUTABLE_POINT:
391         g_value_set_object(value, webkit_dom_test_obj_get_mutable_point(self));
392         break;
393     case PROP_IMMUTABLE_POINT:
394         g_value_set_object(value, webkit_dom_test_obj_get_immutable_point(self));
395         break;
396     case PROP_STRAWBERRY:
397         g_value_set_long(value, webkit_dom_test_obj_get_strawberry(self));
398         break;
399     case PROP_STRICT_FLOAT:
400         g_value_set_float(value, webkit_dom_test_obj_get_strict_float(self));
401         break;
402     case PROP_DESCRIPTION:
403         g_value_set_long(value, webkit_dom_test_obj_get_description(self));
404         break;
405     case PROP_ID:
406         g_value_set_long(value, webkit_dom_test_obj_get_id(self));
407         break;
408     case PROP_HASH:
409         g_value_take_string(value, webkit_dom_test_obj_get_hash(self));
410         break;
411     case PROP_REPLACEABLE_ATTRIBUTE:
412         g_value_set_long(value, webkit_dom_test_obj_get_replaceable_attribute(self));
413         break;
414     case PROP_NULLABLE_DOUBLE_ATTRIBUTE:
415         g_value_set_double(value, webkit_dom_test_obj_get_nullable_double_attribute(self));
416         break;
417     case PROP_NULLABLE_LONG_ATTRIBUTE:
418         g_value_set_long(value, webkit_dom_test_obj_get_nullable_long_attribute(self));
419         break;
420     case PROP_NULLABLE_BOOLEAN_ATTRIBUTE:
421         g_value_set_boolean(value, webkit_dom_test_obj_get_nullable_boolean_attribute(self));
422         break;
423     case PROP_NULLABLE_STRING_ATTRIBUTE:
424         g_value_take_string(value, webkit_dom_test_obj_get_nullable_string_attribute(self));
425         break;
426     case PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE:
427         g_value_set_long(value, webkit_dom_test_obj_get_nullable_long_settable_attribute(self));
428         break;
429     case PROP_NULLABLE_STRING_VALUE:
430         g_value_set_long(value, webkit_dom_test_obj_get_nullable_string_value(self, nullptr));
431         break;
432     case PROP_ATTRIBUTE:
433         g_value_take_string(value, webkit_dom_test_obj_get_attribute(self));
434         break;
435     case PROP_PUT_FORWARDS_ATTRIBUTE:
436         g_value_set_object(value, webkit_dom_test_obj_get_put_forwards_attribute(self));
437         break;
438     case PROP_PUT_FORWARDS_NULLABLE_ATTRIBUTE:
439         g_value_set_object(value, webkit_dom_test_obj_get_put_forwards_nullable_attribute(self));
440         break;
441     default:
442         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, propertyId, pspec);
443         break;
444     }
445 }
446
447 static GObject* webkit_dom_test_obj_constructor(GType type, guint constructPropertiesCount, GObjectConstructParam* constructProperties)
448 {
449     GObject* object = G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructor(type, constructPropertiesCount, constructProperties);
450
451     WebKitDOMTestObjPrivate* priv = WEBKIT_DOM_TEST_OBJ_GET_PRIVATE(object);
452     priv->coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(object)->coreObject);
453     WebKit::DOMObjectCache::put(priv->coreObject.get(), object);
454
455     return object;
456 }
457
458 static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
459 {
460     GObjectClass* gobjectClass = G_OBJECT_CLASS(requestClass);
461     g_type_class_add_private(gobjectClass, sizeof(WebKitDOMTestObjPrivate));
462     gobjectClass->constructor = webkit_dom_test_obj_constructor;
463     gobjectClass->finalize = webkit_dom_test_obj_finalize;
464     gobjectClass->set_property = webkit_dom_test_obj_set_property;
465     gobjectClass->get_property = webkit_dom_test_obj_get_property;
466
467     g_object_class_install_property(
468         gobjectClass,
469         PROP_READ_ONLY_LONG_ATTR,
470         g_param_spec_long(
471             "read-only-long-attr",
472             "TestObj:read-only-long-attr",
473             "read-only glong TestObj:read-only-long-attr",
474             G_MINLONG, G_MAXLONG, 0,
475             WEBKIT_PARAM_READABLE));
476
477     g_object_class_install_property(
478         gobjectClass,
479         PROP_READ_ONLY_STRING_ATTR,
480         g_param_spec_string(
481             "read-only-string-attr",
482             "TestObj:read-only-string-attr",
483             "read-only gchar* TestObj:read-only-string-attr",
484             "",
485             WEBKIT_PARAM_READABLE));
486
487     g_object_class_install_property(
488         gobjectClass,
489         PROP_READ_ONLY_TEST_OBJ_ATTR,
490         g_param_spec_object(
491             "read-only-test-obj-attr",
492             "TestObj:read-only-test-obj-attr",
493             "read-only WebKitDOMTestObj* TestObj:read-only-test-obj-attr",
494             WEBKIT_DOM_TYPE_TEST_OBJ,
495             WEBKIT_PARAM_READABLE));
496
497     g_object_class_install_property(
498         gobjectClass,
499         PROP_BYTE_ATTR,
500         g_param_spec_int8(
501             "byte-attr",
502             "TestObj:byte-attr",
503             "read-write gint8 TestObj:byte-attr",
504             G_MININT8, G_MAXINT8, 0,
505             WEBKIT_PARAM_READWRITE));
506
507     g_object_class_install_property(
508         gobjectClass,
509         PROP_OCTET_ATTR,
510         g_param_spec_uint8(
511             "octet-attr",
512             "TestObj:octet-attr",
513             "read-write guint8 TestObj:octet-attr",
514             0, G_MAXUINT8, 0,
515             WEBKIT_PARAM_READWRITE));
516
517     g_object_class_install_property(
518         gobjectClass,
519         PROP_SHORT_ATTR,
520         g_param_spec_int(
521             "short-attr",
522             "TestObj:short-attr",
523             "read-write gshort TestObj:short-attr",
524             G_MININT, G_MAXINT, 0,
525             WEBKIT_PARAM_READWRITE));
526
527     g_object_class_install_property(
528         gobjectClass,
529         PROP_UNSIGNED_SHORT_ATTR,
530         g_param_spec_uint(
531             "unsigned-short-attr",
532             "TestObj:unsigned-short-attr",
533             "read-write gushort TestObj:unsigned-short-attr",
534             0, G_MAXUINT, 0,
535             WEBKIT_PARAM_READWRITE));
536
537     g_object_class_install_property(
538         gobjectClass,
539         PROP_LONG_ATTR,
540         g_param_spec_long(
541             "long-attr",
542             "TestObj:long-attr",
543             "read-write glong TestObj:long-attr",
544             G_MINLONG, G_MAXLONG, 0,
545             WEBKIT_PARAM_READWRITE));
546
547     g_object_class_install_property(
548         gobjectClass,
549         PROP_LONG_LONG_ATTR,
550         g_param_spec_int64(
551             "long-long-attr",
552             "TestObj:long-long-attr",
553             "read-write gint64 TestObj:long-long-attr",
554             G_MININT64, G_MAXINT64, 0,
555             WEBKIT_PARAM_READWRITE));
556
557     g_object_class_install_property(
558         gobjectClass,
559         PROP_UNSIGNED_LONG_LONG_ATTR,
560         g_param_spec_uint64(
561             "unsigned-long-long-attr",
562             "TestObj:unsigned-long-long-attr",
563             "read-write guint64 TestObj:unsigned-long-long-attr",
564             0, G_MAXUINT64, 0,
565             WEBKIT_PARAM_READWRITE));
566
567     g_object_class_install_property(
568         gobjectClass,
569         PROP_STRING_ATTR,
570         g_param_spec_string(
571             "string-attr",
572             "TestObj:string-attr",
573             "read-write gchar* TestObj:string-attr",
574             "",
575             WEBKIT_PARAM_READWRITE));
576
577     g_object_class_install_property(
578         gobjectClass,
579         PROP_TEST_OBJ_ATTR,
580         g_param_spec_object(
581             "test-obj-attr",
582             "TestObj:test-obj-attr",
583             "read-only WebKitDOMTestObj* TestObj:test-obj-attr",
584             WEBKIT_DOM_TYPE_TEST_OBJ,
585             WEBKIT_PARAM_READABLE));
586
587     g_object_class_install_property(
588         gobjectClass,
589         PROP_XML_OBJ_ATTR,
590         g_param_spec_object(
591             "xml-obj-attr",
592             "TestObj:xml-obj-attr",
593             "read-only WebKitDOMTestObj* TestObj:xml-obj-attr",
594             WEBKIT_DOM_TYPE_TEST_OBJ,
595             WEBKIT_PARAM_READABLE));
596
597     g_object_class_install_property(
598         gobjectClass,
599         PROP_CREATE,
600         g_param_spec_boolean(
601             "create",
602             "TestObj:create",
603             "read-write gboolean TestObj:create",
604             FALSE,
605             WEBKIT_PARAM_READWRITE));
606
607     g_object_class_install_property(
608         gobjectClass,
609         PROP_REFLECTED_STRING_ATTR,
610         g_param_spec_string(
611             "reflected-string-attr",
612             "TestObj:reflected-string-attr",
613             "read-write gchar* TestObj:reflected-string-attr",
614             "",
615             WEBKIT_PARAM_READWRITE));
616
617     g_object_class_install_property(
618         gobjectClass,
619         PROP_REFLECTED_INTEGRAL_ATTR,
620         g_param_spec_long(
621             "reflected-integral-attr",
622             "TestObj:reflected-integral-attr",
623             "read-write glong TestObj:reflected-integral-attr",
624             G_MINLONG, G_MAXLONG, 0,
625             WEBKIT_PARAM_READWRITE));
626
627     g_object_class_install_property(
628         gobjectClass,
629         PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR,
630         g_param_spec_ulong(
631             "reflected-unsigned-integral-attr",
632             "TestObj:reflected-unsigned-integral-attr",
633             "read-write gulong TestObj:reflected-unsigned-integral-attr",
634             0, G_MAXULONG, 0,
635             WEBKIT_PARAM_READWRITE));
636
637     g_object_class_install_property(
638         gobjectClass,
639         PROP_REFLECTED_BOOLEAN_ATTR,
640         g_param_spec_boolean(
641             "reflected-boolean-attr",
642             "TestObj:reflected-boolean-attr",
643             "read-write gboolean TestObj:reflected-boolean-attr",
644             FALSE,
645             WEBKIT_PARAM_READWRITE));
646
647     g_object_class_install_property(
648         gobjectClass,
649         PROP_REFLECTED_URL_ATTR,
650         g_param_spec_string(
651             "reflected-url-attr",
652             "TestObj:reflected-url-attr",
653             "read-write gchar* TestObj:reflected-url-attr",
654             "",
655             WEBKIT_PARAM_READWRITE));
656
657     g_object_class_install_property(
658         gobjectClass,
659         PROP_REFLECTED_STRING_ATTR,
660         g_param_spec_string(
661             "reflected-string-attr",
662             "TestObj:reflected-string-attr",
663             "read-write gchar* TestObj:reflected-string-attr",
664             "",
665             WEBKIT_PARAM_READWRITE));
666
667     g_object_class_install_property(
668         gobjectClass,
669         PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR,
670         g_param_spec_long(
671             "reflected-custom-integral-attr",
672             "TestObj:reflected-custom-integral-attr",
673             "read-write glong TestObj:reflected-custom-integral-attr",
674             G_MINLONG, G_MAXLONG, 0,
675             WEBKIT_PARAM_READWRITE));
676
677     g_object_class_install_property(
678         gobjectClass,
679         PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR,
680         g_param_spec_boolean(
681             "reflected-custom-boolean-attr",
682             "TestObj:reflected-custom-boolean-attr",
683             "read-write gboolean TestObj:reflected-custom-boolean-attr",
684             FALSE,
685             WEBKIT_PARAM_READWRITE));
686
687     g_object_class_install_property(
688         gobjectClass,
689         PROP_REFLECTED_CUSTOM_URL_ATTR,
690         g_param_spec_string(
691             "reflected-custom-url-attr",
692             "TestObj:reflected-custom-url-attr",
693             "read-write gchar* TestObj:reflected-custom-url-attr",
694             "",
695             WEBKIT_PARAM_READWRITE));
696
697     g_object_class_install_property(
698         gobjectClass,
699         PROP_ATTR_WITH_GETTER_EXCEPTION,
700         g_param_spec_long(
701             "attr-with-getter-exception",
702             "TestObj:attr-with-getter-exception",
703             "read-write glong TestObj:attr-with-getter-exception",
704             G_MINLONG, G_MAXLONG, 0,
705             WEBKIT_PARAM_READWRITE));
706
707     g_object_class_install_property(
708         gobjectClass,
709         PROP_ATTR_WITH_SETTER_EXCEPTION,
710         g_param_spec_long(
711             "attr-with-setter-exception",
712             "TestObj:attr-with-setter-exception",
713             "read-write glong TestObj:attr-with-setter-exception",
714             G_MINLONG, G_MAXLONG, 0,
715             WEBKIT_PARAM_READWRITE));
716
717     g_object_class_install_property(
718         gobjectClass,
719         PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
720         g_param_spec_string(
721             "string-attr-with-getter-exception",
722             "TestObj:string-attr-with-getter-exception",
723             "read-write gchar* TestObj:string-attr-with-getter-exception",
724             "",
725             WEBKIT_PARAM_READWRITE));
726
727     g_object_class_install_property(
728         gobjectClass,
729         PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
730         g_param_spec_string(
731             "string-attr-with-setter-exception",
732             "TestObj:string-attr-with-setter-exception",
733             "read-write gchar* TestObj:string-attr-with-setter-exception",
734             "",
735             WEBKIT_PARAM_READWRITE));
736
737     g_object_class_install_property(
738         gobjectClass,
739         PROP_STRICT_TYPE_CHECKING_ATTRIBUTE,
740         g_param_spec_object(
741             "strict-type-checking-attribute",
742             "TestObj:strict-type-checking-attribute",
743             "read-only WebKitDOMTestObj* TestObj:strict-type-checking-attribute",
744             WEBKIT_DOM_TYPE_TEST_OBJ,
745             WEBKIT_PARAM_READABLE));
746
747     g_object_class_install_property(
748         gobjectClass,
749         PROP_WITH_SCRIPT_STATE_ATTRIBUTE,
750         g_param_spec_long(
751             "with-script-state-attribute",
752             "TestObj:with-script-state-attribute",
753             "read-write glong TestObj:with-script-state-attribute",
754             G_MINLONG, G_MAXLONG, 0,
755             WEBKIT_PARAM_READWRITE));
756
757     g_object_class_install_property(
758         gobjectClass,
759         PROP_WITH_CALL_WITH_AND_SETTER_CALL_WITH_ATTRIBUTE,
760         g_param_spec_long(
761             "with-call-with-and-setter-call-with-attribute",
762             "TestObj:with-call-with-and-setter-call-with-attribute",
763             "read-write glong TestObj:with-call-with-and-setter-call-with-attribute",
764             G_MINLONG, G_MAXLONG, 0,
765             WEBKIT_PARAM_READWRITE));
766
767     g_object_class_install_property(
768         gobjectClass,
769         PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE,
770         g_param_spec_object(
771             "with-script-execution-context-attribute",
772             "TestObj:with-script-execution-context-attribute",
773             "read-only WebKitDOMTestObj* TestObj:with-script-execution-context-attribute",
774             WEBKIT_DOM_TYPE_TEST_OBJ,
775             WEBKIT_PARAM_READABLE));
776
777     g_object_class_install_property(
778         gobjectClass,
779         PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES,
780         g_param_spec_object(
781             "with-script-state-attribute-raises",
782             "TestObj:with-script-state-attribute-raises",
783             "read-only WebKitDOMTestObj* TestObj:with-script-state-attribute-raises",
784             WEBKIT_DOM_TYPE_TEST_OBJ,
785             WEBKIT_PARAM_READABLE));
786
787     g_object_class_install_property(
788         gobjectClass,
789         PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES,
790         g_param_spec_object(
791             "with-script-execution-context-attribute-raises",
792             "TestObj:with-script-execution-context-attribute-raises",
793             "read-only WebKitDOMTestObj* TestObj:with-script-execution-context-attribute-raises",
794             WEBKIT_DOM_TYPE_TEST_OBJ,
795             WEBKIT_PARAM_READABLE));
796
797     g_object_class_install_property(
798         gobjectClass,
799         PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE,
800         g_param_spec_object(
801             "with-script-execution-context-and-script-state-attribute",
802             "TestObj:with-script-execution-context-and-script-state-attribute",
803             "read-only WebKitDOMTestObj* TestObj:with-script-execution-context-and-script-state-attribute",
804             WEBKIT_DOM_TYPE_TEST_OBJ,
805             WEBKIT_PARAM_READABLE));
806
807     g_object_class_install_property(
808         gobjectClass,
809         PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_ATTRIBUTE_RAISES,
810         g_param_spec_object(
811             "with-script-execution-context-and-script-state-attribute-raises",
812             "TestObj:with-script-execution-context-and-script-state-attribute-raises",
813             "read-only WebKitDOMTestObj* TestObj:with-script-execution-context-and-script-state-attribute-raises",
814             WEBKIT_DOM_TYPE_TEST_OBJ,
815             WEBKIT_PARAM_READABLE));
816
817     g_object_class_install_property(
818         gobjectClass,
819         PROP_WITH_SCRIPT_EXECUTION_CONTEXT_AND_SCRIPT_STATE_WITH_SPACES_ATTRIBUTE,
820         g_param_spec_object(
821             "with-script-execution-context-and-script-state-with-spaces-attribute",
822             "TestObj:with-script-execution-context-and-script-state-with-spaces-attribute",
823             "read-only WebKitDOMTestObj* TestObj:with-script-execution-context-and-script-state-with-spaces-attribute",
824             WEBKIT_DOM_TYPE_TEST_OBJ,
825             WEBKIT_PARAM_READABLE));
826
827     g_object_class_install_property(
828         gobjectClass,
829         PROP_WITH_SCRIPT_ARGUMENTS_AND_CALL_STACK_ATTRIBUTE,
830         g_param_spec_object(
831             "with-script-arguments-and-call-stack-attribute",
832             "TestObj:with-script-arguments-and-call-stack-attribute",
833             "read-only WebKitDOMTestObj* TestObj:with-script-arguments-and-call-stack-attribute",
834             WEBKIT_DOM_TYPE_TEST_OBJ,
835             WEBKIT_PARAM_READABLE));
836
837     g_object_class_install_property(
838         gobjectClass,
839         PROP_CONDITIONAL_ATTR1,
840         g_param_spec_long(
841             "conditional-attr1",
842             "TestObj:conditional-attr1",
843             "read-write glong TestObj:conditional-attr1",
844             G_MINLONG, G_MAXLONG, 0,
845             WEBKIT_PARAM_READWRITE));
846
847     g_object_class_install_property(
848         gobjectClass,
849         PROP_CONDITIONAL_ATTR2,
850         g_param_spec_long(
851             "conditional-attr2",
852             "TestObj:conditional-attr2",
853             "read-write glong TestObj:conditional-attr2",
854             G_MINLONG, G_MAXLONG, 0,
855             WEBKIT_PARAM_READWRITE));
856
857     g_object_class_install_property(
858         gobjectClass,
859         PROP_CONDITIONAL_ATTR3,
860         g_param_spec_long(
861             "conditional-attr3",
862             "TestObj:conditional-attr3",
863             "read-write glong TestObj:conditional-attr3",
864             G_MINLONG, G_MAXLONG, 0,
865             WEBKIT_PARAM_READWRITE));
866
867     g_object_class_install_property(
868         gobjectClass,
869         PROP_ANY_ATTRIBUTE,
870         g_param_spec_object(
871             "any-attribute",
872             "TestObj:any-attribute",
873             "read-only WebKitDOMany* TestObj:any-attribute",
874             WEBKIT_DOM_TYPE_ANY,
875             WEBKIT_PARAM_READABLE));
876
877     g_object_class_install_property(
878         gobjectClass,
879         PROP_CONTENT_DOCUMENT,
880         g_param_spec_object(
881             "content-document",
882             "TestObj:content-document",
883             "read-only WebKitDOMDocument* TestObj:content-document",
884             WEBKIT_DOM_TYPE_DOCUMENT,
885             WEBKIT_PARAM_READABLE));
886
887     g_object_class_install_property(
888         gobjectClass,
889         PROP_MUTABLE_POINT,
890         g_param_spec_object(
891             "mutable-point",
892             "TestObj:mutable-point",
893             "read-only WebKitDOMSVGPoint* TestObj:mutable-point",
894             WEBKIT_DOM_TYPE_SVG_POINT,
895             WEBKIT_PARAM_READABLE));
896
897     g_object_class_install_property(
898         gobjectClass,
899         PROP_IMMUTABLE_POINT,
900         g_param_spec_object(
901             "immutable-point",
902             "TestObj:immutable-point",
903             "read-only WebKitDOMSVGPoint* TestObj:immutable-point",
904             WEBKIT_DOM_TYPE_SVG_POINT,
905             WEBKIT_PARAM_READABLE));
906
907     g_object_class_install_property(
908         gobjectClass,
909         PROP_STRAWBERRY,
910         g_param_spec_long(
911             "strawberry",
912             "TestObj:strawberry",
913             "read-write glong TestObj:strawberry",
914             G_MINLONG, G_MAXLONG, 0,
915             WEBKIT_PARAM_READWRITE));
916
917     g_object_class_install_property(
918         gobjectClass,
919         PROP_STRICT_FLOAT,
920         g_param_spec_float(
921             "strict-float",
922             "TestObj:strict-float",
923             "read-write gfloat TestObj:strict-float",
924             -G_MAXFLOAT, G_MAXFLOAT, 0,
925             WEBKIT_PARAM_READWRITE));
926
927     g_object_class_install_property(
928         gobjectClass,
929         PROP_DESCRIPTION,
930         g_param_spec_long(
931             "description",
932             "TestObj:description",
933             "read-only glong TestObj:description",
934             G_MINLONG, G_MAXLONG, 0,
935             WEBKIT_PARAM_READABLE));
936
937     g_object_class_install_property(
938         gobjectClass,
939         PROP_ID,
940         g_param_spec_long(
941             "id",
942             "TestObj:id",
943             "read-write glong TestObj:id",
944             G_MINLONG, G_MAXLONG, 0,
945             WEBKIT_PARAM_READWRITE));
946
947     g_object_class_install_property(
948         gobjectClass,
949         PROP_HASH,
950         g_param_spec_string(
951             "hash",
952             "TestObj:hash",
953             "read-only gchar* TestObj:hash",
954             "",
955             WEBKIT_PARAM_READABLE));
956
957     g_object_class_install_property(
958         gobjectClass,
959         PROP_REPLACEABLE_ATTRIBUTE,
960         g_param_spec_long(
961             "replaceable-attribute",
962             "TestObj:replaceable-attribute",
963             "read-only glong TestObj:replaceable-attribute",
964             G_MINLONG, G_MAXLONG, 0,
965             WEBKIT_PARAM_READABLE));
966
967     g_object_class_install_property(
968         gobjectClass,
969         PROP_NULLABLE_DOUBLE_ATTRIBUTE,
970         g_param_spec_double(
971             "nullable-double-attribute",
972             "TestObj:nullable-double-attribute",
973             "read-only gdouble TestObj:nullable-double-attribute",
974             -G_MAXDOUBLE, G_MAXDOUBLE, 0,
975             WEBKIT_PARAM_READABLE));
976
977     g_object_class_install_property(
978         gobjectClass,
979         PROP_NULLABLE_LONG_ATTRIBUTE,
980         g_param_spec_long(
981             "nullable-long-attribute",
982             "TestObj:nullable-long-attribute",
983             "read-only glong TestObj:nullable-long-attribute",
984             G_MINLONG, G_MAXLONG, 0,
985             WEBKIT_PARAM_READABLE));
986
987     g_object_class_install_property(
988         gobjectClass,
989         PROP_NULLABLE_BOOLEAN_ATTRIBUTE,
990         g_param_spec_boolean(
991             "nullable-boolean-attribute",
992             "TestObj:nullable-boolean-attribute",
993             "read-only gboolean TestObj:nullable-boolean-attribute",
994             FALSE,
995             WEBKIT_PARAM_READABLE));
996
997     g_object_class_install_property(
998         gobjectClass,
999         PROP_NULLABLE_STRING_ATTRIBUTE,
1000         g_param_spec_string(
1001             "nullable-string-attribute",
1002             "TestObj:nullable-string-attribute",
1003             "read-only gchar* TestObj:nullable-string-attribute",
1004             "",
1005             WEBKIT_PARAM_READABLE));
1006
1007     g_object_class_install_property(
1008         gobjectClass,
1009         PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE,
1010         g_param_spec_long(
1011             "nullable-long-settable-attribute",
1012             "TestObj:nullable-long-settable-attribute",
1013             "read-write glong TestObj:nullable-long-settable-attribute",
1014             G_MINLONG, G_MAXLONG, 0,
1015             WEBKIT_PARAM_READWRITE));
1016
1017     g_object_class_install_property(
1018         gobjectClass,
1019         PROP_NULLABLE_STRING_VALUE,
1020         g_param_spec_long(
1021             "nullable-string-value",
1022             "TestObj:nullable-string-value",
1023             "read-write glong TestObj:nullable-string-value",
1024             G_MINLONG, G_MAXLONG, 0,
1025             WEBKIT_PARAM_READWRITE));
1026
1027     g_object_class_install_property(
1028         gobjectClass,
1029         PROP_ATTRIBUTE,
1030         g_param_spec_string(
1031             "attribute",
1032             "TestObj:attribute",
1033             "read-only gchar* TestObj:attribute",
1034             "",
1035             WEBKIT_PARAM_READABLE));
1036
1037     g_object_class_install_property(
1038         gobjectClass,
1039         PROP_PUT_FORWARDS_ATTRIBUTE,
1040         g_param_spec_object(
1041             "put-forwards-attribute",
1042             "TestObj:put-forwards-attribute",
1043             "read-only WebKitDOMTestNode* TestObj:put-forwards-attribute",
1044             WEBKIT_DOM_TYPE_TEST_NODE,
1045             WEBKIT_PARAM_READABLE));
1046
1047     g_object_class_install_property(
1048         gobjectClass,
1049         PROP_PUT_FORWARDS_NULLABLE_ATTRIBUTE,
1050         g_param_spec_object(
1051             "put-forwards-nullable-attribute",
1052             "TestObj:put-forwards-nullable-attribute",
1053             "read-only WebKitDOMTestNode* TestObj:put-forwards-nullable-attribute",
1054             WEBKIT_DOM_TYPE_TEST_NODE,
1055             WEBKIT_PARAM_READABLE));
1056
1057 }
1058
1059 static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
1060 {
1061     WebKitDOMTestObjPrivate* priv = WEBKIT_DOM_TEST_OBJ_GET_PRIVATE(request);
1062     new (priv) WebKitDOMTestObjPrivate();
1063 }
1064
1065 void webkit_dom_test_obj_void_method(WebKitDOMTestObj* self)
1066 {
1067     WebCore::JSMainThreadNullState state;
1068     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1069     WebCore::TestObj* item = WebKit::core(self);
1070     item->voidMethod();
1071 }
1072
1073 void webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong longArg, const gchar* strArg, WebKitDOMTestObj* objArg)
1074 {
1075     WebCore::JSMainThreadNullState state;
1076     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1077     g_return_if_fail(strArg);
1078     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg));
1079     WebCore::TestObj* item = WebKit::core(self);
1080     WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
1081     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1082     item->voidMethodWithArgs(longArg, convertedStrArg, convertedObjArg);
1083 }
1084
1085 gint8 webkit_dom_test_obj_byte_method(WebKitDOMTestObj* self)
1086 {
1087     WebCore::JSMainThreadNullState state;
1088     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1089     WebCore::TestObj* item = WebKit::core(self);
1090     gint8 result = item->byteMethod();
1091     return result;
1092 }
1093
1094 gint8 webkit_dom_test_obj_byte_method_with_args(WebKitDOMTestObj* self, gint8 byteArg, const gchar* strArg, WebKitDOMTestObj* objArg)
1095 {
1096     WebCore::JSMainThreadNullState state;
1097     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1098     g_return_val_if_fail(strArg, 0);
1099     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg), 0);
1100     WebCore::TestObj* item = WebKit::core(self);
1101     WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
1102     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1103     gint8 result = item->byteMethodWithArgs(byteArg, convertedStrArg, convertedObjArg);
1104     return result;
1105 }
1106
1107 guint8 webkit_dom_test_obj_octet_method(WebKitDOMTestObj* self)
1108 {
1109     WebCore::JSMainThreadNullState state;
1110     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1111     WebCore::TestObj* item = WebKit::core(self);
1112     guint8 result = item->octetMethod();
1113     return result;
1114 }
1115
1116 guint8 webkit_dom_test_obj_octet_method_with_args(WebKitDOMTestObj* self, guint8 octetArg, const gchar* strArg, WebKitDOMTestObj* objArg)
1117 {
1118     WebCore::JSMainThreadNullState state;
1119     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1120     g_return_val_if_fail(strArg, 0);
1121     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg), 0);
1122     WebCore::TestObj* item = WebKit::core(self);
1123     WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
1124     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1125     guint8 result = item->octetMethodWithArgs(octetArg, convertedStrArg, convertedObjArg);
1126     return result;
1127 }
1128
1129 glong webkit_dom_test_obj_long_method(WebKitDOMTestObj* self)
1130 {
1131     WebCore::JSMainThreadNullState state;
1132     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1133     WebCore::TestObj* item = WebKit::core(self);
1134     glong result = item->longMethod();
1135     return result;
1136 }
1137
1138 glong webkit_dom_test_obj_long_method_with_args(WebKitDOMTestObj* self, glong longArg, const gchar* strArg, WebKitDOMTestObj* objArg)
1139 {
1140     WebCore::JSMainThreadNullState state;
1141     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1142     g_return_val_if_fail(strArg, 0);
1143     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg), 0);
1144     WebCore::TestObj* item = WebKit::core(self);
1145     WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
1146     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1147     glong result = item->longMethodWithArgs(longArg, convertedStrArg, convertedObjArg);
1148     return result;
1149 }
1150
1151 WebKitDOMTestObj* webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self)
1152 {
1153     WebCore::JSMainThreadNullState state;
1154     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1155     WebCore::TestObj* item = WebKit::core(self);
1156     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->objMethod());
1157     return WebKit::kit(gobjectResult.get());
1158 }
1159
1160 WebKitDOMTestObj* webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong longArg, const gchar* strArg, WebKitDOMTestObj* objArg)
1161 {
1162     WebCore::JSMainThreadNullState state;
1163     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1164     g_return_val_if_fail(strArg, 0);
1165     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg), 0);
1166     WebCore::TestObj* item = WebKit::core(self);
1167     WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
1168     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1169     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->objMethodWithArgs(longArg, convertedStrArg, convertedObjArg));
1170     return WebKit::kit(gobjectResult.get());
1171 }
1172
1173 void webkit_dom_test_obj_method_with_enum_arg(WebKitDOMTestObj* self, WebKitDOMTestEnumType* enumArg)
1174 {
1175     WebCore::JSMainThreadNullState state;
1176     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1177     g_return_if_fail(WEBKIT_DOM_IS_TEST_ENUM_TYPE(enumArg));
1178     WebCore::TestObj* item = WebKit::core(self);
1179     WebCore::TestEnumType* convertedEnumArg = WebKit::core(enumArg);
1180     item->methodWithEnumArg(convertedEnumArg);
1181 }
1182
1183 void webkit_dom_test_obj_method_with_optional_enum_arg_and_default_value(WebKitDOMTestObj* self, WebKitDOMTestEnumType* enumArg)
1184 {
1185     WebCore::JSMainThreadNullState state;
1186     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1187     g_return_if_fail(WEBKIT_DOM_IS_TEST_ENUM_TYPE(enumArg));
1188     WebCore::TestObj* item = WebKit::core(self);
1189     WebCore::TestEnumType* convertedEnumArg = WebKit::core(enumArg);
1190     item->methodWithOptionalEnumArgAndDefaultValue(convertedEnumArg);
1191 }
1192
1193 WebKitDOMTestObj* webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, const gchar* strArg, WebKitDOMTestObj* objArg, GError** error)
1194 {
1195     WebCore::JSMainThreadNullState state;
1196     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1197     g_return_val_if_fail(strArg, 0);
1198     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg), 0);
1199     g_return_val_if_fail(!error || !*error, 0);
1200     WebCore::TestObj* item = WebKit::core(self);
1201     WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
1202     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1203     WebCore::ExceptionCode ec = 0;
1204     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->methodThatRequiresAllArgsAndThrows(convertedStrArg, convertedObjArg, ec));
1205     if (ec) {
1206         WebCore::ExceptionCodeDescription ecdesc(ec);
1207         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1208     }
1209     return WebKit::kit(gobjectResult.get());
1210 }
1211
1212 void webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, const gchar* serializedArg)
1213 {
1214     WebCore::JSMainThreadNullState state;
1215     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1216     g_return_if_fail(serializedArg);
1217     WebCore::TestObj* item = WebKit::core(self);
1218     item->serializedValue(WebCore::SerializedScriptValue::create(WTF::String::fromUTF8(serializedArg)));
1219 }
1220
1221 void webkit_dom_test_obj_options_object(WebKitDOMTestObj* self, WebKitDOMDictionary* oo, WebKitDOMDictionary* ooo)
1222 {
1223     WebCore::JSMainThreadNullState state;
1224     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1225     g_return_if_fail(WEBKIT_DOM_IS_DICTIONARY(oo));
1226     g_return_if_fail(WEBKIT_DOM_IS_DICTIONARY(ooo));
1227     WebCore::TestObj* item = WebKit::core(self);
1228     WebCore::Dictionary* convertedOo = WebKit::core(oo);
1229     WebCore::Dictionary* convertedOoo = WebKit::core(ooo);
1230     item->optionsObject(convertedOo, convertedOoo);
1231 }
1232
1233 void webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError** error)
1234 {
1235     WebCore::JSMainThreadNullState state;
1236     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1237     g_return_if_fail(!error || !*error);
1238     WebCore::TestObj* item = WebKit::core(self);
1239     WebCore::ExceptionCode ec = 0;
1240     item->methodWithException(ec);
1241     if (ec) {
1242         WebCore::ExceptionCodeDescription ecdesc(ec);
1243         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1244     }
1245 }
1246
1247 void webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self)
1248 {
1249     WebCore::JSMainThreadNullState state;
1250     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1251     WebCore::TestObj* item = WebKit::core(self);
1252     item->withScriptStateVoid();
1253 }
1254
1255 WebKitDOMTestObj* webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self)
1256 {
1257     WebCore::JSMainThreadNullState state;
1258     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1259     WebCore::TestObj* item = WebKit::core(self);
1260     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptStateObj());
1261     return WebKit::kit(gobjectResult.get());
1262 }
1263
1264 void webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError** error)
1265 {
1266     WebCore::JSMainThreadNullState state;
1267     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1268     g_return_if_fail(!error || !*error);
1269     WebCore::TestObj* item = WebKit::core(self);
1270     WebCore::ExceptionCode ec = 0;
1271     item->withScriptStateVoidException(ec);
1272     if (ec) {
1273         WebCore::ExceptionCodeDescription ecdesc(ec);
1274         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1275     }
1276 }
1277
1278 WebKitDOMTestObj* webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError** error)
1279 {
1280     WebCore::JSMainThreadNullState state;
1281     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1282     g_return_val_if_fail(!error || !*error, 0);
1283     WebCore::TestObj* item = WebKit::core(self);
1284     WebCore::ExceptionCode ec = 0;
1285     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptStateObjException(ec));
1286     if (ec) {
1287         WebCore::ExceptionCodeDescription ecdesc(ec);
1288         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1289     }
1290     return WebKit::kit(gobjectResult.get());
1291 }
1292
1293 void webkit_dom_test_obj_with_script_execution_context(WebKitDOMTestObj* self)
1294 {
1295     WebCore::JSMainThreadNullState state;
1296     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1297     WebCore::TestObj* item = WebKit::core(self);
1298     item->withScriptExecutionContext();
1299 }
1300
1301 void webkit_dom_test_obj_with_script_execution_context_and_script_state(WebKitDOMTestObj* self)
1302 {
1303     WebCore::JSMainThreadNullState state;
1304     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1305     WebCore::TestObj* item = WebKit::core(self);
1306     item->withScriptExecutionContextAndScriptState();
1307 }
1308
1309 WebKitDOMTestObj* webkit_dom_test_obj_with_script_execution_context_and_script_state_obj_exception(WebKitDOMTestObj* self, GError** error)
1310 {
1311     WebCore::JSMainThreadNullState state;
1312     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1313     g_return_val_if_fail(!error || !*error, 0);
1314     WebCore::TestObj* item = WebKit::core(self);
1315     WebCore::ExceptionCode ec = 0;
1316     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAndScriptStateObjException(ec));
1317     if (ec) {
1318         WebCore::ExceptionCodeDescription ecdesc(ec);
1319         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1320     }
1321     return WebKit::kit(gobjectResult.get());
1322 }
1323
1324 WebKitDOMTestObj* webkit_dom_test_obj_with_script_execution_context_and_script_state_with_spaces(WebKitDOMTestObj* self)
1325 {
1326     WebCore::JSMainThreadNullState state;
1327     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1328     WebCore::TestObj* item = WebKit::core(self);
1329     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAndScriptStateWithSpaces());
1330     return WebKit::kit(gobjectResult.get());
1331 }
1332
1333 void webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt)
1334 {
1335     WebCore::JSMainThreadNullState state;
1336     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1337     WebCore::TestObj* item = WebKit::core(self);
1338     item->methodWithOptionalArg(opt);
1339 }
1340
1341 void webkit_dom_test_obj_method_with_optional_arg_and_default_value(WebKitDOMTestObj* self, glong opt)
1342 {
1343     WebCore::JSMainThreadNullState state;
1344     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1345     WebCore::TestObj* item = WebKit::core(self);
1346     item->methodWithOptionalArgAndDefaultValue(opt);
1347 }
1348
1349 void webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong nonOpt, glong opt)
1350 {
1351     WebCore::JSMainThreadNullState state;
1352     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1353     WebCore::TestObj* item = WebKit::core(self);
1354     item->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
1355 }
1356
1357 void webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong nonOpt, glong opt1, glong opt2)
1358 {
1359     WebCore::JSMainThreadNullState state;
1360     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1361     WebCore::TestObj* item = WebKit::core(self);
1362     item->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
1363 }
1364
1365 void webkit_dom_test_obj_method_with_optional_string(WebKitDOMTestObj* self, const gchar* str)
1366 {
1367     WebCore::JSMainThreadNullState state;
1368     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1369     g_return_if_fail(str);
1370     WebCore::TestObj* item = WebKit::core(self);
1371     WTF::String convertedStr = WTF::String::fromUTF8(str);
1372     item->methodWithOptionalString(convertedStr);
1373 }
1374
1375 void webkit_dom_test_obj_method_with_optional_string_and_default_value(WebKitDOMTestObj* self, const gchar* str)
1376 {
1377     WebCore::JSMainThreadNullState state;
1378     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1379     g_return_if_fail(str);
1380     WebCore::TestObj* item = WebKit::core(self);
1381     WTF::String convertedStr = WTF::String::fromUTF8(str);
1382     item->methodWithOptionalStringAndDefaultValue(convertedStr);
1383 }
1384
1385 void webkit_dom_test_obj_method_with_optional_string_is_undefined(WebKitDOMTestObj* self, const gchar* str)
1386 {
1387     WebCore::JSMainThreadNullState state;
1388     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1389     g_return_if_fail(str);
1390     WebCore::TestObj* item = WebKit::core(self);
1391     WTF::String convertedStr = WTF::String::fromUTF8(str);
1392     item->methodWithOptionalStringIsUndefined(convertedStr);
1393 }
1394
1395 void webkit_dom_test_obj_method_with_optional_string_is_null_string(WebKitDOMTestObj* self, const gchar* str)
1396 {
1397     WebCore::JSMainThreadNullState state;
1398     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1399     g_return_if_fail(str);
1400     WebCore::TestObj* item = WebKit::core(self);
1401     WTF::String convertedStr = WTF::String::fromUTF8(str);
1402     item->methodWithOptionalStringIsNullString(convertedStr);
1403 }
1404
1405 gchar* webkit_dom_test_obj_conditional_method1(WebKitDOMTestObj* self)
1406 {
1407 #if ENABLE(Condition1)
1408     WebCore::JSMainThreadNullState state;
1409     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1410     WebCore::TestObj* item = WebKit::core(self);
1411     gchar* result = convertToUTF8String(item->conditionalMethod1());
1412     return result;
1413 #else
1414     UNUSED_PARAM(self);
1415     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
1416     return 0;
1417 #endif /* ENABLE(Condition1) */
1418 }
1419
1420 void webkit_dom_test_obj_conditional_method2(WebKitDOMTestObj* self)
1421 {
1422 #if ENABLE(Condition1) && ENABLE(Condition2)
1423     WebCore::JSMainThreadNullState state;
1424     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1425     WebCore::TestObj* item = WebKit::core(self);
1426     item->conditionalMethod2();
1427 #else
1428     UNUSED_PARAM(self);
1429 #if !ENABLE(Condition1)
1430     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
1431 #endif
1432 #if !ENABLE(Condition2)
1433     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
1434 #endif
1435 #endif /* ENABLE(Condition1) && ENABLE(Condition2) */
1436 }
1437
1438 void webkit_dom_test_obj_conditional_method3(WebKitDOMTestObj* self)
1439 {
1440 #if ENABLE(Condition1) || ENABLE(Condition2)
1441     WebCore::JSMainThreadNullState state;
1442     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1443     WebCore::TestObj* item = WebKit::core(self);
1444     item->conditionalMethod3();
1445 #else
1446     UNUSED_PARAM(self);
1447     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
1448     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
1449 #endif /* ENABLE(Condition1) || ENABLE(Condition2) */
1450 }
1451
1452 void webkit_dom_test_obj_convert1(WebKitDOMTestObj* self, WebKitDOMTestNode* value)
1453 {
1454     WebCore::JSMainThreadNullState state;
1455     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1456     g_return_if_fail(WEBKIT_DOM_IS_TEST_NODE(value));
1457     WebCore::TestObj* item = WebKit::core(self);
1458     WebCore::TestNode* convertedValue = WebKit::core(value);
1459     item->convert1(convertedValue);
1460 }
1461
1462 void webkit_dom_test_obj_convert2(WebKitDOMTestObj* self, WebKitDOMTestNode* value)
1463 {
1464     WebCore::JSMainThreadNullState state;
1465     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1466     g_return_if_fail(WEBKIT_DOM_IS_TEST_NODE(value));
1467     WebCore::TestObj* item = WebKit::core(self);
1468     WebCore::TestNode* convertedValue = WebKit::core(value);
1469     item->convert2(convertedValue);
1470 }
1471
1472 void webkit_dom_test_obj_convert4(WebKitDOMTestObj* self, WebKitDOMTestNode* value)
1473 {
1474     WebCore::JSMainThreadNullState state;
1475     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1476     g_return_if_fail(WEBKIT_DOM_IS_TEST_NODE(value));
1477     WebCore::TestObj* item = WebKit::core(self);
1478     WebCore::TestNode* convertedValue = WebKit::core(value);
1479     item->convert4(convertedValue);
1480 }
1481
1482 void webkit_dom_test_obj_convert5(WebKitDOMTestObj* self, WebKitDOMTestNode* value)
1483 {
1484     WebCore::JSMainThreadNullState state;
1485     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1486     g_return_if_fail(WEBKIT_DOM_IS_TEST_NODE(value));
1487     WebCore::TestObj* item = WebKit::core(self);
1488     WebCore::TestNode* convertedValue = WebKit::core(value);
1489     item->convert5(convertedValue);
1490 }
1491
1492 WebKitDOMSVGPoint* webkit_dom_test_obj_mutable_point_function(WebKitDOMTestObj* self)
1493 {
1494     WebCore::JSMainThreadNullState state;
1495     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1496     WebCore::TestObj* item = WebKit::core(self);
1497     RefPtr<WebCore::SVGPoint> gobjectResult = WTF::getPtr(item->mutablePointFunction());
1498     return WebKit::kit(gobjectResult.get());
1499 }
1500
1501 WebKitDOMSVGPoint* webkit_dom_test_obj_immutable_point_function(WebKitDOMTestObj* self)
1502 {
1503     WebCore::JSMainThreadNullState state;
1504     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1505     WebCore::TestObj* item = WebKit::core(self);
1506     RefPtr<WebCore::SVGPoint> gobjectResult = WTF::getPtr(item->immutablePointFunction());
1507     return WebKit::kit(gobjectResult.get());
1508 }
1509
1510 void webkit_dom_test_obj_orange(WebKitDOMTestObj* self)
1511 {
1512     WebCore::JSMainThreadNullState state;
1513     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1514     WebCore::TestObj* item = WebKit::core(self);
1515     item->banana();
1516 }
1517
1518 WebKitDOMbool* webkit_dom_test_obj_strict_function(WebKitDOMTestObj* self, const gchar* str, gfloat a, glong b, GError** error)
1519 {
1520     WebCore::JSMainThreadNullState state;
1521     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1522     g_return_val_if_fail(str, 0);
1523     g_return_val_if_fail(!error || !*error, 0);
1524     WebCore::TestObj* item = WebKit::core(self);
1525     WTF::String convertedStr = WTF::String::fromUTF8(str);
1526     WebCore::ExceptionCode ec = 0;
1527     RefPtr<WebCore::bool> gobjectResult = WTF::getPtr(item->strictFunction(convertedStr, a, b, ec));
1528     if (ec) {
1529         WebCore::ExceptionCodeDescription ecdesc(ec);
1530         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1531     }
1532     return WebKit::kit(gobjectResult.get());
1533 }
1534
1535 WebKitDOMbool* webkit_dom_test_obj_strict_function_with_array(WebKitDOMTestObj* self, WebKitDOMTestObj* objArg, glong array, GError** error)
1536 {
1537     WebCore::JSMainThreadNullState state;
1538     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1539     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(objArg), 0);
1540     g_return_val_if_fail(WEBKIT_DOM_IS_LONG[](array), 0);
1541     g_return_val_if_fail(!error || !*error, 0);
1542     WebCore::TestObj* item = WebKit::core(self);
1543     WebCore::TestObj* convertedObjArg = WebKit::core(objArg);
1544     WebCore::long[]* convertedArray = WebKit::core(array);
1545     WebCore::ExceptionCode ec = 0;
1546     RefPtr<WebCore::bool> gobjectResult = WTF::getPtr(item->strictFunctionWithArray(convertedObjArg, array, ec));
1547     if (ec) {
1548         WebCore::ExceptionCodeDescription ecdesc(ec);
1549         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1550     }
1551     return WebKit::kit(gobjectResult.get());
1552 }
1553
1554 void webkit_dom_test_obj_variadic_string_method(WebKitDOMTestObj* self, const gchar* head, const gchar* tail)
1555 {
1556     WebCore::JSMainThreadNullState state;
1557     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1558     g_return_if_fail(head);
1559     g_return_if_fail(tail);
1560     WebCore::TestObj* item = WebKit::core(self);
1561     WTF::String convertedHead = WTF::String::fromUTF8(head);
1562     WTF::String convertedTail = WTF::String::fromUTF8(tail);
1563     item->variadicStringMethod(convertedHead, convertedTail);
1564 }
1565
1566 void webkit_dom_test_obj_variadic_double_method(WebKitDOMTestObj* self, gdouble head, gdouble tail)
1567 {
1568     WebCore::JSMainThreadNullState state;
1569     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1570     WebCore::TestObj* item = WebKit::core(self);
1571     item->variadicDoubleMethod(head, tail);
1572 }
1573
1574 void webkit_dom_test_obj_variadic_node_method(WebKitDOMTestObj* self, WebKitDOMNode* head, WebKitDOMNode* tail)
1575 {
1576     WebCore::JSMainThreadNullState state;
1577     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1578     g_return_if_fail(WEBKIT_DOM_IS_NODE(head));
1579     g_return_if_fail(WEBKIT_DOM_IS_NODE(tail));
1580     WebCore::TestObj* item = WebKit::core(self);
1581     WebCore::Node* convertedHead = WebKit::core(head);
1582     WebCore::Node* convertedTail = WebKit::core(tail);
1583     item->variadicNodeMethod(convertedHead, convertedTail);
1584 }
1585
1586 void webkit_dom_test_obj_any(WebKitDOMTestObj* self, gfloat a, glong b)
1587 {
1588     WebCore::JSMainThreadNullState state;
1589     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1590     WebCore::TestObj* item = WebKit::core(self);
1591     item->any(a, b);
1592 }
1593
1594 glong webkit_dom_test_obj_get_read_only_long_attr(WebKitDOMTestObj* self)
1595 {
1596     WebCore::JSMainThreadNullState state;
1597     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1598     WebCore::TestObj* item = WebKit::core(self);
1599     glong result = item->readOnlyLongAttr();
1600     return result;
1601 }
1602
1603 gchar* webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self)
1604 {
1605     WebCore::JSMainThreadNullState state;
1606     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1607     WebCore::TestObj* item = WebKit::core(self);
1608     gchar* result = convertToUTF8String(item->readOnlyStringAttr());
1609     return result;
1610 }
1611
1612 WebKitDOMTestObj* webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self)
1613 {
1614     WebCore::JSMainThreadNullState state;
1615     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1616     WebCore::TestObj* item = WebKit::core(self);
1617     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->readOnlyTestObjAttr());
1618     return WebKit::kit(gobjectResult.get());
1619 }
1620
1621 gint8 webkit_dom_test_obj_get_byte_attr(WebKitDOMTestObj* self)
1622 {
1623     WebCore::JSMainThreadNullState state;
1624     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1625     WebCore::TestObj* item = WebKit::core(self);
1626     gint8 result = item->byteAttr();
1627     return result;
1628 }
1629
1630 void webkit_dom_test_obj_set_byte_attr(WebKitDOMTestObj* self, gint8 value)
1631 {
1632     WebCore::JSMainThreadNullState state;
1633     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1634     WebCore::TestObj* item = WebKit::core(self);
1635     item->setByteAttr(value);
1636 }
1637
1638 guint8 webkit_dom_test_obj_get_octet_attr(WebKitDOMTestObj* self)
1639 {
1640     WebCore::JSMainThreadNullState state;
1641     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1642     WebCore::TestObj* item = WebKit::core(self);
1643     guint8 result = item->octetAttr();
1644     return result;
1645 }
1646
1647 void webkit_dom_test_obj_set_octet_attr(WebKitDOMTestObj* self, guint8 value)
1648 {
1649     WebCore::JSMainThreadNullState state;
1650     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1651     WebCore::TestObj* item = WebKit::core(self);
1652     item->setOctetAttr(value);
1653 }
1654
1655 gshort webkit_dom_test_obj_get_short_attr(WebKitDOMTestObj* self)
1656 {
1657     WebCore::JSMainThreadNullState state;
1658     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1659     WebCore::TestObj* item = WebKit::core(self);
1660     gshort result = item->shortAttr();
1661     return result;
1662 }
1663
1664 void webkit_dom_test_obj_set_short_attr(WebKitDOMTestObj* self, gshort value)
1665 {
1666     WebCore::JSMainThreadNullState state;
1667     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1668     WebCore::TestObj* item = WebKit::core(self);
1669     item->setShortAttr(value);
1670 }
1671
1672 gushort webkit_dom_test_obj_get_unsigned_short_attr(WebKitDOMTestObj* self)
1673 {
1674     WebCore::JSMainThreadNullState state;
1675     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1676     WebCore::TestObj* item = WebKit::core(self);
1677     gushort result = item->unsignedShortAttr();
1678     return result;
1679 }
1680
1681 void webkit_dom_test_obj_set_unsigned_short_attr(WebKitDOMTestObj* self, gushort value)
1682 {
1683     WebCore::JSMainThreadNullState state;
1684     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1685     WebCore::TestObj* item = WebKit::core(self);
1686     item->setUnsignedShortAttr(value);
1687 }
1688
1689 glong webkit_dom_test_obj_get_long_attr(WebKitDOMTestObj* self)
1690 {
1691     WebCore::JSMainThreadNullState state;
1692     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1693     WebCore::TestObj* item = WebKit::core(self);
1694     glong result = item->longAttr();
1695     return result;
1696 }
1697
1698 void webkit_dom_test_obj_set_long_attr(WebKitDOMTestObj* self, glong value)
1699 {
1700     WebCore::JSMainThreadNullState state;
1701     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1702     WebCore::TestObj* item = WebKit::core(self);
1703     item->setLongAttr(value);
1704 }
1705
1706 gint64 webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self)
1707 {
1708     WebCore::JSMainThreadNullState state;
1709     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1710     WebCore::TestObj* item = WebKit::core(self);
1711     gint64 result = item->longLongAttr();
1712     return result;
1713 }
1714
1715 void webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value)
1716 {
1717     WebCore::JSMainThreadNullState state;
1718     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1719     WebCore::TestObj* item = WebKit::core(self);
1720     item->setLongLongAttr(value);
1721 }
1722
1723 guint64 webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self)
1724 {
1725     WebCore::JSMainThreadNullState state;
1726     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1727     WebCore::TestObj* item = WebKit::core(self);
1728     guint64 result = item->unsignedLongLongAttr();
1729     return result;
1730 }
1731
1732 void webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value)
1733 {
1734     WebCore::JSMainThreadNullState state;
1735     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1736     WebCore::TestObj* item = WebKit::core(self);
1737     item->setUnsignedLongLongAttr(value);
1738 }
1739
1740 gchar* webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self)
1741 {
1742     WebCore::JSMainThreadNullState state;
1743     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1744     WebCore::TestObj* item = WebKit::core(self);
1745     gchar* result = convertToUTF8String(item->stringAttr());
1746     return result;
1747 }
1748
1749 void webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, const gchar* value)
1750 {
1751     WebCore::JSMainThreadNullState state;
1752     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1753     g_return_if_fail(value);
1754     WebCore::TestObj* item = WebKit::core(self);
1755     WTF::String convertedValue = WTF::String::fromUTF8(value);
1756     item->setStringAttr(convertedValue);
1757 }
1758
1759 WebKitDOMTestObj* webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self)
1760 {
1761     WebCore::JSMainThreadNullState state;
1762     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1763     WebCore::TestObj* item = WebKit::core(self);
1764     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->testObjAttr());
1765     return WebKit::kit(gobjectResult.get());
1766 }
1767
1768 void webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
1769 {
1770     WebCore::JSMainThreadNullState state;
1771     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1772     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
1773     WebCore::TestObj* item = WebKit::core(self);
1774     WebCore::TestObj* convertedValue = WebKit::core(value);
1775     item->setTestObjAttr(convertedValue);
1776 }
1777
1778 WebKitDOMTestObj* webkit_dom_test_obj_get_xml_obj_attr(WebKitDOMTestObj* self)
1779 {
1780     WebCore::JSMainThreadNullState state;
1781     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1782     WebCore::TestObj* item = WebKit::core(self);
1783     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->xmlObjAttr());
1784     return WebKit::kit(gobjectResult.get());
1785 }
1786
1787 void webkit_dom_test_obj_set_xml_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
1788 {
1789     WebCore::JSMainThreadNullState state;
1790     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1791     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
1792     WebCore::TestObj* item = WebKit::core(self);
1793     WebCore::TestObj* convertedValue = WebKit::core(value);
1794     item->setXMLObjAttr(convertedValue);
1795 }
1796
1797 gboolean webkit_dom_test_obj_get_create(WebKitDOMTestObj* self)
1798 {
1799     WebCore::JSMainThreadNullState state;
1800     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), FALSE);
1801     WebCore::TestObj* item = WebKit::core(self);
1802     gboolean result = item->isCreate();
1803     return result;
1804 }
1805
1806 void webkit_dom_test_obj_set_create(WebKitDOMTestObj* self, gboolean value)
1807 {
1808     WebCore::JSMainThreadNullState state;
1809     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1810     WebCore::TestObj* item = WebKit::core(self);
1811     item->setCreate(value);
1812 }
1813
1814 gchar* webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
1815 {
1816     WebCore::JSMainThreadNullState state;
1817     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1818     WebCore::TestObj* item = WebKit::core(self);
1819     gchar* result = convertToUTF8String(item->fastGetAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
1820     return result;
1821 }
1822
1823 void webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
1824 {
1825     WebCore::JSMainThreadNullState state;
1826     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1827     g_return_if_fail(value);
1828     WebCore::TestObj* item = WebKit::core(self);
1829     WTF::String convertedValue = WTF::String::fromUTF8(value);
1830     item->setAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedstringattrAttr, convertedValue);
1831 }
1832
1833 glong webkit_dom_test_obj_get_reflected_integral_attr(WebKitDOMTestObj* self)
1834 {
1835     WebCore::JSMainThreadNullState state;
1836     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1837     WebCore::TestObj* item = WebKit::core(self);
1838     glong result = item->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
1839     return result;
1840 }
1841
1842 void webkit_dom_test_obj_set_reflected_integral_attr(WebKitDOMTestObj* self, glong value)
1843 {
1844     WebCore::JSMainThreadNullState state;
1845     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1846     WebCore::TestObj* item = WebKit::core(self);
1847     item->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, value);
1848 }
1849
1850 gulong webkit_dom_test_obj_get_reflected_unsigned_integral_attr(WebKitDOMTestObj* self)
1851 {
1852     WebCore::JSMainThreadNullState state;
1853     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1854     WebCore::TestObj* item = WebKit::core(self);
1855     gulong result = item->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
1856     return result;
1857 }
1858
1859 void webkit_dom_test_obj_set_reflected_unsigned_integral_attr(WebKitDOMTestObj* self, gulong value)
1860 {
1861     WebCore::JSMainThreadNullState state;
1862     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1863     WebCore::TestObj* item = WebKit::core(self);
1864     item->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, value);
1865 }
1866
1867 gboolean webkit_dom_test_obj_get_reflected_boolean_attr(WebKitDOMTestObj* self)
1868 {
1869     WebCore::JSMainThreadNullState state;
1870     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), FALSE);
1871     WebCore::TestObj* item = WebKit::core(self);
1872     gboolean result = item->fastHasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
1873     return result;
1874 }
1875
1876 void webkit_dom_test_obj_set_reflected_boolean_attr(WebKitDOMTestObj* self, gboolean value)
1877 {
1878     WebCore::JSMainThreadNullState state;
1879     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1880     WebCore::TestObj* item = WebKit::core(self);
1881     item->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, value);
1882 }
1883
1884 gchar* webkit_dom_test_obj_get_reflected_url_attr(WebKitDOMTestObj* self)
1885 {
1886     WebCore::JSMainThreadNullState state;
1887     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1888     WebCore::TestObj* item = WebKit::core(self);
1889     gchar* result = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
1890     return result;
1891 }
1892
1893 void webkit_dom_test_obj_set_reflected_url_attr(WebKitDOMTestObj* self, const gchar* value)
1894 {
1895     WebCore::JSMainThreadNullState state;
1896     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1897     g_return_if_fail(value);
1898     WebCore::TestObj* item = WebKit::core(self);
1899     WTF::String convertedValue = WTF::String::fromUTF8(value);
1900     item->setAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedurlattrAttr, convertedValue);
1901 }
1902
1903 gchar* webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
1904 {
1905     WebCore::JSMainThreadNullState state;
1906     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1907     WebCore::TestObj* item = WebKit::core(self);
1908     gchar* result = convertToUTF8String(item->fastGetAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
1909     return result;
1910 }
1911
1912 void webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
1913 {
1914     WebCore::JSMainThreadNullState state;
1915     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1916     g_return_if_fail(value);
1917     WebCore::TestObj* item = WebKit::core(self);
1918     WTF::String convertedValue = WTF::String::fromUTF8(value);
1919     item->setAttributeWithoutSynchronization(WebCore::HTMLNames::customContentStringAttrAttr, convertedValue);
1920 }
1921
1922 glong webkit_dom_test_obj_get_reflected_custom_integral_attr(WebKitDOMTestObj* self)
1923 {
1924     WebCore::JSMainThreadNullState state;
1925     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1926     WebCore::TestObj* item = WebKit::core(self);
1927     glong result = item->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
1928     return result;
1929 }
1930
1931 void webkit_dom_test_obj_set_reflected_custom_integral_attr(WebKitDOMTestObj* self, glong value)
1932 {
1933     WebCore::JSMainThreadNullState state;
1934     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1935     WebCore::TestObj* item = WebKit::core(self);
1936     item->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, value);
1937 }
1938
1939 gboolean webkit_dom_test_obj_get_reflected_custom_boolean_attr(WebKitDOMTestObj* self)
1940 {
1941     WebCore::JSMainThreadNullState state;
1942     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), FALSE);
1943     WebCore::TestObj* item = WebKit::core(self);
1944     gboolean result = item->fastHasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
1945     return result;
1946 }
1947
1948 void webkit_dom_test_obj_set_reflected_custom_boolean_attr(WebKitDOMTestObj* self, gboolean value)
1949 {
1950     WebCore::JSMainThreadNullState state;
1951     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1952     WebCore::TestObj* item = WebKit::core(self);
1953     item->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, value);
1954 }
1955
1956 gchar* webkit_dom_test_obj_get_reflected_custom_url_attr(WebKitDOMTestObj* self)
1957 {
1958     WebCore::JSMainThreadNullState state;
1959     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1960     WebCore::TestObj* item = WebKit::core(self);
1961     gchar* result = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
1962     return result;
1963 }
1964
1965 void webkit_dom_test_obj_set_reflected_custom_url_attr(WebKitDOMTestObj* self, const gchar* value)
1966 {
1967     WebCore::JSMainThreadNullState state;
1968     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1969     g_return_if_fail(value);
1970     WebCore::TestObj* item = WebKit::core(self);
1971     WTF::String convertedValue = WTF::String::fromUTF8(value);
1972     item->setAttributeWithoutSynchronization(WebCore::HTMLNames::customContentURLAttrAttr, convertedValue);
1973 }
1974
1975 glong webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self, GError** error)
1976 {
1977     WebCore::JSMainThreadNullState state;
1978     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
1979     g_return_val_if_fail(!error || !*error, 0);
1980     WebCore::TestObj* item = WebKit::core(self);
1981     WebCore::ExceptionCode ec = 0;
1982     glong result = item->attrWithGetterException(ec);
1983     if (ec) {
1984         WebCore::ExceptionCodeDescription ecdesc(ec);
1985         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
1986     }
1987     return result;
1988 }
1989
1990 void webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value)
1991 {
1992     WebCore::JSMainThreadNullState state;
1993     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
1994     WebCore::TestObj* item = WebKit::core(self);
1995     item->setAttrWithGetterException(value);
1996 }
1997
1998 glong webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self)
1999 {
2000     WebCore::JSMainThreadNullState state;
2001     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2002     WebCore::TestObj* item = WebKit::core(self);
2003     glong result = item->attrWithSetterException();
2004     return result;
2005 }
2006
2007 void webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError** error)
2008 {
2009     WebCore::JSMainThreadNullState state;
2010     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2011     g_return_if_fail(!error || !*error);
2012     WebCore::TestObj* item = WebKit::core(self);
2013     WebCore::ExceptionCode ec = 0;
2014     item->setAttrWithSetterException(value, ec);
2015     if (ec) {
2016         WebCore::ExceptionCodeDescription ecdesc(ec);
2017         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
2018     }
2019 }
2020
2021 gchar* webkit_dom_test_obj_get_string_attr_with_getter_exception(WebKitDOMTestObj* self, GError** error)
2022 {
2023     WebCore::JSMainThreadNullState state;
2024     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2025     g_return_val_if_fail(!error || !*error, 0);
2026     WebCore::TestObj* item = WebKit::core(self);
2027     WebCore::ExceptionCode ec = 0;
2028     gchar* result = convertToUTF8String(item->stringAttrWithGetterException(ec));
2029     return result;
2030 }
2031
2032 void webkit_dom_test_obj_set_string_attr_with_getter_exception(WebKitDOMTestObj* self, const gchar* value)
2033 {
2034     WebCore::JSMainThreadNullState state;
2035     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2036     g_return_if_fail(value);
2037     WebCore::TestObj* item = WebKit::core(self);
2038     WTF::String convertedValue = WTF::String::fromUTF8(value);
2039     item->setStringAttrWithGetterException(convertedValue);
2040 }
2041
2042 gchar* webkit_dom_test_obj_get_string_attr_with_setter_exception(WebKitDOMTestObj* self)
2043 {
2044     WebCore::JSMainThreadNullState state;
2045     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2046     WebCore::TestObj* item = WebKit::core(self);
2047     gchar* result = convertToUTF8String(item->stringAttrWithSetterException());
2048     return result;
2049 }
2050
2051 void webkit_dom_test_obj_set_string_attr_with_setter_exception(WebKitDOMTestObj* self, const gchar* value, GError** error)
2052 {
2053     WebCore::JSMainThreadNullState state;
2054     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2055     g_return_if_fail(value);
2056     g_return_if_fail(!error || !*error);
2057     WebCore::TestObj* item = WebKit::core(self);
2058     WTF::String convertedValue = WTF::String::fromUTF8(value);
2059     WebCore::ExceptionCode ec = 0;
2060     item->setStringAttrWithSetterException(convertedValue, ec);
2061     if (ec) {
2062         WebCore::ExceptionCodeDescription ecdesc(ec);
2063         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
2064     }
2065 }
2066
2067 WebKitDOMTestObj* webkit_dom_test_obj_get_strict_type_checking_attribute(WebKitDOMTestObj* self)
2068 {
2069     WebCore::JSMainThreadNullState state;
2070     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2071     WebCore::TestObj* item = WebKit::core(self);
2072     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->strictTypeCheckingAttribute());
2073     return WebKit::kit(gobjectResult.get());
2074 }
2075
2076 void webkit_dom_test_obj_set_strict_type_checking_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2077 {
2078     WebCore::JSMainThreadNullState state;
2079     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2080     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2081     WebCore::TestObj* item = WebKit::core(self);
2082     WebCore::TestObj* convertedValue = WebKit::core(value);
2083     item->setStrictTypeCheckingAttribute(convertedValue);
2084 }
2085
2086 glong webkit_dom_test_obj_get_with_script_state_attribute(WebKitDOMTestObj* self)
2087 {
2088     WebCore::JSMainThreadNullState state;
2089     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2090     WebCore::TestObj* item = WebKit::core(self);
2091     glong result = item->withScriptStateAttribute();
2092     return result;
2093 }
2094
2095 void webkit_dom_test_obj_set_with_script_state_attribute(WebKitDOMTestObj* self, glong value)
2096 {
2097     WebCore::JSMainThreadNullState state;
2098     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2099     WebCore::TestObj* item = WebKit::core(self);
2100     item->setWithScriptStateAttribute(value);
2101 }
2102
2103 glong webkit_dom_test_obj_get_with_call_with_and_setter_call_with_attribute(WebKitDOMTestObj* self)
2104 {
2105     WebCore::JSMainThreadNullState state;
2106     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2107     WebCore::TestObj* item = WebKit::core(self);
2108     glong result = item->withCallWithAndSetterCallWithAttribute();
2109     return result;
2110 }
2111
2112 void webkit_dom_test_obj_set_with_call_with_and_setter_call_with_attribute(WebKitDOMTestObj* self, glong value)
2113 {
2114     WebCore::JSMainThreadNullState state;
2115     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2116     WebCore::TestObj* item = WebKit::core(self);
2117     item->setWithCallWithAndSetterCallWithAttribute(value);
2118 }
2119
2120 WebKitDOMTestObj* webkit_dom_test_obj_get_with_script_execution_context_attribute(WebKitDOMTestObj* self)
2121 {
2122     WebCore::JSMainThreadNullState state;
2123     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2124     WebCore::TestObj* item = WebKit::core(self);
2125     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAttribute());
2126     return WebKit::kit(gobjectResult.get());
2127 }
2128
2129 void webkit_dom_test_obj_set_with_script_execution_context_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2130 {
2131     WebCore::JSMainThreadNullState state;
2132     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2133     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2134     WebCore::TestObj* item = WebKit::core(self);
2135     WebCore::TestObj* convertedValue = WebKit::core(value);
2136     item->setWithScriptExecutionContextAttribute(convertedValue);
2137 }
2138
2139 WebKitDOMTestObj* webkit_dom_test_obj_get_with_script_state_attribute_raises(WebKitDOMTestObj* self, GError** error)
2140 {
2141     WebCore::JSMainThreadNullState state;
2142     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2143     g_return_val_if_fail(!error || !*error, 0);
2144     WebCore::TestObj* item = WebKit::core(self);
2145     WebCore::ExceptionCode ec = 0;
2146     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptStateAttributeRaises(ec));
2147     if (ec) {
2148         WebCore::ExceptionCodeDescription ecdesc(ec);
2149         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
2150     }
2151     return WebKit::kit(gobjectResult.get());
2152 }
2153
2154 void webkit_dom_test_obj_set_with_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2155 {
2156     WebCore::JSMainThreadNullState state;
2157     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2158     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2159     WebCore::TestObj* item = WebKit::core(self);
2160     WebCore::TestObj* convertedValue = WebKit::core(value);
2161     item->setWithScriptStateAttributeRaises(convertedValue);
2162 }
2163
2164 WebKitDOMTestObj* webkit_dom_test_obj_get_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, GError** error)
2165 {
2166     WebCore::JSMainThreadNullState state;
2167     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2168     g_return_val_if_fail(!error || !*error, 0);
2169     WebCore::TestObj* item = WebKit::core(self);
2170     WebCore::ExceptionCode ec = 0;
2171     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAttributeRaises(ec));
2172     if (ec) {
2173         WebCore::ExceptionCodeDescription ecdesc(ec);
2174         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
2175     }
2176     return WebKit::kit(gobjectResult.get());
2177 }
2178
2179 void webkit_dom_test_obj_set_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2180 {
2181     WebCore::JSMainThreadNullState state;
2182     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2183     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2184     WebCore::TestObj* item = WebKit::core(self);
2185     WebCore::TestObj* convertedValue = WebKit::core(value);
2186     item->setWithScriptExecutionContextAttributeRaises(convertedValue);
2187 }
2188
2189 WebKitDOMTestObj* webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute(WebKitDOMTestObj* self)
2190 {
2191     WebCore::JSMainThreadNullState state;
2192     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2193     WebCore::TestObj* item = WebKit::core(self);
2194     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAndScriptStateAttribute());
2195     return WebKit::kit(gobjectResult.get());
2196 }
2197
2198 void webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2199 {
2200     WebCore::JSMainThreadNullState state;
2201     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2202     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2203     WebCore::TestObj* item = WebKit::core(self);
2204     WebCore::TestObj* convertedValue = WebKit::core(value);
2205     item->setWithScriptExecutionContextAndScriptStateAttribute(convertedValue);
2206 }
2207
2208 WebKitDOMTestObj* webkit_dom_test_obj_get_with_script_execution_context_and_script_state_attribute_raises(WebKitDOMTestObj* self, GError** error)
2209 {
2210     WebCore::JSMainThreadNullState state;
2211     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2212     g_return_val_if_fail(!error || !*error, 0);
2213     WebCore::TestObj* item = WebKit::core(self);
2214     WebCore::ExceptionCode ec = 0;
2215     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAndScriptStateAttributeRaises(ec));
2216     if (ec) {
2217         WebCore::ExceptionCodeDescription ecdesc(ec);
2218         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
2219     }
2220     return WebKit::kit(gobjectResult.get());
2221 }
2222
2223 void webkit_dom_test_obj_set_with_script_execution_context_and_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2224 {
2225     WebCore::JSMainThreadNullState state;
2226     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2227     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2228     WebCore::TestObj* item = WebKit::core(self);
2229     WebCore::TestObj* convertedValue = WebKit::core(value);
2230     item->setWithScriptExecutionContextAndScriptStateAttributeRaises(convertedValue);
2231 }
2232
2233 WebKitDOMTestObj* webkit_dom_test_obj_get_with_script_execution_context_and_script_state_with_spaces_attribute(WebKitDOMTestObj* self)
2234 {
2235     WebCore::JSMainThreadNullState state;
2236     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2237     WebCore::TestObj* item = WebKit::core(self);
2238     RefPtr<WebCore::TestObj> gobjectResult = WTF::getPtr(item->withScriptExecutionContextAndScriptStateWithSpacesAttribute());
2239     return WebKit::kit(gobjectResult.get());
2240 }
2241
2242 void webkit_dom_test_obj_set_with_script_execution_context_and_script_state_with_spaces_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
2243 {
2244     WebCore::JSMainThreadNullState state;
2245     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2246     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(value));
2247     WebCore::TestObj* item = WebKit::core(self);
2248     WebCore::TestObj* convertedValue = WebKit::core(value);
2249     item->setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(convertedValue);
2250 }
2251
2252 glong webkit_dom_test_obj_get_conditional_attr1(WebKitDOMTestObj* self)
2253 {
2254 #if ENABLE(Condition1)
2255     WebCore::JSMainThreadNullState state;
2256     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2257     WebCore::TestObj* item = WebKit::core(self);
2258     glong result = item->conditionalAttr1();
2259     return result;
2260 #else
2261     UNUSED_PARAM(self);
2262     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
2263     return static_cast<glong>(0);
2264 #endif /* ENABLE(Condition1) */
2265 }
2266
2267 void webkit_dom_test_obj_set_conditional_attr1(WebKitDOMTestObj* self, glong value)
2268 {
2269 #if ENABLE(Condition1)
2270     WebCore::JSMainThreadNullState state;
2271     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2272     WebCore::TestObj* item = WebKit::core(self);
2273     item->setConditionalAttr1(value);
2274 #else
2275     UNUSED_PARAM(self);
2276     UNUSED_PARAM(value);
2277     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
2278 #endif /* ENABLE(Condition1) */
2279 }
2280
2281 glong webkit_dom_test_obj_get_conditional_attr2(WebKitDOMTestObj* self)
2282 {
2283 #if ENABLE(Condition1) && ENABLE(Condition2)
2284     WebCore::JSMainThreadNullState state;
2285     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2286     WebCore::TestObj* item = WebKit::core(self);
2287     glong result = item->conditionalAttr2();
2288     return result;
2289 #else
2290     UNUSED_PARAM(self);
2291 #if !ENABLE(Condition1)
2292     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
2293 #endif
2294 #if !ENABLE(Condition2)
2295     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
2296 #endif
2297     return static_cast<glong>(0);
2298 #endif /* ENABLE(Condition1) && ENABLE(Condition2) */
2299 }
2300
2301 void webkit_dom_test_obj_set_conditional_attr2(WebKitDOMTestObj* self, glong value)
2302 {
2303 #if ENABLE(Condition1) && ENABLE(Condition2)
2304     WebCore::JSMainThreadNullState state;
2305     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2306     WebCore::TestObj* item = WebKit::core(self);
2307     item->setConditionalAttr2(value);
2308 #else
2309     UNUSED_PARAM(self);
2310     UNUSED_PARAM(value);
2311 #if !ENABLE(Condition1)
2312     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
2313 #endif
2314 #if !ENABLE(Condition2)
2315     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
2316 #endif
2317 #endif /* ENABLE(Condition1) && ENABLE(Condition2) */
2318 }
2319
2320 glong webkit_dom_test_obj_get_conditional_attr3(WebKitDOMTestObj* self)
2321 {
2322 #if ENABLE(Condition1) || ENABLE(Condition2)
2323     WebCore::JSMainThreadNullState state;
2324     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2325     WebCore::TestObj* item = WebKit::core(self);
2326     glong result = item->conditionalAttr3();
2327     return result;
2328 #else
2329     UNUSED_PARAM(self);
2330     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
2331     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
2332     return static_cast<glong>(0);
2333 #endif /* ENABLE(Condition1) || ENABLE(Condition2) */
2334 }
2335
2336 void webkit_dom_test_obj_set_conditional_attr3(WebKitDOMTestObj* self, glong value)
2337 {
2338 #if ENABLE(Condition1) || ENABLE(Condition2)
2339     WebCore::JSMainThreadNullState state;
2340     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2341     WebCore::TestObj* item = WebKit::core(self);
2342     item->setConditionalAttr3(value);
2343 #else
2344     UNUSED_PARAM(self);
2345     UNUSED_PARAM(value);
2346     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition1")
2347     WEBKIT_WARN_FEATURE_NOT_PRESENT("Condition2")
2348 #endif /* ENABLE(Condition1) || ENABLE(Condition2) */
2349 }
2350
2351 WebKitDOMany* webkit_dom_test_obj_get_any_attribute(WebKitDOMTestObj* self)
2352 {
2353     WebCore::JSMainThreadNullState state;
2354     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2355     WebCore::TestObj* item = WebKit::core(self);
2356     RefPtr<WebCore::any> gobjectResult = WTF::getPtr(item->anyAttribute());
2357     return 0; // TODO: return canvas object
2358 }
2359
2360 void webkit_dom_test_obj_set_any_attribute(WebKitDOMTestObj* self, WebKitDOMany* value)
2361 {
2362     WebCore::JSMainThreadNullState state;
2363     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2364     g_return_if_fail(WEBKIT_DOM_IS_ANY(value));
2365     WebCore::TestObj* item = WebKit::core(self);
2366     WebCore::any* convertedValue = WebKit::core(value);
2367     item->setAnyAttribute(convertedValue);
2368 }
2369
2370 WebKitDOMDocument* webkit_dom_test_obj_get_content_document(WebKitDOMTestObj* self)
2371 {
2372     WebCore::JSMainThreadNullState state;
2373     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2374     WebCore::TestObj* item = WebKit::core(self);
2375     RefPtr<WebCore::Document> gobjectResult = WTF::getPtr(item->contentDocument());
2376     return WebKit::kit(gobjectResult.get());
2377 }
2378
2379 WebKitDOMSVGPoint* webkit_dom_test_obj_get_mutable_point(WebKitDOMTestObj* self)
2380 {
2381     WebCore::JSMainThreadNullState state;
2382     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2383     WebCore::TestObj* item = WebKit::core(self);
2384     RefPtr<WebCore::SVGPoint> gobjectResult = WTF::getPtr(item->mutablePoint());
2385     return WebKit::kit(gobjectResult.get());
2386 }
2387
2388 void webkit_dom_test_obj_set_mutable_point(WebKitDOMTestObj* self, WebKitDOMSVGPoint* value)
2389 {
2390     WebCore::JSMainThreadNullState state;
2391     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2392     g_return_if_fail(WEBKIT_DOM_IS_SVG_POINT(value));
2393     WebCore::TestObj* item = WebKit::core(self);
2394     WebCore::SVGPoint* convertedValue = WebKit::core(value);
2395     item->setMutablePoint(convertedValue);
2396 }
2397
2398 WebKitDOMSVGPoint* webkit_dom_test_obj_get_immutable_point(WebKitDOMTestObj* self)
2399 {
2400     WebCore::JSMainThreadNullState state;
2401     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2402     WebCore::TestObj* item = WebKit::core(self);
2403     RefPtr<WebCore::SVGPoint> gobjectResult = WTF::getPtr(item->immutablePoint());
2404     return WebKit::kit(gobjectResult.get());
2405 }
2406
2407 void webkit_dom_test_obj_set_immutable_point(WebKitDOMTestObj* self, WebKitDOMSVGPoint* value)
2408 {
2409     WebCore::JSMainThreadNullState state;
2410     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2411     g_return_if_fail(WEBKIT_DOM_IS_SVG_POINT(value));
2412     WebCore::TestObj* item = WebKit::core(self);
2413     WebCore::SVGPoint* convertedValue = WebKit::core(value);
2414     item->setImmutablePoint(convertedValue);
2415 }
2416
2417 glong webkit_dom_test_obj_get_strawberry(WebKitDOMTestObj* self)
2418 {
2419     WebCore::JSMainThreadNullState state;
2420     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2421     WebCore::TestObj* item = WebKit::core(self);
2422     glong result = item->blueberry();
2423     return result;
2424 }
2425
2426 void webkit_dom_test_obj_set_strawberry(WebKitDOMTestObj* self, glong value)
2427 {
2428     WebCore::JSMainThreadNullState state;
2429     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2430     WebCore::TestObj* item = WebKit::core(self);
2431     item->setBlueberry(value);
2432 }
2433
2434 gfloat webkit_dom_test_obj_get_strict_float(WebKitDOMTestObj* self)
2435 {
2436     WebCore::JSMainThreadNullState state;
2437     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2438     WebCore::TestObj* item = WebKit::core(self);
2439     gfloat result = item->strictFloat();
2440     return result;
2441 }
2442
2443 void webkit_dom_test_obj_set_strict_float(WebKitDOMTestObj* self, gfloat value)
2444 {
2445     WebCore::JSMainThreadNullState state;
2446     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2447     WebCore::TestObj* item = WebKit::core(self);
2448     item->setStrictFloat(value);
2449 }
2450
2451 glong webkit_dom_test_obj_get_description(WebKitDOMTestObj* self)
2452 {
2453     WebCore::JSMainThreadNullState state;
2454     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2455     WebCore::TestObj* item = WebKit::core(self);
2456     glong result = item->description();
2457     return result;
2458 }
2459
2460 glong webkit_dom_test_obj_get_id(WebKitDOMTestObj* self)
2461 {
2462     WebCore::JSMainThreadNullState state;
2463     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2464     WebCore::TestObj* item = WebKit::core(self);
2465     glong result = item->id();
2466     return result;
2467 }
2468
2469 void webkit_dom_test_obj_set_id(WebKitDOMTestObj* self, glong value)
2470 {
2471     WebCore::JSMainThreadNullState state;
2472     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2473     WebCore::TestObj* item = WebKit::core(self);
2474     item->setId(value);
2475 }
2476
2477 gchar* webkit_dom_test_obj_get_hash(WebKitDOMTestObj* self)
2478 {
2479     WebCore::JSMainThreadNullState state;
2480     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2481     WebCore::TestObj* item = WebKit::core(self);
2482     gchar* result = convertToUTF8String(item->hash());
2483     return result;
2484 }
2485
2486 glong webkit_dom_test_obj_get_replaceable_attribute(WebKitDOMTestObj* self)
2487 {
2488     WebCore::JSMainThreadNullState state;
2489     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2490     WebCore::TestObj* item = WebKit::core(self);
2491     glong result = item->replaceableAttribute();
2492     return result;
2493 }
2494
2495 gdouble webkit_dom_test_obj_get_nullable_double_attribute(WebKitDOMTestObj* self)
2496 {
2497     WebCore::JSMainThreadNullState state;
2498     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2499     WebCore::TestObj* item = WebKit::core(self);
2500     bool isNull = false;
2501     gdouble result = item->nullableDoubleAttribute(isNull);
2502     return result;
2503 }
2504
2505 glong webkit_dom_test_obj_get_nullable_long_attribute(WebKitDOMTestObj* self)
2506 {
2507     WebCore::JSMainThreadNullState state;
2508     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2509     WebCore::TestObj* item = WebKit::core(self);
2510     bool isNull = false;
2511     glong result = item->nullableLongAttribute(isNull);
2512     return result;
2513 }
2514
2515 gboolean webkit_dom_test_obj_get_nullable_boolean_attribute(WebKitDOMTestObj* self)
2516 {
2517     WebCore::JSMainThreadNullState state;
2518     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), FALSE);
2519     WebCore::TestObj* item = WebKit::core(self);
2520     bool isNull = false;
2521     gboolean result = item->nullableBooleanAttribute(isNull);
2522     return result;
2523 }
2524
2525 gchar* webkit_dom_test_obj_get_nullable_string_attribute(WebKitDOMTestObj* self)
2526 {
2527     WebCore::JSMainThreadNullState state;
2528     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2529     WebCore::TestObj* item = WebKit::core(self);
2530     bool isNull = false;
2531     gchar* result = convertToUTF8String(item->nullableStringAttribute(isNull));
2532     return result;
2533 }
2534
2535 glong webkit_dom_test_obj_get_nullable_long_settable_attribute(WebKitDOMTestObj* self)
2536 {
2537     WebCore::JSMainThreadNullState state;
2538     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2539     WebCore::TestObj* item = WebKit::core(self);
2540     bool isNull = false;
2541     glong result = item->nullableLongSettableAttribute(isNull);
2542     return result;
2543 }
2544
2545 void webkit_dom_test_obj_set_nullable_long_settable_attribute(WebKitDOMTestObj* self, glong value)
2546 {
2547     WebCore::JSMainThreadNullState state;
2548     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2549     WebCore::TestObj* item = WebKit::core(self);
2550     item->setNullableLongSettableAttribute(value);
2551 }
2552
2553 glong webkit_dom_test_obj_get_nullable_string_value(WebKitDOMTestObj* self, GError** error)
2554 {
2555     WebCore::JSMainThreadNullState state;
2556     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2557     g_return_val_if_fail(!error || !*error, 0);
2558     WebCore::TestObj* item = WebKit::core(self);
2559     bool isNull = false;
2560     WebCore::ExceptionCode ec = 0;
2561     glong result = item->nullableStringValue(isNull, ec);
2562     if (ec) {
2563         WebCore::ExceptionCodeDescription ecdesc(ec);
2564         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
2565     }
2566     return result;
2567 }
2568
2569 void webkit_dom_test_obj_set_nullable_string_value(WebKitDOMTestObj* self, glong value)
2570 {
2571     WebCore::JSMainThreadNullState state;
2572     g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
2573     WebCore::TestObj* item = WebKit::core(self);
2574     item->setNullableStringValue(value);
2575 }
2576
2577 gchar* webkit_dom_test_obj_get_attribute(WebKitDOMTestObj* self)
2578 {
2579     WebCore::JSMainThreadNullState state;
2580     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2581     WebCore::TestObj* item = WebKit::core(self);
2582     gchar* result = convertToUTF8String(item->attribute());
2583     return result;
2584 }
2585
2586 WebKitDOMTestNode* webkit_dom_test_obj_get_put_forwards_attribute(WebKitDOMTestObj* self)
2587 {
2588     WebCore::JSMainThreadNullState state;
2589     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2590     WebCore::TestObj* item = WebKit::core(self);
2591     RefPtr<WebCore::TestNode> gobjectResult = WTF::getPtr(item->putForwardsAttribute());
2592     return WebKit::kit(gobjectResult.get());
2593 }
2594
2595 WebKitDOMTestNode* webkit_dom_test_obj_get_put_forwards_nullable_attribute(WebKitDOMTestObj* self)
2596 {
2597     WebCore::JSMainThreadNullState state;
2598     g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
2599     WebCore::TestObj* item = WebKit::core(self);
2600     bool isNull = false;
2601     RefPtr<WebCore::TestNode> gobjectResult = WTF::getPtr(item->putForwardsNullableAttribute(isNull));
2602     return WebKit::kit(gobjectResult.get());
2603 }
2604