2010-04-27 Adam Barth <abarth@webkit.org>
[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 gchar* 
325 webkit_dom_test_obj_get_string_attr (WebKitDOMTestObj *self)
326 {
327     g_return_val_if_fail (self, 0);
328     WebCore::TestObj * item = WebKit::core(self);
329     gchar*  res = convertToUTF8String(item->stringAttr());
330     return res;
331
332 }
333
334 void
335 webkit_dom_test_obj_set_string_attr (WebKitDOMTestObj *self, gchar*  value)
336 {
337     g_return_if_fail (self);
338     WebCore::TestObj * item = WebKit::core(self);
339     g_return_if_fail (value);
340     WebCore::String _g_value = WebCore::String::fromUTF8(value);
341     item->setStringAttr(_g_value);
342
343 }
344
345 WebKitDOMTestObj* 
346 webkit_dom_test_obj_get_test_obj_attr (WebKitDOMTestObj *self)
347 {
348     g_return_val_if_fail (self, 0);
349     WebCore::TestObj * item = WebKit::core(self);
350     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->testObjAttr());
351     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
352     return res;
353
354 }
355
356 void
357 webkit_dom_test_obj_set_test_obj_attr (WebKitDOMTestObj *self, WebKitDOMTestObj*  value)
358 {
359     g_return_if_fail (self);
360     WebCore::TestObj * item = WebKit::core(self);
361     g_return_if_fail (value);
362     WebCore::TestObj * _g_value = WebKit::core(value);
363     g_return_if_fail (_g_value);
364     item->setTestObjAttr(_g_value);
365
366 }
367
368 glong
369 webkit_dom_test_obj_get_attr_with_exception (WebKitDOMTestObj *self)
370 {
371     g_return_val_if_fail (self, 0);
372     WebCore::TestObj * item = WebKit::core(self);
373     glong res = item->attrWithException();
374     return res;
375
376 }
377
378 void
379 webkit_dom_test_obj_set_attr_with_exception (WebKitDOMTestObj *self, glong value)
380 {
381     g_return_if_fail (self);
382     WebCore::TestObj * item = WebKit::core(self);
383     item->setAttrWithException(value);
384
385 }
386
387 glong
388 webkit_dom_test_obj_get_attr_with_setter_exception (WebKitDOMTestObj *self)
389 {
390     g_return_val_if_fail (self, 0);
391     WebCore::TestObj * item = WebKit::core(self);
392     glong res = item->attrWithSetterException();
393     return res;
394
395 }
396
397 void
398 webkit_dom_test_obj_set_attr_with_setter_exception (WebKitDOMTestObj *self, glong value)
399 {
400     g_return_if_fail (self);
401     WebCore::TestObj * item = WebKit::core(self);
402     item->setAttrWithSetterException(value);
403
404 }
405
406 glong
407 webkit_dom_test_obj_get_attr_with_getter_exception (WebKitDOMTestObj *self)
408 {
409     g_return_val_if_fail (self, 0);
410     WebCore::TestObj * item = WebKit::core(self);
411     glong res = item->attrWithGetterException();
412     return res;
413
414 }
415
416 void
417 webkit_dom_test_obj_set_attr_with_getter_exception (WebKitDOMTestObj *self, glong value)
418 {
419     g_return_if_fail (self);
420     WebCore::TestObj * item = WebKit::core(self);
421     item->setAttrWithGetterException(value);
422
423 }
424
425
426 G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_TYPE_DOM_OBJECT)
427
428 namespace WebKit {
429
430 WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
431 {
432     g_return_val_if_fail(coreObject != 0, 0);
433     
434     WebKitDOMTestObj* wrapper = WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_TYPE_DOM_TEST_OBJ, NULL));
435     g_return_val_if_fail(wrapper != 0, 0);
436
437     /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
438      * in a C-allocated GObject structure.  See the finalize() code for the
439      * matching deref().
440      */
441
442     coreObject->ref();
443     WEBKIT_DOM_OBJECT(wrapper)->coreObject = coreObject;
444
445     return wrapper;
446 }
447
448 WebCore::TestObj* core(WebKitDOMTestObj* request)
449 {
450     g_return_val_if_fail(request != 0, 0);
451     
452     WebCore::TestObj* coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject);
453     g_return_val_if_fail(coreObject != 0, 0);
454     
455     return coreObject;
456 }
457
458 } // namespace WebKit
459 enum {
460     PROP_0,
461     PROP_READ_ONLY_INT_ATTR,
462     PROP_READ_ONLY_STRING_ATTR,
463     PROP_READ_ONLY_TEST_OBJ_ATTR,
464     PROP_INT_ATTR,
465     PROP_STRING_ATTR,
466     PROP_TEST_OBJ_ATTR,
467     PROP_ATTR_WITH_EXCEPTION,
468     PROP_ATTR_WITH_SETTER_EXCEPTION,
469     PROP_ATTR_WITH_GETTER_EXCEPTION,
470     PROP_CUSTOM_ATTR,
471 };
472
473
474 static void webkit_dom_test_obj_finalize(GObject* object)
475 {
476     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
477     
478     if (dom_object->coreObject != NULL) {
479         WebCore::TestObj* coreObject = static_cast<WebCore::TestObj *>(dom_object->coreObject);
480
481         WebKit::DOMObjectCache::forget(coreObject);
482         coreObject->deref();
483
484         dom_object->coreObject = NULL;
485     }
486
487     G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
488 }
489
490 static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
491 {
492     WebKitDOMTestObj *self = WEBKIT_DOM_TEST_OBJ(object);
493     WebCore::TestObj* coreSelf = WebKit::core(self);
494
495     switch (prop_id) {
496     case PROP_INT_ATTR:
497     {
498          coreSelf->setIntAttr((g_value_get_long(value)) );
499          break;
500     }
501     case PROP_STRING_ATTR:
502     {
503          coreSelf->setStringAttr(WebCore::String::fromUTF8(g_value_get_string(value)) );
504          break;
505     }
506     case PROP_ATTR_WITH_EXCEPTION:
507     {
508          coreSelf->setAttrWithException((g_value_get_long(value)) );
509          break;
510     }
511     case PROP_ATTR_WITH_SETTER_EXCEPTION:
512     {
513          coreSelf->setAttrWithSetterException((g_value_get_long(value)) );
514          break;
515     }
516     case PROP_ATTR_WITH_GETTER_EXCEPTION:
517     {
518          coreSelf->setAttrWithGetterException((g_value_get_long(value)) );
519          break;
520     }
521     case PROP_CUSTOM_ATTR:
522     {
523          coreSelf->setCustomAttr((g_value_get_long(value)) );
524          break;
525     }
526      default:
527         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
528         break;
529     }
530 }
531
532
533 static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
534 {
535     WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
536     WebCore::TestObj* coreSelf = WebKit::core(self);
537
538     switch (prop_id) {
539     case PROP_READ_ONLY_INT_ATTR:
540     {
541          g_value_set_long(value, coreSelf->readOnlyIntAttr());
542          break;
543     }
544     case PROP_READ_ONLY_STRING_ATTR:
545     {
546          g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
547          break;
548     }
549     case PROP_READ_ONLY_TEST_OBJ_ATTR:
550     {
551          RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
552         g_value_set_object(value, WebKit::kit(ptr.get()));
553          break;
554     }
555     case PROP_INT_ATTR:
556     {
557          g_value_set_long(value, coreSelf->intAttr());
558          break;
559     }
560     case PROP_STRING_ATTR:
561     {
562          g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
563          break;
564     }
565     case PROP_TEST_OBJ_ATTR:
566     {
567          RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
568         g_value_set_object(value, WebKit::kit(ptr.get()));
569          break;
570     }
571     case PROP_ATTR_WITH_EXCEPTION:
572     {
573          g_value_set_long(value, coreSelf->attrWithException());
574          break;
575     }
576     case PROP_ATTR_WITH_SETTER_EXCEPTION:
577     {
578          g_value_set_long(value, coreSelf->attrWithSetterException());
579          break;
580     }
581     case PROP_ATTR_WITH_GETTER_EXCEPTION:
582     {
583          g_value_set_long(value, coreSelf->attrWithGetterException());
584          break;
585     }
586     case PROP_CUSTOM_ATTR:
587     {
588          g_value_set_long(value, coreSelf->customAttr());
589          break;
590     }
591      default:
592         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
593         break;
594     }
595 }
596
597
598 static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
599 {
600     GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
601     gobjectClass->finalize = webkit_dom_test_obj_finalize;
602     gobjectClass->set_property = webkit_dom_test_obj_set_property;
603     gobjectClass->get_property = webkit_dom_test_obj_get_property;
604
605     g_object_class_install_property(gobjectClass,
606                                     PROP_READ_ONLY_INT_ATTR,
607                                     g_param_spec_long("read-only-int-attr", /* name */
608                                                            "test_obj_read-only-int-attr", /* short description */
609                                                            "read-only  glong TestObj.read-only-int-attr", /* longer - could do with some extra doc stuff here */
610                                                            G_MINLONG, /* min */
611 G_MAXLONG, /* max */
612 0, /* default */
613                                                            WEBKIT_PARAM_READABLE));
614      g_object_class_install_property(gobjectClass,
615                                     PROP_READ_ONLY_STRING_ATTR,
616                                     g_param_spec_string("read-only-string-attr", /* name */
617                                                            "test_obj_read-only-string-attr", /* short description */
618                                                            "read-only  gchar*  TestObj.read-only-string-attr", /* longer - could do with some extra doc stuff here */
619                                                            "", /* default */
620                                                            WEBKIT_PARAM_READABLE));
621      g_object_class_install_property(gobjectClass,
622                                     PROP_READ_ONLY_TEST_OBJ_ATTR,
623                                     g_param_spec_object("read-only-test-obj-attr", /* name */
624                                                            "test_obj_read-only-test-obj-attr", /* short description */
625                                                            "read-only  WebKitDOMTestObj*  TestObj.read-only-test-obj-attr", /* longer - could do with some extra doc stuff here */
626                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
627                                                            WEBKIT_PARAM_READABLE));
628      g_object_class_install_property(gobjectClass,
629                                     PROP_INT_ATTR,
630                                     g_param_spec_long("int-attr", /* name */
631                                                            "test_obj_int-attr", /* short description */
632                                                            "read-write  glong TestObj.int-attr", /* longer - could do with some extra doc stuff here */
633                                                            G_MINLONG, /* min */
634 G_MAXLONG, /* max */
635 0, /* default */
636                                                            WEBKIT_PARAM_READWRITE));
637      g_object_class_install_property(gobjectClass,
638                                     PROP_STRING_ATTR,
639                                     g_param_spec_string("string-attr", /* name */
640                                                            "test_obj_string-attr", /* short description */
641                                                            "read-write  gchar*  TestObj.string-attr", /* longer - could do with some extra doc stuff here */
642                                                            "", /* default */
643                                                            WEBKIT_PARAM_READWRITE));
644      g_object_class_install_property(gobjectClass,
645                                     PROP_TEST_OBJ_ATTR,
646                                     g_param_spec_object("test-obj-attr", /* name */
647                                                            "test_obj_test-obj-attr", /* short description */
648                                                            "read-write  WebKitDOMTestObj*  TestObj.test-obj-attr", /* longer - could do with some extra doc stuff here */
649                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
650                                                            WEBKIT_PARAM_READWRITE));
651      g_object_class_install_property(gobjectClass,
652                                     PROP_ATTR_WITH_EXCEPTION,
653                                     g_param_spec_long("attr-with-exception", /* name */
654                                                            "test_obj_attr-with-exception", /* short description */
655                                                            "read-write  glong TestObj.attr-with-exception", /* longer - could do with some extra doc stuff here */
656                                                            G_MINLONG, /* min */
657 G_MAXLONG, /* max */
658 0, /* default */
659                                                            WEBKIT_PARAM_READWRITE));
660      g_object_class_install_property(gobjectClass,
661                                     PROP_ATTR_WITH_SETTER_EXCEPTION,
662                                     g_param_spec_long("attr-with-setter-exception", /* name */
663                                                            "test_obj_attr-with-setter-exception", /* short description */
664                                                            "read-write  glong TestObj.attr-with-setter-exception", /* longer - could do with some extra doc stuff here */
665                                                            G_MINLONG, /* min */
666 G_MAXLONG, /* max */
667 0, /* default */
668                                                            WEBKIT_PARAM_READWRITE));
669      g_object_class_install_property(gobjectClass,
670                                     PROP_ATTR_WITH_GETTER_EXCEPTION,
671                                     g_param_spec_long("attr-with-getter-exception", /* name */
672                                                            "test_obj_attr-with-getter-exception", /* short description */
673                                                            "read-write  glong TestObj.attr-with-getter-exception", /* longer - could do with some extra doc stuff here */
674                                                            G_MINLONG, /* min */
675 G_MAXLONG, /* max */
676 0, /* default */
677                                                            WEBKIT_PARAM_READWRITE));
678      g_object_class_install_property(gobjectClass,
679                                     PROP_CUSTOM_ATTR,
680                                     g_param_spec_long("custom-attr", /* name */
681                                                            "test_obj_custom-attr", /* short description */
682                                                            "read-write  glong TestObj.custom-attr", /* longer - could do with some extra doc stuff here */
683                                                            G_MINLONG, /* min */
684 G_MAXLONG, /* max */
685 0, /* default */
686                                                            WEBKIT_PARAM_READWRITE));
687
688
689
690 }
691
692 static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
693 {
694 }
695