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