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