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_method_with_optional_arg (WebKitDOMTestObj *self, glong opt)
217 {
218     g_return_if_fail (self);
219     WebCore::TestObj * item = WebKit::core(self);
220     item->methodWithOptionalArg(opt);
221
222 }
223
224 void
225 webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg (WebKitDOMTestObj *self, glong non_opt, glong opt)
226 {
227     g_return_if_fail (self);
228     WebCore::TestObj * item = WebKit::core(self);
229     item->methodWithNonOptionalArgAndOptionalArg(non_opt, opt);
230
231 }
232
233 void
234 webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args (WebKitDOMTestObj *self, glong non_opt, glong opt1, glong opt2)
235 {
236     g_return_if_fail (self);
237     WebCore::TestObj * item = WebKit::core(self);
238     item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
239
240 }
241
242 glong
243 webkit_dom_test_obj_get_read_only_int_attr (WebKitDOMTestObj *self)
244 {
245     g_return_val_if_fail (self, 0);
246     WebCore::TestObj * item = WebKit::core(self);
247     glong res = item->readOnlyIntAttr();
248     return res;
249
250 }
251
252 gchar* 
253 webkit_dom_test_obj_get_read_only_string_attr (WebKitDOMTestObj *self)
254 {
255     g_return_val_if_fail (self, 0);
256     WebCore::TestObj * item = WebKit::core(self);
257     gchar*  res = convertToUTF8String(item->readOnlyStringAttr());
258     return res;
259
260 }
261
262 WebKitDOMTestObj* 
263 webkit_dom_test_obj_get_read_only_test_obj_attr (WebKitDOMTestObj *self)
264 {
265     g_return_val_if_fail (self, 0);
266     WebCore::TestObj * item = WebKit::core(self);
267     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->readOnlyTestObjAttr());
268     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
269     return res;
270
271 }
272
273 glong
274 webkit_dom_test_obj_get_int_attr (WebKitDOMTestObj *self)
275 {
276     g_return_val_if_fail (self, 0);
277     WebCore::TestObj * item = WebKit::core(self);
278     glong res = item->intAttr();
279     return res;
280
281 }
282
283 void
284 webkit_dom_test_obj_set_int_attr (WebKitDOMTestObj *self, glong value)
285 {
286     g_return_if_fail (self);
287     WebCore::TestObj * item = WebKit::core(self);
288     item->setIntAttr(value);
289
290 }
291
292 gchar* 
293 webkit_dom_test_obj_get_string_attr (WebKitDOMTestObj *self)
294 {
295     g_return_val_if_fail (self, 0);
296     WebCore::TestObj * item = WebKit::core(self);
297     gchar*  res = convertToUTF8String(item->stringAttr());
298     return res;
299
300 }
301
302 void
303 webkit_dom_test_obj_set_string_attr (WebKitDOMTestObj *self, gchar*  value)
304 {
305     g_return_if_fail (self);
306     WebCore::TestObj * item = WebKit::core(self);
307     g_return_if_fail (value);
308     WebCore::String _g_value = WebCore::String::fromUTF8(value);
309     item->setStringAttr(_g_value);
310
311 }
312
313 WebKitDOMTestObj* 
314 webkit_dom_test_obj_get_test_obj_attr (WebKitDOMTestObj *self)
315 {
316     g_return_val_if_fail (self, 0);
317     WebCore::TestObj * item = WebKit::core(self);
318     PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->testObjAttr());
319     WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
320     return res;
321
322 }
323
324 void
325 webkit_dom_test_obj_set_test_obj_attr (WebKitDOMTestObj *self, WebKitDOMTestObj*  value)
326 {
327     g_return_if_fail (self);
328     WebCore::TestObj * item = WebKit::core(self);
329     g_return_if_fail (value);
330     WebCore::TestObj * _g_value = WebKit::core(value);
331     g_return_if_fail (_g_value);
332     item->setTestObjAttr(_g_value);
333
334 }
335
336 glong
337 webkit_dom_test_obj_get_attr_with_exception (WebKitDOMTestObj *self)
338 {
339     g_return_val_if_fail (self, 0);
340     WebCore::TestObj * item = WebKit::core(self);
341     glong res = item->attrWithException();
342     return res;
343
344 }
345
346 void
347 webkit_dom_test_obj_set_attr_with_exception (WebKitDOMTestObj *self, glong value)
348 {
349     g_return_if_fail (self);
350     WebCore::TestObj * item = WebKit::core(self);
351     item->setAttrWithException(value);
352
353 }
354
355 glong
356 webkit_dom_test_obj_get_attr_with_setter_exception (WebKitDOMTestObj *self)
357 {
358     g_return_val_if_fail (self, 0);
359     WebCore::TestObj * item = WebKit::core(self);
360     glong res = item->attrWithSetterException();
361     return res;
362
363 }
364
365 void
366 webkit_dom_test_obj_set_attr_with_setter_exception (WebKitDOMTestObj *self, glong value)
367 {
368     g_return_if_fail (self);
369     WebCore::TestObj * item = WebKit::core(self);
370     item->setAttrWithSetterException(value);
371
372 }
373
374 glong
375 webkit_dom_test_obj_get_attr_with_getter_exception (WebKitDOMTestObj *self)
376 {
377     g_return_val_if_fail (self, 0);
378     WebCore::TestObj * item = WebKit::core(self);
379     glong res = item->attrWithGetterException();
380     return res;
381
382 }
383
384 void
385 webkit_dom_test_obj_set_attr_with_getter_exception (WebKitDOMTestObj *self, glong value)
386 {
387     g_return_if_fail (self);
388     WebCore::TestObj * item = WebKit::core(self);
389     item->setAttrWithGetterException(value);
390
391 }
392
393
394 G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_TYPE_DOM_OBJECT)
395
396 namespace WebKit {
397
398 WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
399 {
400     g_return_val_if_fail(coreObject != 0, 0);
401     
402     WebKitDOMTestObj* wrapper = WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_TYPE_DOM_TEST_OBJ, NULL));
403     g_return_val_if_fail(wrapper != 0, 0);
404
405     /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
406      * in a C-allocated GObject structure.  See the finalize() code for the
407      * matching deref().
408      */
409
410     coreObject->ref();
411     WEBKIT_DOM_OBJECT(wrapper)->coreObject = coreObject;
412
413     return wrapper;
414 }
415
416 WebCore::TestObj* core(WebKitDOMTestObj* request)
417 {
418     g_return_val_if_fail(request != 0, 0);
419     
420     WebCore::TestObj* coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject);
421     g_return_val_if_fail(coreObject != 0, 0);
422     
423     return coreObject;
424 }
425
426 } // namespace WebKit
427 enum {
428     PROP_0,
429     PROP_READ_ONLY_INT_ATTR,
430     PROP_READ_ONLY_STRING_ATTR,
431     PROP_READ_ONLY_TEST_OBJ_ATTR,
432     PROP_INT_ATTR,
433     PROP_STRING_ATTR,
434     PROP_TEST_OBJ_ATTR,
435     PROP_ATTR_WITH_EXCEPTION,
436     PROP_ATTR_WITH_SETTER_EXCEPTION,
437     PROP_ATTR_WITH_GETTER_EXCEPTION,
438     PROP_CUSTOM_ATTR,
439 };
440
441
442 static void webkit_dom_test_obj_finalize(GObject* object)
443 {
444     WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
445     
446     if (dom_object->coreObject != NULL) {
447         WebCore::TestObj* coreObject = static_cast<WebCore::TestObj *>(dom_object->coreObject);
448
449         WebKit::DOMObjectCache::forget(coreObject);
450         coreObject->deref();
451
452         dom_object->coreObject = NULL;
453     }
454
455     G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
456 }
457
458 static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
459 {
460     WebKitDOMTestObj *self = WEBKIT_DOM_TEST_OBJ(object);
461     WebCore::TestObj* coreSelf = WebKit::core(self);
462
463     switch (prop_id) {
464     case PROP_INT_ATTR:
465     {
466          coreSelf->setIntAttr((g_value_get_long(value)) );
467          break;
468     }
469     case PROP_STRING_ATTR:
470     {
471          coreSelf->setStringAttr(WebCore::String::fromUTF8(g_value_get_string(value)) );
472          break;
473     }
474     case PROP_ATTR_WITH_EXCEPTION:
475     {
476          coreSelf->setAttrWithException((g_value_get_long(value)) );
477          break;
478     }
479     case PROP_ATTR_WITH_SETTER_EXCEPTION:
480     {
481          coreSelf->setAttrWithSetterException((g_value_get_long(value)) );
482          break;
483     }
484     case PROP_ATTR_WITH_GETTER_EXCEPTION:
485     {
486          coreSelf->setAttrWithGetterException((g_value_get_long(value)) );
487          break;
488     }
489     case PROP_CUSTOM_ATTR:
490     {
491          coreSelf->setCustomAttr((g_value_get_long(value)) );
492          break;
493     }
494      default:
495         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
496         break;
497     }
498 }
499
500
501 static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
502 {
503     WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
504     WebCore::TestObj* coreSelf = WebKit::core(self);
505
506     switch (prop_id) {
507     case PROP_READ_ONLY_INT_ATTR:
508     {
509          g_value_set_long(value, coreSelf->readOnlyIntAttr());
510          break;
511     }
512     case PROP_READ_ONLY_STRING_ATTR:
513     {
514          g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
515          break;
516     }
517     case PROP_READ_ONLY_TEST_OBJ_ATTR:
518     {
519          RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
520         g_value_set_object(value, WebKit::kit(ptr.get()));
521          break;
522     }
523     case PROP_INT_ATTR:
524     {
525          g_value_set_long(value, coreSelf->intAttr());
526          break;
527     }
528     case PROP_STRING_ATTR:
529     {
530          g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
531          break;
532     }
533     case PROP_TEST_OBJ_ATTR:
534     {
535          RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
536         g_value_set_object(value, WebKit::kit(ptr.get()));
537          break;
538     }
539     case PROP_ATTR_WITH_EXCEPTION:
540     {
541          g_value_set_long(value, coreSelf->attrWithException());
542          break;
543     }
544     case PROP_ATTR_WITH_SETTER_EXCEPTION:
545     {
546          g_value_set_long(value, coreSelf->attrWithSetterException());
547          break;
548     }
549     case PROP_ATTR_WITH_GETTER_EXCEPTION:
550     {
551          g_value_set_long(value, coreSelf->attrWithGetterException());
552          break;
553     }
554     case PROP_CUSTOM_ATTR:
555     {
556          g_value_set_long(value, coreSelf->customAttr());
557          break;
558     }
559      default:
560         G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
561         break;
562     }
563 }
564
565
566 static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
567 {
568     GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
569     gobjectClass->finalize = webkit_dom_test_obj_finalize;
570     gobjectClass->set_property = webkit_dom_test_obj_set_property;
571     gobjectClass->get_property = webkit_dom_test_obj_get_property;
572
573     g_object_class_install_property(gobjectClass,
574                                     PROP_READ_ONLY_INT_ATTR,
575                                     g_param_spec_long("read-only-int-attr", /* name */
576                                                            "test_obj_read-only-int-attr", /* short description */
577                                                            "read-only  glong TestObj.read-only-int-attr", /* longer - could do with some extra doc stuff here */
578                                                            G_MINLONG, /* min */
579 G_MAXLONG, /* max */
580 0, /* default */
581                                                            WEBKIT_PARAM_READABLE));
582      g_object_class_install_property(gobjectClass,
583                                     PROP_READ_ONLY_STRING_ATTR,
584                                     g_param_spec_string("read-only-string-attr", /* name */
585                                                            "test_obj_read-only-string-attr", /* short description */
586                                                            "read-only  gchar*  TestObj.read-only-string-attr", /* longer - could do with some extra doc stuff here */
587                                                            "", /* default */
588                                                            WEBKIT_PARAM_READABLE));
589      g_object_class_install_property(gobjectClass,
590                                     PROP_READ_ONLY_TEST_OBJ_ATTR,
591                                     g_param_spec_object("read-only-test-obj-attr", /* name */
592                                                            "test_obj_read-only-test-obj-attr", /* short description */
593                                                            "read-only  WebKitDOMTestObj*  TestObj.read-only-test-obj-attr", /* longer - could do with some extra doc stuff here */
594                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
595                                                            WEBKIT_PARAM_READABLE));
596      g_object_class_install_property(gobjectClass,
597                                     PROP_INT_ATTR,
598                                     g_param_spec_long("int-attr", /* name */
599                                                            "test_obj_int-attr", /* short description */
600                                                            "read-write  glong TestObj.int-attr", /* longer - could do with some extra doc stuff here */
601                                                            G_MINLONG, /* min */
602 G_MAXLONG, /* max */
603 0, /* default */
604                                                            WEBKIT_PARAM_READWRITE));
605      g_object_class_install_property(gobjectClass,
606                                     PROP_STRING_ATTR,
607                                     g_param_spec_string("string-attr", /* name */
608                                                            "test_obj_string-attr", /* short description */
609                                                            "read-write  gchar*  TestObj.string-attr", /* longer - could do with some extra doc stuff here */
610                                                            "", /* default */
611                                                            WEBKIT_PARAM_READWRITE));
612      g_object_class_install_property(gobjectClass,
613                                     PROP_TEST_OBJ_ATTR,
614                                     g_param_spec_object("test-obj-attr", /* name */
615                                                            "test_obj_test-obj-attr", /* short description */
616                                                            "read-write  WebKitDOMTestObj*  TestObj.test-obj-attr", /* longer - could do with some extra doc stuff here */
617                                                            WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
618                                                            WEBKIT_PARAM_READWRITE));
619      g_object_class_install_property(gobjectClass,
620                                     PROP_ATTR_WITH_EXCEPTION,
621                                     g_param_spec_long("attr-with-exception", /* name */
622                                                            "test_obj_attr-with-exception", /* short description */
623                                                            "read-write  glong TestObj.attr-with-exception", /* longer - could do with some extra doc stuff here */
624                                                            G_MINLONG, /* min */
625 G_MAXLONG, /* max */
626 0, /* default */
627                                                            WEBKIT_PARAM_READWRITE));
628      g_object_class_install_property(gobjectClass,
629                                     PROP_ATTR_WITH_SETTER_EXCEPTION,
630                                     g_param_spec_long("attr-with-setter-exception", /* name */
631                                                            "test_obj_attr-with-setter-exception", /* short description */
632                                                            "read-write  glong TestObj.attr-with-setter-exception", /* 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_ATTR_WITH_GETTER_EXCEPTION,
639                                     g_param_spec_long("attr-with-getter-exception", /* name */
640                                                            "test_obj_attr-with-getter-exception", /* short description */
641                                                            "read-write  glong TestObj.attr-with-getter-exception", /* longer - could do with some extra doc stuff here */
642                                                            G_MINLONG, /* min */
643 G_MAXLONG, /* max */
644 0, /* default */
645                                                            WEBKIT_PARAM_READWRITE));
646      g_object_class_install_property(gobjectClass,
647                                     PROP_CUSTOM_ATTR,
648                                     g_param_spec_long("custom-attr", /* name */
649                                                            "test_obj_custom-attr", /* short description */
650                                                            "read-write  glong TestObj.custom-attr", /* longer - could do with some extra doc stuff here */
651                                                            G_MINLONG, /* min */
652 G_MAXLONG, /* max */
653 0, /* default */
654                                                            WEBKIT_PARAM_READWRITE));
655
656
657
658 }
659
660 static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
661 {
662 }
663