4abf8a0030067996d05a1674a8eca65901e55fc4
[WebKit-https.git] / 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 "ExceptionCode.h"
27 #include "TestObj.h"
28 #include "WebKitDOMBinding.h"
29 #include "gobject/ConvertToUTF8String.h"
30 #include "webkit/WebKitDOMTestObj.h"
31 #include "webkit/WebKitDOMTestObjPrivate.h"
32 #include "webkit/WebKitDOMlog.h"
33 #include "webkit/WebKitDOMlogPrivate.h"
34 #include "webkitmarshal.h"
35 #include "webkitprivate.h"
36
37 namespace WebKit {
38     
39 gpointer kit(WebCore::TestObj* obj)
40 {
41     g_return_val_if_fail(obj != 0, 0);
42
43     if (gpointer ret = DOMObjectCache::get(obj))
44         return ret;
45
46     return DOMObjectCache::put(obj, WebKit::wrapTestObj(obj));
47 }
48     
49 } // namespace WebKit //
50
51 void
52 webkit_dom_test_obj_void_method (WebKitDOMTestObj *self)
53 {
54     g_return_if_fail (self);
55     WebCore::TestObj * item = WebKit::core(self);
56     item->voidMethod();
57
58 }
59
60 void
61 webkit_dom_test_obj_void_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
62 {
63     g_return_if_fail (self);
64     WebCore::TestObj * item = WebKit::core(self);
65     g_return_if_fail (str_arg);
66     g_return_if_fail (obj_arg);
67     WebCore::String _g_str_arg = WebCore::String::fromUTF8(str_arg);
68     WebCore::TestObj * _g_obj_arg = WebKit::core(obj_arg);
69     g_return_if_fail (_g_obj_arg);
70     item->voidMethodWithArgs(int_arg, _g_str_arg, _g_obj_arg);
71
72 }
73
74 glong
75 webkit_dom_test_obj_int_method (WebKitDOMTestObj *self)
76 {
77     g_return_val_if_fail (self, 0);
78     WebCore::TestObj * item = WebKit::core(self);
79     glong res = item->intMethod();
80     return res;
81
82 }
83
84 glong
85 webkit_dom_test_obj_int_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
86 {
87     g_return_val_if_fail (self, 0);
88     WebCore::TestObj * item = WebKit::core(self);
89     g_return_val_if_fail (str_arg, 0);
90     g_return_val_if_fail (obj_arg, 0);
91     WebCore::String _g_str_arg = WebCore::String::fromUTF8(str_arg);
92     WebCore::TestObj * _g_obj_arg = WebKit::core(obj_arg);
93     g_return_val_if_fail (_g_obj_arg, 0);
94     glong res = item->intMethodWithArgs(int_arg, _g_str_arg, _g_obj_arg);
95     return res;
96
97 }
98
99 WebKitDOMTestObj* 
100 webkit_dom_test_obj_obj_method (WebKitDOMTestObj *self)
101 {
102     g_return_val_if_fail (self, 0);
103     WebCore::TestObj * item = WebKit::core(self);
104     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethod());
105     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
106     return res;
107
108 }
109
110 WebKitDOMTestObj* 
111 webkit_dom_test_obj_obj_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
112 {
113     g_return_val_if_fail (self, 0);
114     WebCore::TestObj * item = WebKit::core(self);
115     g_return_val_if_fail (str_arg, 0);
116     g_return_val_if_fail (obj_arg, 0);
117     WebCore::String _g_str_arg = WebCore::String::fromUTF8(str_arg);
118     WebCore::TestObj * _g_obj_arg = WebKit::core(obj_arg);
119     g_return_val_if_fail (_g_obj_arg, 0);
120     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethodWithArgs(int_arg, _g_str_arg, _g_obj_arg));
121     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
122     return res;
123
124 }
125
126 void
127 webkit_dom_test_obj_method_with_exception (WebKitDOMTestObj *self, GError **error)
128 {
129     g_return_if_fail (self);
130     WebCore::TestObj * item = WebKit::core(self);
131     WebCore::ExceptionCode ec = 0;
132     item->methodWithException(ec);
133     if (ec) {
134         WebCore::ExceptionCodeDescription ecdesc;
135         WebCore::getExceptionCodeDescription(ec, ecdesc);
136         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
137     }
138
139 }
140
141
142 /* TODO: custom function webkit_dom_test_obj_custom_args_and_exception */
143
144
145 /* TODO: event function webkit_dom_test_obj_add_event_listener */
146
147
148 /* TODO: event function webkit_dom_test_obj_remove_event_listener */
149
150 void
151 webkit_dom_test_obj_with_dynamic_frame (WebKitDOMTestObj *self)
152 {
153     g_return_if_fail (self);
154     WebCore::TestObj * item = WebKit::core(self);
155     item->withDynamicFrame();
156
157 }
158
159 void
160 webkit_dom_test_obj_with_dynamic_frame_and_arg (WebKitDOMTestObj *self, glong int_arg)
161 {
162     g_return_if_fail (self);
163     WebCore::TestObj * item = WebKit::core(self);
164     item->withDynamicFrameAndArg(int_arg);
165
166 }
167
168 void
169 webkit_dom_test_obj_with_dynamic_frame_and_optional_arg (WebKitDOMTestObj *self, glong int_arg, glong optional_arg)
170 {
171     g_return_if_fail (self);
172     WebCore::TestObj * item = WebKit::core(self);
173     item->withDynamicFrameAndOptionalArg(int_arg, optional_arg);
174
175 }
176
177 void
178 webkit_dom_test_obj_with_dynamic_frame_and_user_gesture (WebKitDOMTestObj *self, glong int_arg)
179 {
180     g_return_if_fail (self);
181     WebCore::TestObj * item = WebKit::core(self);
182     item->withDynamicFrameAndUserGesture(int_arg);
183
184 }
185
186 void
187 webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad (WebKitDOMTestObj *self, glong int_arg, glong optional_arg)
188 {
189     g_return_if_fail (self);
190     WebCore::TestObj * item = WebKit::core(self);
191     item->withDynamicFrameAndUserGestureASAD(int_arg, optional_arg);
192
193 }
194
195 void
196 webkit_dom_test_obj_with_script_state_void (WebKitDOMTestObj *self)
197 {
198     g_return_if_fail (self);
199     WebCore::TestObj * item = WebKit::core(self);
200     item->withScriptStateVoid();
201
202 }
203
204 WebKitDOMTestObj* 
205 webkit_dom_test_obj_with_script_state_obj (WebKitDOMTestObj *self)
206 {
207     g_return_val_if_fail (self, 0);
208     WebCore::TestObj * item = WebKit::core(self);
209     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObj());
210     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
211     return res;
212
213 }
214
215 void
216 webkit_dom_test_obj_with_script_state_void_exception (WebKitDOMTestObj *self, GError **error)
217 {
218     g_return_if_fail (self);
219     WebCore::TestObj * item = WebKit::core(self);
220     WebCore::ExceptionCode ec = 0;
221     item->withScriptStateVoidException(ec);
222     if (ec) {
223         WebCore::ExceptionCodeDescription ecdesc;
224         WebCore::getExceptionCodeDescription(ec, ecdesc);
225         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
226     }
227
228 }
229
230 WebKitDOMTestObj* 
231 webkit_dom_test_obj_with_script_state_obj_exception (WebKitDOMTestObj *self, GError **error)
232 {
233     g_return_val_if_fail (self, 0);
234     WebCore::TestObj * item = WebKit::core(self);
235     WebCore::ExceptionCode ec = 0;
236     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObjException(ec));
237     if (ec) {
238         WebCore::ExceptionCodeDescription ecdesc;
239         WebCore::getExceptionCodeDescription(ec, ecdesc);
240         g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
241     }
242     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
243     return res;
244
245 }
246
247 void
248 webkit_dom_test_obj_method_with_optional_arg (WebKitDOMTestObj *self, glong opt)
249 {
250     g_return_if_fail (self);
251     WebCore::TestObj * item = WebKit::core(self);
252     item->methodWithOptionalArg(opt);
253
254 }
255
256 void
257 webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg (WebKitDOMTestObj *self, glong non_opt, glong opt)
258 {
259     g_return_if_fail (self);
260     WebCore::TestObj * item = WebKit::core(self);
261     item->methodWithNonOptionalArgAndOptionalArg(non_opt, opt);
262
263 }
264
265 void
266 webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args (WebKitDOMTestObj *self, glong non_opt, glong opt1, glong opt2)
267 {
268     g_return_if_fail (self);
269     WebCore::TestObj * item = WebKit::core(self);
270     item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
271
272 }
273
274 glong
275 webkit_dom_test_obj_get_read_only_int_attr (WebKitDOMTestObj *self)
276 {
277     g_return_val_if_fail (self, 0);
278     WebCore::TestObj * item = WebKit::core(self);
279     glong res = item->readOnlyIntAttr();
280     return res;
281
282 }
283
284 gchar* 
285 webkit_dom_test_obj_get_read_only_string_attr (WebKitDOMTestObj *self)
286 {
287     g_return_val_if_fail (self, 0);
288     WebCore::TestObj * item = WebKit::core(self);
289     gchar*  res = convertToUTF8String(item->readOnlyStringAttr());
290     return res;
291
292 }
293
294 WebKitDOMTestObj* 
295 webkit_dom_test_obj_get_read_only_test_obj_attr (WebKitDOMTestObj *self)
296 {
297     g_return_val_if_fail (self, 0);
298     WebCore::TestObj * item = WebKit::core(self);
299     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->readOnlyTestObjAttr());
300     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
301     return res;
302
303 }
304
305 glong
306 webkit_dom_test_obj_get_int_attr (WebKitDOMTestObj *self)
307 {
308     g_return_val_if_fail (self, 0);
309     WebCore::TestObj * item = WebKit::core(self);
310     glong res = item->intAttr();
311     return res;
312
313 }
314
315 void
316 webkit_dom_test_obj_set_int_attr (WebKitDOMTestObj *self, glong value)
317 {
318     g_return_if_fail (self);
319     WebCore::TestObj * item = WebKit::core(self);
320     item->setIntAttr(value);
321
322 }
323
324 gint64
325 webkit_dom_test_obj_get_long_long_attr (WebKitDOMTestObj *self)
326 {
327     g_return_val_if_fail (self, 0);
328     WebCore::TestObj * item = WebKit::core(self);
329     gint64 res = item->longLongAttr();
330     return res;
331
332 }
333
334 void
335 webkit_dom_test_obj_set_long_long_attr (WebKitDOMTestObj *self, gint64 value)
336 {
337     g_return_if_fail (self);
338     WebCore::TestObj * item = WebKit::core(self);
339     item->setLongLongAttr(value);
340
341 }
342
343 guint64
344 webkit_dom_test_obj_get_unsigned_long_long_attr (WebKitDOMTestObj *self)
345 {
346     g_return_val_if_fail (self, 0);
347     WebCore::TestObj * item = WebKit::core(self);
348     guint64 res = item->unsignedLongLongAttr();
349     return res;
350
351 }
352
353 void
354 webkit_dom_test_obj_set_unsigned_long_long_attr (WebKitDOMTestObj *self, guint64 value)
355 {
356     g_return_if_fail (self);
357     WebCore::TestObj * item = WebKit::core(self);
358     item->setUnsignedLongLongAttr(value);
359
360 }
361
362 gchar* 
363 webkit_dom_test_obj_get_string_attr (WebKitDOMTestObj *self)
364 {
365     g_return_val_if_fail (self, 0);
366     WebCore::TestObj * item = WebKit::core(self);
367     gchar*  res = convertToUTF8String(item->stringAttr());
368     return res;
369
370 }
371
372 void
373 webkit_dom_test_obj_set_string_attr (WebKitDOMTestObj *self, gchar*  value)
374 {
375     g_return_if_fail (self);
376     WebCore::TestObj * item = WebKit::core(self);
377     g_return_if_fail (value);
378     WebCore::String _g_value = WebCore::String::fromUTF8(value);
379     item->setStringAttr(_g_value);
380
381 }
382
383 WebKitDOMTestObj* 
384 webkit_dom_test_obj_get_test_obj_attr (WebKitDOMTestObj *self)
385 {
386     g_return_val_if_fail (self, 0);
387     WebCore::TestObj * item = WebKit::core(self);
388     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->testObjAttr());
389     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
390     return res;
391
392 }
393
394 void
395 webkit_dom_test_obj_set_test_obj_attr (WebKitDOMTestObj *self, WebKitDOMTestObj*  value)
396 {
397     g_return_if_fail (self);
398     WebCore::TestObj * item = WebKit::core(self);
399     g_return_if_fail (value);
400     WebCore::TestObj * _g_value = WebKit::core(value);
401     g_return_if_fail (_g_value);
402     item->setTestObjAttr(_g_value);
403
404 }
405
406 glong
407 webkit_dom_test_obj_get_attr_with_exception (WebKitDOMTestObj *self)
408 {
409     g_return_val_if_fail (self, 0);
410     WebCore::TestObj * item = WebKit::core(self);
411     glong res = item->attrWithException();
412     return res;
413
414 }
415
416 void
417 webkit_dom_test_obj_set_attr_with_exception (WebKitDOMTestObj *self, glong value)
418 {
419     g_return_if_fail (self);
420     WebCore::TestObj * item = WebKit::core(self);
421     item->setAttrWithException(value);
422
423 }
424
425 glong
426 webkit_dom_test_obj_get_attr_with_setter_exception (WebKitDOMTestObj *self)
427 {
428     g_return_val_if_fail (self, 0);
429     WebCore::TestObj * item = WebKit::core(self);
430     glong res = item->attrWithSetterException();
431     return res;
432
433 }
434
435 void
436 webkit_dom_test_obj_set_attr_with_setter_exception (WebKitDOMTestObj *self, glong value)
437 {
438     g_return_if_fail (self);
439     WebCore::TestObj * item = WebKit::core(self);
440     item->setAttrWithSetterException(value);
441
442 }
443
444 glong
445 webkit_dom_test_obj_get_attr_with_getter_exception (WebKitDOMTestObj *self)
446 {
447     g_return_val_if_fail (self, 0);
448     WebCore::TestObj * item = WebKit::core(self);
449     glong res = item->attrWithGetterException();
450     return res;
451
452 }
453
454 void
455 webkit_dom_test_obj_set_attr_with_getter_exception (WebKitDOMTestObj *self, glong value)
456 {
457     g_return_if_fail (self);
458     WebCore::TestObj * item = WebKit::core(self);
459     item->setAttrWithGetterException(value);
460
461 }
462
463
464 G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_TYPE_DOM_OBJECT)
465
466 namespace WebKit {
467
468 WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
469 {
470     g_return_val_if_fail(coreObject != 0, 0);
471     
472     WebKitDOMTestObj* wrapper = WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_TYPE_DOM_TEST_OBJ, NULL));
473     g_return_val_if_fail(wrapper != 0, 0);
474
475     /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
476      * in a C-allocated GObject structure.  See the finalize() code for the
477      * matching deref().
478      */
479
480     coreObject->ref();
481     WEBKIT_DOM_OBJECT(wrapper)->coreObject = coreObject;
482
483     return wrapper;
484 }
485
486 WebCore::TestObj* core(WebKitDOMTestObj* request)
487 {
488     g_return_val_if_fail(request != 0, 0);
489     
490     WebCore::TestObj* coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject);
491     g_return_val_if_fail(coreObject != 0, 0);
492     
493     return coreObject;
494 }
495
496 } // namespace WebKit
497 enum {
498     PROP_0,
499     PROP_READ_ONLY_INT_ATTR,
500     PROP_READ_ONLY_STRING_ATTR,
501     PROP_READ_ONLY_TEST_OBJ_ATTR,
502     PROP_INT_ATTR,
503     PROP_LONG_LONG_ATTR,
504     PROP_UNSIGNED_LONG_LONG_ATTR,
505     PROP_STRING_ATTR,
506     PROP_TEST_OBJ_ATTR,
507     PROP_ATTR_WITH_EXCEPTION,
508     PROP_ATTR_WITH_SETTER_EXCEPTION,
509     PROP_ATTR_WITH_GETTER_EXCEPTION,
510     PROP_CUSTOM_ATTR,
511 };
512
513
514 static void webkit_dom_test_obj_finalize(GObject* object)
515 {
516     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
517     
518     if (dom_object->coreObject != NULL) {
519         WebCore::TestObj* coreObject = static_cast<WebCore::TestObj *>(dom_object->coreObject);
520
521         WebKit::DOMObjectCache::forget(coreObject);
522         coreObject->deref();
523
524         dom_object->coreObject = NULL;
525     }
526
527     G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
528 }
529
530 static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
531 {
532     WebKitDOMTestObj *self = WEBKIT_DOM_TEST_OBJ(object);
533     WebCore::TestObj* coreSelf = WebKit::core(self);
534
535     switch (prop_id) {
536     case PROP_INT_ATTR:
537     {
538          coreSelf->setIntAttr((g_value_get_long(value)) );
539          break;
540     }
541     case PROP_UNSIGNED_LONG_LONG_ATTR:
542     {
543          coreSelf->setUnsignedLongLongAttr((g_value_get_uint64(value)) );
544          break;
545     }
546     case PROP_STRING_ATTR:
547     {
548          coreSelf->setStringAttr(WebCore::String::fromUTF8(g_value_get_string(value)) );
549          break;
550     }
551     case PROP_ATTR_WITH_EXCEPTION:
552     {
553          coreSelf->setAttrWithException((g_value_get_long(value)) );
554          break;
555     }
556     case PROP_ATTR_WITH_SETTER_EXCEPTION:
557     {
558          coreSelf->setAttrWithSetterException((g_value_get_long(value)) );
559          break;
560     }
561     case PROP_ATTR_WITH_GETTER_EXCEPTION:
562     {
563          coreSelf->setAttrWithGetterException((g_value_get_long(value)) );
564          break;
565     }
566     case PROP_CUSTOM_ATTR:
567     {
568          coreSelf->setCustomAttr((g_value_get_long(value)) );
569          break;
570     }
571      default:
572         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
573         break;
574     }
575 }
576
577
578 static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
579 {
580     WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
581     WebCore::TestObj* coreSelf = WebKit::core(self);
582
583     switch (prop_id) {
584     case PROP_READ_ONLY_INT_ATTR:
585     {
586          g_value_set_long(value, coreSelf->readOnlyIntAttr());
587          break;
588     }
589     case PROP_READ_ONLY_STRING_ATTR:
590     {
591          g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
592          break;
593     }
594     case PROP_READ_ONLY_TEST_OBJ_ATTR:
595     {
596          RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
597         g_value_set_object(value, WebKit::kit(ptr.get()));
598          break;
599     }
600     case PROP_INT_ATTR:
601     {
602          g_value_set_long(value, coreSelf->intAttr());
603          break;
604     }
605     case PROP_LONG_LONG_ATTR:
606     {
607          g_value_set_int64(value, coreSelf->longLongAttr());
608          break;
609     }
610     case PROP_UNSIGNED_LONG_LONG_ATTR:
611     {
612          g_value_set_uint64(value, coreSelf->unsignedLongLongAttr());
613          break;
614     }
615     case PROP_STRING_ATTR:
616     {
617          g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
618          break;
619     }
620     case PROP_TEST_OBJ_ATTR:
621     {
622          RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
623         g_value_set_object(value, WebKit::kit(ptr.get()));
624          break;
625     }
626     case PROP_ATTR_WITH_EXCEPTION:
627     {
628          g_value_set_long(value, coreSelf->attrWithException());
629          break;
630     }
631     case PROP_ATTR_WITH_SETTER_EXCEPTION:
632     {
633          g_value_set_long(value, coreSelf->attrWithSetterException());
634          break;
635     }
636     case PROP_ATTR_WITH_GETTER_EXCEPTION:
637     {
638          g_value_set_long(value, coreSelf->attrWithGetterException());
639          break;
640     }
641     case PROP_CUSTOM_ATTR:
642     {
643          g_value_set_long(value, coreSelf->customAttr());
644          break;
645     }
646      default:
647         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
648         break;
649     }
650 }
651
652
653 static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
654 {
655     GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
656     gobjectClass->finalize = webkit_dom_test_obj_finalize;
657     gobjectClass->set_property = webkit_dom_test_obj_set_property;
658     gobjectClass->get_property = webkit_dom_test_obj_get_property;
659
660     g_object_class_install_property(gobjectClass,
661                                     PROP_READ_ONLY_INT_ATTR,
662                                     g_param_spec_long("read-only-int-attr", /* name */
663                                                            "test_obj_read-only-int-attr", /* short description */
664                                                            "read-only  glong TestObj.read-only-int-attr", /* longer - could do with some extra doc stuff here */
665                                                            G_MINLONG, /* min */
666 G_MAXLONG, /* max */
667 0, /* default */
668                                                            WEBKIT_PARAM_READABLE));
669      g_object_class_install_property(gobjectClass,
670                                     PROP_READ_ONLY_STRING_ATTR,
671                                     g_param_spec_string("read-only-string-attr", /* name */
672                                                            "test_obj_read-only-string-attr", /* short description */
673                                                            "read-only  gchar*  TestObj.read-only-string-attr", /* longer - could do with some extra doc stuff here */
674                                                            "", /* default */
675                                                            WEBKIT_PARAM_READABLE));
676      g_object_class_install_property(gobjectClass,
677                                     PROP_READ_ONLY_TEST_OBJ_ATTR,
678                                     g_param_spec_object("read-only-test-obj-attr", /* name */
679                                                            "test_obj_read-only-test-obj-attr", /* short description */
680                                                            "read-only  WebKitDOMTestObj*  TestObj.read-only-test-obj-attr", /* longer - could do with some extra doc stuff here */
681                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
682                                                            WEBKIT_PARAM_READABLE));
683      g_object_class_install_property(gobjectClass,
684                                     PROP_INT_ATTR,
685                                     g_param_spec_long("int-attr", /* name */
686                                                            "test_obj_int-attr", /* short description */
687                                                            "read-write  glong TestObj.int-attr", /* longer - could do with some extra doc stuff here */
688                                                            G_MINLONG, /* min */
689 G_MAXLONG, /* max */
690 0, /* default */
691                                                            WEBKIT_PARAM_READWRITE));
692      g_object_class_install_property(gobjectClass,
693                                     PROP_LONG_LONG_ATTR,
694                                     g_param_spec_int64("long-long-attr", /* name */
695                                                            "test_obj_long-long-attr", /* short description */
696                                                            "read-write  gint64 TestObj.long-long-attr", /* longer - could do with some extra doc stuff here */
697                                                            G_MININT64, /* min */
698 G_MAXINT64, /* max */
699 0, /* default */
700                                                            WEBKIT_PARAM_READWRITE));
701      g_object_class_install_property(gobjectClass,
702                                     PROP_UNSIGNED_LONG_LONG_ATTR,
703                                     g_param_spec_uint64("unsigned-long-long-attr", /* name */
704                                                            "test_obj_unsigned-long-long-attr", /* short description */
705                                                            "read-write  guint64 TestObj.unsigned-long-long-attr", /* longer - could do with some extra doc stuff here */
706                                                            0, /* min */
707 G_MAXUINT64, /* min */
708 0, /* default */
709                                                            WEBKIT_PARAM_READWRITE));
710      g_object_class_install_property(gobjectClass,
711                                     PROP_STRING_ATTR,
712                                     g_param_spec_string("string-attr", /* name */
713                                                            "test_obj_string-attr", /* short description */
714                                                            "read-write  gchar*  TestObj.string-attr", /* longer - could do with some extra doc stuff here */
715                                                            "", /* default */
716                                                            WEBKIT_PARAM_READWRITE));
717      g_object_class_install_property(gobjectClass,
718                                     PROP_TEST_OBJ_ATTR,
719                                     g_param_spec_object("test-obj-attr", /* name */
720                                                            "test_obj_test-obj-attr", /* short description */
721                                                            "read-write  WebKitDOMTestObj*  TestObj.test-obj-attr", /* longer - could do with some extra doc stuff here */
722                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
723                                                            WEBKIT_PARAM_READWRITE));
724      g_object_class_install_property(gobjectClass,
725                                     PROP_ATTR_WITH_EXCEPTION,
726                                     g_param_spec_long("attr-with-exception", /* name */
727                                                            "test_obj_attr-with-exception", /* short description */
728                                                            "read-write  glong TestObj.attr-with-exception", /* longer - could do with some extra doc stuff here */
729                                                            G_MINLONG, /* min */
730 G_MAXLONG, /* max */
731 0, /* default */
732                                                            WEBKIT_PARAM_READWRITE));
733      g_object_class_install_property(gobjectClass,
734                                     PROP_ATTR_WITH_SETTER_EXCEPTION,
735                                     g_param_spec_long("attr-with-setter-exception", /* name */
736                                                            "test_obj_attr-with-setter-exception", /* short description */
737                                                            "read-write  glong TestObj.attr-with-setter-exception", /* longer - could do with some extra doc stuff here */
738                                                            G_MINLONG, /* min */
739 G_MAXLONG, /* max */
740 0, /* default */
741                                                            WEBKIT_PARAM_READWRITE));
742      g_object_class_install_property(gobjectClass,
743                                     PROP_ATTR_WITH_GETTER_EXCEPTION,
744                                     g_param_spec_long("attr-with-getter-exception", /* name */
745                                                            "test_obj_attr-with-getter-exception", /* short description */
746                                                            "read-write  glong TestObj.attr-with-getter-exception", /* longer - could do with some extra doc stuff here */
747                                                            G_MINLONG, /* min */
748 G_MAXLONG, /* max */
749 0, /* default */
750                                                            WEBKIT_PARAM_READWRITE));
751      g_object_class_install_property(gobjectClass,
752                                     PROP_CUSTOM_ATTR,
753                                     g_param_spec_long("custom-attr", /* name */
754                                                            "test_obj_custom-attr", /* short description */
755                                                            "read-write  glong TestObj.custom-attr", /* longer - could do with some extra doc stuff here */
756                                                            G_MINLONG, /* min */
757 G_MAXLONG, /* max */
758 0, /* default */
759                                                            WEBKIT_PARAM_READWRITE));
760
761
762
763 }
764
765 static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
766 {
767 }
768