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