Changeset 60558 in webkit


Ignore:
Timestamp:
Jun 2, 2010 4:14:37 AM (14 years ago)
Author:
xan@webkit.org
Message:

2010-06-02 Xan Lopez <xlopez@igalia.com>

Reviewed by Gustavo Noronha.

[GTK] Style fixes for the generated code in DOM bindings
https://bugs.webkit.org/show_bug.cgi?id=39949

Get rid of extra spaces and wrong indentation in the generated
code.

  • bindings/scripts/CodeGeneratorGObject.pm:
  • bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp: (webkit_dom_test_callback_callback_with_class1param): (webkit_dom_test_callback_callback_with_class2param): (webkit_dom_test_callback_callback_with_non_bool_return_type): (webkit_dom_test_callback_set_property): (webkit_dom_test_callback_get_property):
  • bindings/scripts/test/GObject/WebKitDOMTestCallback.h:
  • bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp: (webkit_dom_test_interface_set_property): (webkit_dom_test_interface_get_property):
  • bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: (webkit_dom_test_obj_void_method): (webkit_dom_test_obj_void_method_with_args): (webkit_dom_test_obj_int_method): (webkit_dom_test_obj_int_method_with_args): (webkit_dom_test_obj_obj_method): (webkit_dom_test_obj_obj_method_with_args): (webkit_dom_test_obj_method_that_requires_all_args): (webkit_dom_test_obj_method_that_requires_all_args_and_throws): (webkit_dom_test_obj_serialized_value): (webkit_dom_test_obj_method_with_exception): (webkit_dom_test_obj_with_dynamic_frame): (webkit_dom_test_obj_with_dynamic_frame_and_arg): (webkit_dom_test_obj_with_dynamic_frame_and_optional_arg): (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture): (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad): (webkit_dom_test_obj_with_script_state_void): (webkit_dom_test_obj_with_script_state_obj): (webkit_dom_test_obj_with_script_state_void_exception): (webkit_dom_test_obj_with_script_state_obj_exception): (webkit_dom_test_obj_method_with_optional_arg): (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg): (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args): (webkit_dom_test_obj_get_read_only_int_attr): (webkit_dom_test_obj_get_read_only_string_attr): (webkit_dom_test_obj_get_read_only_test_obj_attr): (webkit_dom_test_obj_get_int_attr): (webkit_dom_test_obj_set_int_attr): (webkit_dom_test_obj_get_long_long_attr): (webkit_dom_test_obj_set_long_long_attr): (webkit_dom_test_obj_get_unsigned_long_long_attr): (webkit_dom_test_obj_set_unsigned_long_long_attr): (webkit_dom_test_obj_get_string_attr): (webkit_dom_test_obj_set_string_attr): (webkit_dom_test_obj_get_test_obj_attr): (webkit_dom_test_obj_set_test_obj_attr): (webkit_dom_test_obj_get_attr_with_exception): (webkit_dom_test_obj_set_attr_with_exception): (webkit_dom_test_obj_get_attr_with_setter_exception): (webkit_dom_test_obj_set_attr_with_setter_exception): (webkit_dom_test_obj_get_attr_with_getter_exception): (webkit_dom_test_obj_set_attr_with_getter_exception): (webkit_dom_test_obj_get_script_string_attr): (webkit_dom_test_obj_set_property): (webkit_dom_test_obj_get_property): (webkit_dom_test_obj_class_init):
  • bindings/scripts/test/GObject/WebKitDOMTestObj.h:
Location:
trunk/WebCore
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r60555 r60558  
     12010-06-02  Xan Lopez  <xlopez@igalia.com>
     2
     3        Reviewed by Gustavo Noronha.
     4
     5        [GTK] Style fixes for the generated code in DOM bindings
     6        https://bugs.webkit.org/show_bug.cgi?id=39949
     7
     8        Get rid of extra spaces and wrong indentation in the generated
     9        code.
     10
     11        * bindings/scripts/CodeGeneratorGObject.pm:
     12        * bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp:
     13        (webkit_dom_test_callback_callback_with_class1param):
     14        (webkit_dom_test_callback_callback_with_class2param):
     15        (webkit_dom_test_callback_callback_with_non_bool_return_type):
     16        (webkit_dom_test_callback_set_property):
     17        (webkit_dom_test_callback_get_property):
     18        * bindings/scripts/test/GObject/WebKitDOMTestCallback.h:
     19        * bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp:
     20        (webkit_dom_test_interface_set_property):
     21        (webkit_dom_test_interface_get_property):
     22        * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
     23        (webkit_dom_test_obj_void_method):
     24        (webkit_dom_test_obj_void_method_with_args):
     25        (webkit_dom_test_obj_int_method):
     26        (webkit_dom_test_obj_int_method_with_args):
     27        (webkit_dom_test_obj_obj_method):
     28        (webkit_dom_test_obj_obj_method_with_args):
     29        (webkit_dom_test_obj_method_that_requires_all_args):
     30        (webkit_dom_test_obj_method_that_requires_all_args_and_throws):
     31        (webkit_dom_test_obj_serialized_value):
     32        (webkit_dom_test_obj_method_with_exception):
     33        (webkit_dom_test_obj_with_dynamic_frame):
     34        (webkit_dom_test_obj_with_dynamic_frame_and_arg):
     35        (webkit_dom_test_obj_with_dynamic_frame_and_optional_arg):
     36        (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture):
     37        (webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad):
     38        (webkit_dom_test_obj_with_script_state_void):
     39        (webkit_dom_test_obj_with_script_state_obj):
     40        (webkit_dom_test_obj_with_script_state_void_exception):
     41        (webkit_dom_test_obj_with_script_state_obj_exception):
     42        (webkit_dom_test_obj_method_with_optional_arg):
     43        (webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg):
     44        (webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args):
     45        (webkit_dom_test_obj_get_read_only_int_attr):
     46        (webkit_dom_test_obj_get_read_only_string_attr):
     47        (webkit_dom_test_obj_get_read_only_test_obj_attr):
     48        (webkit_dom_test_obj_get_int_attr):
     49        (webkit_dom_test_obj_set_int_attr):
     50        (webkit_dom_test_obj_get_long_long_attr):
     51        (webkit_dom_test_obj_set_long_long_attr):
     52        (webkit_dom_test_obj_get_unsigned_long_long_attr):
     53        (webkit_dom_test_obj_set_unsigned_long_long_attr):
     54        (webkit_dom_test_obj_get_string_attr):
     55        (webkit_dom_test_obj_set_string_attr):
     56        (webkit_dom_test_obj_get_test_obj_attr):
     57        (webkit_dom_test_obj_set_test_obj_attr):
     58        (webkit_dom_test_obj_get_attr_with_exception):
     59        (webkit_dom_test_obj_set_attr_with_exception):
     60        (webkit_dom_test_obj_get_attr_with_setter_exception):
     61        (webkit_dom_test_obj_set_attr_with_setter_exception):
     62        (webkit_dom_test_obj_get_attr_with_getter_exception):
     63        (webkit_dom_test_obj_set_attr_with_getter_exception):
     64        (webkit_dom_test_obj_get_script_string_attr):
     65        (webkit_dom_test_obj_set_property):
     66        (webkit_dom_test_obj_get_property):
     67        (webkit_dom_test_obj_class_init):
     68        * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
     69
    1702010-06-02  Andrey Kosyakov  <caseq@chromium.org>
    271
  • trunk/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r60229 r60558  
    363363
    364364    if (grep {$_ eq $attribute} @writeableProperties) {
    365         push(@txtSetProps, "   case ${propEnum}:\n    {\n");
     365        push(@txtSetProps, "    case ${propEnum}:\n    {\n");
    366366        push(@txtSetProps, "        WebCore::ExceptionCode ec = 0;\n") if @{$attribute->setterExceptions};
    367367        push(@txtSetProps, "        ${setterContentHead}");
     
    371371    }
    372372
    373     push(@txtGetProps, "   case ${propEnum}:\n    {\n");
     373    push(@txtGetProps, "    case ${propEnum}:\n    {\n");
    374374
    375375    my $exception = "";
     
    549549    if (scalar @writeableProperties > 0) {
    550550        $txtSetProps = << "EOF";
    551     ${className} *self = WEBKIT_DOM_${clsCaps}(object);
     551    ${className}* self = WEBKIT_DOM_${clsCaps}(object);
    552552    $privFunction
    553553EOF
     
    587587EOF
    588588    push(@txtSetProps, $txtSetProps);
     589
     590    # Do not insert extra spaces when interpolating array variables
     591    $" = "";
    589592
    590593    $implContent = << "EOF";
     
    748751    my $returnValueIsGDOMType = IsGDOMClassType($functionSigType);
    749752
    750     my $functionSig = "$className *self";
     753    my $functionSig = "${className}* self";
    751754
    752755    my $callImplParams = "";
     
    800803    }
    801804
    802     push(@hBody, "WEBKIT_API $returnType\n$functionName ($functionSig);\n\n");
    803     push(@cBody, "$returnType\n$functionName ($functionSig)\n{\n");
     805    push(@hBody, "WEBKIT_API $returnType\n$functionName($functionSig);\n\n");
     806    push(@cBody, "$returnType\n$functionName($functionSig)\n{\n");
    804807
    805808    if ($conditionalMethods{$functionName}) {
     
    970973    }
    971974
    972     push(@cBody, "\n}\n\n");
     975    push(@cBody, "}\n\n");
    973976}
    974977
  • trunk/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp

    r60225 r60558  
    5454
    5555gboolean
    56 webkit_dom_test_callback_callback_with_class1param (WebKitDOMTestCallback *self, WebKitDOMClass1*  class1param)
     56webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1*  class1param)
    5757{
    5858    g_return_val_if_fail (self, 0);
     
    6363    gboolean res = item->callbackWithClass1Param(_g_class1param);
    6464    return res;
    65 
    6665}
    6766
    6867gboolean
    69 webkit_dom_test_callback_callback_with_class2param (WebKitDOMTestCallback *self, WebKitDOMClass2*  class2param, gchar*  str_arg)
     68webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2*  class2param, gchar*  str_arg)
    7069{
    7170    g_return_val_if_fail (self, 0);
     
    7877    gboolean res = item->callbackWithClass2Param(_g_class2param, _g_str_arg);
    7978    return res;
    80 
    8179}
    8280
    8381glong
    84 webkit_dom_test_callback_callback_with_non_bool_return_type (WebKitDOMTestCallback *self, WebKitDOMClass3*  class3param)
     82webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallback* self, WebKitDOMClass3*  class3param)
    8583{
    8684    g_return_val_if_fail (self, 0);
     
    9189    glong res = item->callbackWithNonBoolReturnType(_g_class3param);
    9290    return res;
    93 
    9491}
    9592
     
    133130static void webkit_dom_test_callback_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
    134131{
    135      switch (prop_id) {
    136      default:
     132    switch (prop_id) {
     133    default:
    137134        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
    138135        break;
     
    143140static void webkit_dom_test_callback_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
    144141{
    145      switch (prop_id) {
    146      default:
     142    switch (prop_id) {
     143    default:
    147144        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
    148145        break;
  • trunk/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.h

    r58808 r60558  
    4848
    4949WEBKIT_API gboolean
    50 webkit_dom_test_callback_callback_with_class1param (WebKitDOMTestCallback *self, WebKitDOMClass1*  class1param);
     50webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1*  class1param);
    5151
    5252WEBKIT_API gboolean
    53 webkit_dom_test_callback_callback_with_class2param (WebKitDOMTestCallback *self, WebKitDOMClass2*  class2param, gchar*  str_arg);
     53webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2*  class2param, gchar*  str_arg);
    5454
    5555WEBKIT_API glong
    56 webkit_dom_test_callback_callback_with_non_bool_return_type (WebKitDOMTestCallback *self, WebKitDOMClass3*  class3param);
     56webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallback* self, WebKitDOMClass3*  class3param);
    5757
    5858G_END_DECLS
  • trunk/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp

    r60225 r60558  
    8686static void webkit_dom_test_interface_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
    8787{
    88      switch (prop_id) {
    89      default:
     88    switch (prop_id) {
     89    default:
    9090        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
    9191        break;
     
    9696static void webkit_dom_test_interface_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
    9797{
    98      switch (prop_id) {
    99      default:
     98    switch (prop_id) {
     99    default:
    100100        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
    101101        break;
  • trunk/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp

    r60225 r60558  
    5050
    5151void
    52 webkit_dom_test_obj_void_method (WebKitDOMTestObj *self)
     52webkit_dom_test_obj_void_method(WebKitDOMTestObj* self)
    5353{
    5454    g_return_if_fail (self);
    5555    WebCore::TestObj * item = WebKit::core(self);
    5656    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)
     57}
     58
     59void
     60webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
    6261{
    6362    g_return_if_fail (self);
     
    6968    g_return_if_fail (_g_obj_arg);
    7069    item->voidMethodWithArgs(int_arg, _g_str_arg, _g_obj_arg);
    71 
    7270}
    7371
    7472glong
    75 webkit_dom_test_obj_int_method (WebKitDOMTestObj *self)
     73webkit_dom_test_obj_int_method(WebKitDOMTestObj* self)
    7674{
    7775    g_return_val_if_fail (self, 0);
     
    7977    glong res = item->intMethod();
    8078    return res;
    81 
    8279}
    8380
    8481glong
    85 webkit_dom_test_obj_int_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
     82webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
    8683{
    8784    g_return_val_if_fail (self, 0);
     
    9491    glong res = item->intMethodWithArgs(int_arg, _g_str_arg, _g_obj_arg);
    9592    return res;
    96 
    9793}
    9894
    9995WebKitDOMTestObj*
    100 webkit_dom_test_obj_obj_method (WebKitDOMTestObj *self)
     96webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self)
    10197{
    10298    g_return_val_if_fail (self, 0);
     
    105101    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    106102    return res;
    107 
    108103}
    109104
    110105WebKitDOMTestObj*
    111 webkit_dom_test_obj_obj_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
     106webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
    112107{
    113108    g_return_val_if_fail (self, 0);
     
    121116    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    122117    return res;
    123 
    124118}
    125119
    126120WebKitDOMTestObj*
    127 webkit_dom_test_obj_method_that_requires_all_args (WebKitDOMTestObj *self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
     121webkit_dom_test_obj_method_that_requires_all_args(WebKitDOMTestObj* self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg)
    128122{
    129123    g_return_val_if_fail (self, 0);
     
    137131    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    138132    return res;
    139 
    140133}
    141134
    142135WebKitDOMTestObj*
    143 webkit_dom_test_obj_method_that_requires_all_args_and_throws (WebKitDOMTestObj *self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg, GError **error)
     136webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg, GError **error)
    144137{
    145138    g_return_val_if_fail (self, 0);
     
    159152    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    160153    return res;
    161 
    162 }
    163 
    164 void
    165 webkit_dom_test_obj_serialized_value (WebKitDOMTestObj *self, WebKitDOMSerializedScriptValue*  serialized_arg)
     154}
     155
     156void
     157webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue*  serialized_arg)
    166158{
    167159    g_return_if_fail (self);
     
    171163    g_return_if_fail (_g_serialized_arg);
    172164    item->serializedValue(_g_serialized_arg);
    173 
    174 }
    175 
    176 void
    177 webkit_dom_test_obj_method_with_exception (WebKitDOMTestObj *self, GError **error)
     165}
     166
     167void
     168webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError **error)
    178169{
    179170    g_return_if_fail (self);
     
    186177        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
    187178    }
    188 
    189179}
    190180
     
    196186
    197187void
    198 webkit_dom_test_obj_with_dynamic_frame (WebKitDOMTestObj *self)
     188webkit_dom_test_obj_with_dynamic_frame(WebKitDOMTestObj* self)
    199189{
    200190    g_return_if_fail (self);
    201191    WebCore::TestObj * item = WebKit::core(self);
    202192    item->withDynamicFrame();
    203 
    204 }
    205 
    206 void
    207 webkit_dom_test_obj_with_dynamic_frame_and_arg (WebKitDOMTestObj *self, glong int_arg)
     193}
     194
     195void
     196webkit_dom_test_obj_with_dynamic_frame_and_arg(WebKitDOMTestObj* self, glong int_arg)
    208197{
    209198    g_return_if_fail (self);
    210199    WebCore::TestObj * item = WebKit::core(self);
    211200    item->withDynamicFrameAndArg(int_arg);
    212 
    213 }
    214 
    215 void
    216 webkit_dom_test_obj_with_dynamic_frame_and_optional_arg (WebKitDOMTestObj *self, glong int_arg, glong optional_arg)
     201}
     202
     203void
     204webkit_dom_test_obj_with_dynamic_frame_and_optional_arg(WebKitDOMTestObj* self, glong int_arg, glong optional_arg)
    217205{
    218206    g_return_if_fail (self);
    219207    WebCore::TestObj * item = WebKit::core(self);
    220208    item->withDynamicFrameAndOptionalArg(int_arg, optional_arg);
    221 
    222 }
    223 
    224 void
    225 webkit_dom_test_obj_with_dynamic_frame_and_user_gesture (WebKitDOMTestObj *self, glong int_arg)
     209}
     210
     211void
     212webkit_dom_test_obj_with_dynamic_frame_and_user_gesture(WebKitDOMTestObj* self, glong int_arg)
    226213{
    227214    g_return_if_fail (self);
    228215    WebCore::TestObj * item = WebKit::core(self);
    229216    item->withDynamicFrameAndUserGesture(int_arg);
    230 
    231 }
    232 
    233 void
    234 webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad (WebKitDOMTestObj *self, glong int_arg, glong optional_arg)
     217}
     218
     219void
     220webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad(WebKitDOMTestObj* self, glong int_arg, glong optional_arg)
    235221{
    236222    g_return_if_fail (self);
    237223    WebCore::TestObj * item = WebKit::core(self);
    238224    item->withDynamicFrameAndUserGestureASAD(int_arg, optional_arg);
    239 
    240 }
    241 
    242 void
    243 webkit_dom_test_obj_with_script_state_void (WebKitDOMTestObj *self)
     225}
     226
     227void
     228webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self)
    244229{
    245230    g_return_if_fail (self);
    246231    WebCore::TestObj * item = WebKit::core(self);
    247232    item->withScriptStateVoid();
    248 
    249233}
    250234
    251235WebKitDOMTestObj*
    252 webkit_dom_test_obj_with_script_state_obj (WebKitDOMTestObj *self)
     236webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self)
    253237{
    254238    g_return_val_if_fail (self, 0);
     
    257241    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    258242    return res;
    259 
    260 }
    261 
    262 void
    263 webkit_dom_test_obj_with_script_state_void_exception (WebKitDOMTestObj *self, GError **error)
     243}
     244
     245void
     246webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError **error)
    264247{
    265248    g_return_if_fail (self);
     
    272255        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
    273256    }
    274 
    275257}
    276258
    277259WebKitDOMTestObj*
    278 webkit_dom_test_obj_with_script_state_obj_exception (WebKitDOMTestObj *self, GError **error)
     260webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError **error)
    279261{
    280262    g_return_val_if_fail (self, 0);
     
    289271    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    290272    return res;
    291 
    292 }
    293 
    294 void
    295 webkit_dom_test_obj_method_with_optional_arg (WebKitDOMTestObj *self, glong opt)
     273}
     274
     275void
     276webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt)
    296277{
    297278    g_return_if_fail (self);
    298279    WebCore::TestObj * item = WebKit::core(self);
    299280    item->methodWithOptionalArg(opt);
    300 
    301 }
    302 
    303 void
    304 webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg (WebKitDOMTestObj *self, glong non_opt, glong opt)
     281}
     282
     283void
     284webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong non_opt, glong opt)
    305285{
    306286    g_return_if_fail (self);
    307287    WebCore::TestObj * item = WebKit::core(self);
    308288    item->methodWithNonOptionalArgAndOptionalArg(non_opt, opt);
    309 
    310 }
    311 
    312 void
    313 webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args (WebKitDOMTestObj *self, glong non_opt, glong opt1, glong opt2)
     289}
     290
     291void
     292webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong non_opt, glong opt1, glong opt2)
    314293{
    315294    g_return_if_fail (self);
    316295    WebCore::TestObj * item = WebKit::core(self);
    317296    item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
    318 
    319297}
    320298
    321299glong
    322 webkit_dom_test_obj_get_read_only_int_attr (WebKitDOMTestObj *self)
     300webkit_dom_test_obj_get_read_only_int_attr(WebKitDOMTestObj* self)
    323301{
    324302    g_return_val_if_fail (self, 0);
     
    326304    glong res = item->readOnlyIntAttr();
    327305    return res;
    328 
    329306}
    330307
    331308gchar*
    332 webkit_dom_test_obj_get_read_only_string_attr (WebKitDOMTestObj *self)
     309webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self)
    333310{
    334311    g_return_val_if_fail (self, 0);
     
    336313    gchar*  res = convertToUTF8String(item->readOnlyStringAttr());
    337314    return res;
    338 
    339315}
    340316
    341317WebKitDOMTestObj*
    342 webkit_dom_test_obj_get_read_only_test_obj_attr (WebKitDOMTestObj *self)
     318webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self)
    343319{
    344320    g_return_val_if_fail (self, 0);
     
    347323    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    348324    return res;
    349 
    350325}
    351326
    352327glong
    353 webkit_dom_test_obj_get_int_attr (WebKitDOMTestObj *self)
     328webkit_dom_test_obj_get_int_attr(WebKitDOMTestObj* self)
    354329{
    355330    g_return_val_if_fail (self, 0);
     
    357332    glong res = item->intAttr();
    358333    return res;
    359 
    360 }
    361 
    362 void
    363 webkit_dom_test_obj_set_int_attr (WebKitDOMTestObj *self, glong value)
     334}
     335
     336void
     337webkit_dom_test_obj_set_int_attr(WebKitDOMTestObj* self, glong value)
    364338{
    365339    g_return_if_fail (self);
    366340    WebCore::TestObj * item = WebKit::core(self);
    367341    item->setIntAttr(value);
    368 
    369342}
    370343
    371344gint64
    372 webkit_dom_test_obj_get_long_long_attr (WebKitDOMTestObj *self)
     345webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self)
    373346{
    374347    g_return_val_if_fail (self, 0);
     
    376349    gint64 res = item->longLongAttr();
    377350    return res;
    378 
    379 }
    380 
    381 void
    382 webkit_dom_test_obj_set_long_long_attr (WebKitDOMTestObj *self, gint64 value)
     351}
     352
     353void
     354webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value)
    383355{
    384356    g_return_if_fail (self);
    385357    WebCore::TestObj * item = WebKit::core(self);
    386358    item->setLongLongAttr(value);
    387 
    388359}
    389360
    390361guint64
    391 webkit_dom_test_obj_get_unsigned_long_long_attr (WebKitDOMTestObj *self)
     362webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self)
    392363{
    393364    g_return_val_if_fail (self, 0);
     
    395366    guint64 res = item->unsignedLongLongAttr();
    396367    return res;
    397 
    398 }
    399 
    400 void
    401 webkit_dom_test_obj_set_unsigned_long_long_attr (WebKitDOMTestObj *self, guint64 value)
     368}
     369
     370void
     371webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value)
    402372{
    403373    g_return_if_fail (self);
    404374    WebCore::TestObj * item = WebKit::core(self);
    405375    item->setUnsignedLongLongAttr(value);
    406 
    407376}
    408377
    409378gchar*
    410 webkit_dom_test_obj_get_string_attr (WebKitDOMTestObj *self)
     379webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self)
    411380{
    412381    g_return_val_if_fail (self, 0);
     
    414383    gchar*  res = convertToUTF8String(item->stringAttr());
    415384    return res;
    416 
    417 }
    418 
    419 void
    420 webkit_dom_test_obj_set_string_attr (WebKitDOMTestObj *self, gchar*  value)
     385}
     386
     387void
     388webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, gchar*  value)
    421389{
    422390    g_return_if_fail (self);
     
    425393    WebCore::String _g_value = WebCore::String::fromUTF8(value);
    426394    item->setStringAttr(_g_value);
    427 
    428395}
    429396
    430397WebKitDOMTestObj*
    431 webkit_dom_test_obj_get_test_obj_attr (WebKitDOMTestObj *self)
     398webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self)
    432399{
    433400    g_return_val_if_fail (self, 0);
     
    436403    WebKitDOMTestObj*  res = static_cast<WebKitDOMTestObj* >(WebKit::kit(g_res.get()));
    437404    return res;
    438 
    439 }
    440 
    441 void
    442 webkit_dom_test_obj_set_test_obj_attr (WebKitDOMTestObj *self, WebKitDOMTestObj*  value)
     405}
     406
     407void
     408webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj*  value)
    443409{
    444410    g_return_if_fail (self);
     
    448414    g_return_if_fail (_g_value);
    449415    item->setTestObjAttr(_g_value);
    450 
    451416}
    452417
    453418glong
    454 webkit_dom_test_obj_get_attr_with_exception (WebKitDOMTestObj *self)
     419webkit_dom_test_obj_get_attr_with_exception(WebKitDOMTestObj* self)
    455420{
    456421    g_return_val_if_fail (self, 0);
     
    458423    glong res = item->attrWithException();
    459424    return res;
    460 
    461 }
    462 
    463 void
    464 webkit_dom_test_obj_set_attr_with_exception (WebKitDOMTestObj *self, glong value)
     425}
     426
     427void
     428webkit_dom_test_obj_set_attr_with_exception(WebKitDOMTestObj* self, glong value)
    465429{
    466430    g_return_if_fail (self);
    467431    WebCore::TestObj * item = WebKit::core(self);
    468432    item->setAttrWithException(value);
    469 
    470433}
    471434
    472435glong
    473 webkit_dom_test_obj_get_attr_with_setter_exception (WebKitDOMTestObj *self, GError **error)
     436webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self, GError **error)
    474437{
    475438    g_return_val_if_fail (self, 0);
     
    483446    }
    484447    return res;
    485 
    486 }
    487 
    488 void
    489 webkit_dom_test_obj_set_attr_with_setter_exception (WebKitDOMTestObj *self, glong value, GError **error)
     448}
     449
     450void
     451webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError **error)
    490452{
    491453    g_return_if_fail (self);
     
    498460        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
    499461    }
    500 
    501462}
    502463
    503464glong
    504 webkit_dom_test_obj_get_attr_with_getter_exception (WebKitDOMTestObj *self)
     465webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self)
    505466{
    506467    g_return_val_if_fail (self, 0);
     
    508469    glong res = item->attrWithGetterException();
    509470    return res;
    510 
    511 }
    512 
    513 void
    514 webkit_dom_test_obj_set_attr_with_getter_exception (WebKitDOMTestObj *self, glong value, GError **error)
     471}
     472
     473void
     474webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value, GError **error)
    515475{
    516476    g_return_if_fail (self);
     
    523483        g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
    524484    }
    525 
    526485}
    527486
    528487gchar*
    529 webkit_dom_test_obj_get_script_string_attr (WebKitDOMTestObj *self)
     488webkit_dom_test_obj_get_script_string_attr(WebKitDOMTestObj* self)
    530489{
    531490    g_return_val_if_fail (self, 0);
     
    533492    gchar*  res = convertToUTF8String(item->scriptStringAttr());
    534493    return res;
    535 
    536494}
    537495
     
    588546static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
    589547{
    590      WebKitDOMTestObj *self = WEBKIT_DOM_TEST_OBJ(object);
     548    WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
    591549    WebCore::TestObj* coreSelf = WebKit::core(self);
    592      switch (prop_id) {
     550    switch (prop_id) {
    593551    case PROP_INT_ATTR:
    594552    {
    595          coreSelf->setIntAttr((g_value_get_long(value)) );
    596          break;
     553        coreSelf->setIntAttr((g_value_get_long(value)));
     554        break;
    597555    }
    598556    case PROP_UNSIGNED_LONG_LONG_ATTR:
    599557    {
    600          coreSelf->setUnsignedLongLongAttr((g_value_get_uint64(value)) );
    601          break;
     558        coreSelf->setUnsignedLongLongAttr((g_value_get_uint64(value)));
     559        break;
    602560    }
    603561    case PROP_STRING_ATTR:
    604562    {
    605          coreSelf->setStringAttr(WebCore::String::fromUTF8(g_value_get_string(value)) );
    606          break;
     563        coreSelf->setStringAttr(WebCore::String::fromUTF8(g_value_get_string(value)));
     564        break;
    607565    }
    608566    case PROP_ATTR_WITH_EXCEPTION:
    609567    {
    610          coreSelf->setAttrWithException((g_value_get_long(value)) );
    611          break;
     568        coreSelf->setAttrWithException((g_value_get_long(value)));
     569        break;
    612570    }
    613571    case PROP_ATTR_WITH_SETTER_EXCEPTION:
    614572    {
    615          WebCore::ExceptionCode ec = 0;
    616          coreSelf->setAttrWithSetterException((g_value_get_long(value)) , ec );
    617          break;
     573        WebCore::ExceptionCode ec = 0;
     574        coreSelf->setAttrWithSetterException((g_value_get_long(value)), ec);
     575        break;
    618576    }
    619577    case PROP_ATTR_WITH_GETTER_EXCEPTION:
    620578    {
    621          WebCore::ExceptionCode ec = 0;
    622          coreSelf->setAttrWithGetterException((g_value_get_long(value)) , ec );
    623          break;
    624     }
    625      default:
     579        WebCore::ExceptionCode ec = 0;
     580        coreSelf->setAttrWithGetterException((g_value_get_long(value)), ec);
     581        break;
     582    }
     583    default:
    626584        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
    627585        break;
     
    632590static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
    633591{
    634      WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
     592    WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
    635593    WebCore::TestObj* coreSelf = WebKit::core(self);
    636      switch (prop_id) {
     594    switch (prop_id) {
    637595    case PROP_READ_ONLY_INT_ATTR:
    638596    {
    639          g_value_set_long(value, coreSelf->readOnlyIntAttr());
    640          break;
     597        g_value_set_long(value, coreSelf->readOnlyIntAttr());
     598        break;
    641599    }
    642600    case PROP_READ_ONLY_STRING_ATTR:
    643601    {
    644          g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
    645          break;
     602        g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
     603        break;
    646604    }
    647605    case PROP_READ_ONLY_TEST_OBJ_ATTR:
    648606    {
    649          RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
     607        RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
    650608        g_value_set_object(value, WebKit::kit(ptr.get()));
    651          break;
     609        break;
    652610    }
    653611    case PROP_INT_ATTR:
    654612    {
    655          g_value_set_long(value, coreSelf->intAttr());
    656          break;
     613        g_value_set_long(value, coreSelf->intAttr());
     614        break;
    657615    }
    658616    case PROP_LONG_LONG_ATTR:
    659617    {
    660          g_value_set_int64(value, coreSelf->longLongAttr());
    661          break;
     618        g_value_set_int64(value, coreSelf->longLongAttr());
     619        break;
    662620    }
    663621    case PROP_UNSIGNED_LONG_LONG_ATTR:
    664622    {
    665          g_value_set_uint64(value, coreSelf->unsignedLongLongAttr());
    666          break;
     623        g_value_set_uint64(value, coreSelf->unsignedLongLongAttr());
     624        break;
    667625    }
    668626    case PROP_STRING_ATTR:
    669627    {
    670          g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
    671          break;
     628        g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
     629        break;
    672630    }
    673631    case PROP_TEST_OBJ_ATTR:
    674632    {
    675          RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
     633        RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
    676634        g_value_set_object(value, WebKit::kit(ptr.get()));
    677          break;
     635        break;
    678636    }
    679637    case PROP_ATTR_WITH_EXCEPTION:
    680638    {
    681          g_value_set_long(value, coreSelf->attrWithException());
    682          break;
     639        g_value_set_long(value, coreSelf->attrWithException());
     640        break;
    683641    }
    684642    case PROP_ATTR_WITH_SETTER_EXCEPTION:
    685643    {
    686          WebCore::ExceptionCode ec = 0;
    687          g_value_set_long(value, coreSelf->attrWithSetterException(ec));
    688          break;
     644        WebCore::ExceptionCode ec = 0;
     645        g_value_set_long(value, coreSelf->attrWithSetterException(ec));
     646        break;
    689647    }
    690648    case PROP_ATTR_WITH_GETTER_EXCEPTION:
    691649    {
    692          g_value_set_long(value, coreSelf->attrWithGetterException());
    693          break;
     650        g_value_set_long(value, coreSelf->attrWithGetterException());
     651        break;
    694652    }
    695653    case PROP_SCRIPT_STRING_ATTR:
    696654    {
    697          g_value_take_string(value, convertToUTF8String(coreSelf->scriptStringAttr()));
    698          break;
    699     }
    700      default:
     655        g_value_take_string(value, convertToUTF8String(coreSelf->scriptStringAttr()));
     656        break;
     657    }
     658    default:
    701659        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
    702660        break;
     
    7216790, /* default */
    722680                                                           WEBKIT_PARAM_READABLE));
    723      g_object_class_install_property(gobjectClass,
     681    g_object_class_install_property(gobjectClass,
    724682                                    PROP_READ_ONLY_STRING_ATTR,
    725683                                    g_param_spec_string("read-only-string-attr", /* name */
     
    728686                                                           "", /* default */
    729687                                                           WEBKIT_PARAM_READABLE));
    730      g_object_class_install_property(gobjectClass,
     688    g_object_class_install_property(gobjectClass,
    731689                                    PROP_READ_ONLY_TEST_OBJ_ATTR,
    732690                                    g_param_spec_object("read-only-test-obj-attr", /* name */
     
    735693                                                           WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
    736694                                                           WEBKIT_PARAM_READABLE));
    737      g_object_class_install_property(gobjectClass,
     695    g_object_class_install_property(gobjectClass,
    738696                                    PROP_INT_ATTR,
    739697                                    g_param_spec_long("int-attr", /* name */
     
    7447020, /* default */
    745703                                                           WEBKIT_PARAM_READWRITE));
    746      g_object_class_install_property(gobjectClass,
     704    g_object_class_install_property(gobjectClass,
    747705                                    PROP_LONG_LONG_ATTR,
    748706                                    g_param_spec_int64("long-long-attr", /* name */
     
    7537110, /* default */
    754712                                                           WEBKIT_PARAM_READWRITE));
    755      g_object_class_install_property(gobjectClass,
     713    g_object_class_install_property(gobjectClass,
    756714                                    PROP_UNSIGNED_LONG_LONG_ATTR,
    757715                                    g_param_spec_uint64("unsigned-long-long-attr", /* name */
     
    7627200, /* default */
    763721                                                           WEBKIT_PARAM_READWRITE));
    764      g_object_class_install_property(gobjectClass,
     722    g_object_class_install_property(gobjectClass,
    765723                                    PROP_STRING_ATTR,
    766724                                    g_param_spec_string("string-attr", /* name */
     
    769727                                                           "", /* default */
    770728                                                           WEBKIT_PARAM_READWRITE));
    771      g_object_class_install_property(gobjectClass,
     729    g_object_class_install_property(gobjectClass,
    772730                                    PROP_TEST_OBJ_ATTR,
    773731                                    g_param_spec_object("test-obj-attr", /* name */
     
    776734                                                           WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
    777735                                                           WEBKIT_PARAM_READWRITE));
    778      g_object_class_install_property(gobjectClass,
     736    g_object_class_install_property(gobjectClass,
    779737                                    PROP_ATTR_WITH_EXCEPTION,
    780738                                    g_param_spec_long("attr-with-exception", /* name */
     
    7857430, /* default */
    786744                                                           WEBKIT_PARAM_READWRITE));
    787      g_object_class_install_property(gobjectClass,
     745    g_object_class_install_property(gobjectClass,
    788746                                    PROP_ATTR_WITH_SETTER_EXCEPTION,
    789747                                    g_param_spec_long("attr-with-setter-exception", /* name */
     
    7947520, /* default */
    795753                                                           WEBKIT_PARAM_READWRITE));
    796      g_object_class_install_property(gobjectClass,
     754    g_object_class_install_property(gobjectClass,
    797755                                    PROP_ATTR_WITH_GETTER_EXCEPTION,
    798756                                    g_param_spec_long("attr-with-getter-exception", /* name */
     
    8037610, /* default */
    804762                                                           WEBKIT_PARAM_READWRITE));
    805      g_object_class_install_property(gobjectClass,
     763    g_object_class_install_property(gobjectClass,
    806764                                    PROP_SCRIPT_STRING_ATTR,
    807765                                    g_param_spec_string("script-string-attr", /* name */
  • trunk/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h

    r59557 r60558  
    4848
    4949WEBKIT_API void
    50 webkit_dom_test_obj_void_method (WebKitDOMTestObj *self);
     50webkit_dom_test_obj_void_method(WebKitDOMTestObj* self);
    5151
    5252WEBKIT_API void
    53 webkit_dom_test_obj_void_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
     53webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
    5454
    5555WEBKIT_API glong
    56 webkit_dom_test_obj_int_method (WebKitDOMTestObj *self);
     56webkit_dom_test_obj_int_method(WebKitDOMTestObj* self);
    5757
    5858WEBKIT_API glong
    59 webkit_dom_test_obj_int_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
     59webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
    6060
    6161WEBKIT_API WebKitDOMTestObj*
    62 webkit_dom_test_obj_obj_method (WebKitDOMTestObj *self);
     62webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self);
    6363
    6464WEBKIT_API WebKitDOMTestObj*
    65 webkit_dom_test_obj_obj_method_with_args (WebKitDOMTestObj *self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
     65webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
    6666
    6767WEBKIT_API WebKitDOMTestObj*
    68 webkit_dom_test_obj_method_that_requires_all_args (WebKitDOMTestObj *self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
     68webkit_dom_test_obj_method_that_requires_all_args(WebKitDOMTestObj* self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg);
    6969
    7070WEBKIT_API WebKitDOMTestObj*
    71 webkit_dom_test_obj_method_that_requires_all_args_and_throws (WebKitDOMTestObj *self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg, GError **error);
     71webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, gchar*  str_arg, WebKitDOMTestObj*  obj_arg, GError **error);
    7272
    7373WEBKIT_API void
    74 webkit_dom_test_obj_serialized_value (WebKitDOMTestObj *self, WebKitDOMSerializedScriptValue*  serialized_arg);
     74webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue*  serialized_arg);
    7575
    7676WEBKIT_API void
    77 webkit_dom_test_obj_method_with_exception (WebKitDOMTestObj *self, GError **error);
     77webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError **error);
    7878
    7979
     
    8484
    8585WEBKIT_API void
    86 webkit_dom_test_obj_with_dynamic_frame (WebKitDOMTestObj *self);
     86webkit_dom_test_obj_with_dynamic_frame(WebKitDOMTestObj* self);
    8787
    8888WEBKIT_API void
    89 webkit_dom_test_obj_with_dynamic_frame_and_arg (WebKitDOMTestObj *self, glong int_arg);
     89webkit_dom_test_obj_with_dynamic_frame_and_arg(WebKitDOMTestObj* self, glong int_arg);
    9090
    9191WEBKIT_API void
    92 webkit_dom_test_obj_with_dynamic_frame_and_optional_arg (WebKitDOMTestObj *self, glong int_arg, glong optional_arg);
     92webkit_dom_test_obj_with_dynamic_frame_and_optional_arg(WebKitDOMTestObj* self, glong int_arg, glong optional_arg);
    9393
    9494WEBKIT_API void
    95 webkit_dom_test_obj_with_dynamic_frame_and_user_gesture (WebKitDOMTestObj *self, glong int_arg);
     95webkit_dom_test_obj_with_dynamic_frame_and_user_gesture(WebKitDOMTestObj* self, glong int_arg);
    9696
    9797WEBKIT_API void
    98 webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad (WebKitDOMTestObj *self, glong int_arg, glong optional_arg);
     98webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad(WebKitDOMTestObj* self, glong int_arg, glong optional_arg);
    9999
    100100WEBKIT_API void
    101 webkit_dom_test_obj_with_script_state_void (WebKitDOMTestObj *self);
     101webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self);
    102102
    103103WEBKIT_API WebKitDOMTestObj*
    104 webkit_dom_test_obj_with_script_state_obj (WebKitDOMTestObj *self);
     104webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self);
    105105
    106106WEBKIT_API void
    107 webkit_dom_test_obj_with_script_state_void_exception (WebKitDOMTestObj *self, GError **error);
     107webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError **error);
    108108
    109109WEBKIT_API WebKitDOMTestObj*
    110 webkit_dom_test_obj_with_script_state_obj_exception (WebKitDOMTestObj *self, GError **error);
     110webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError **error);
    111111
    112112WEBKIT_API void
    113 webkit_dom_test_obj_method_with_optional_arg (WebKitDOMTestObj *self, glong opt);
     113webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt);
    114114
    115115WEBKIT_API void
    116 webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg (WebKitDOMTestObj *self, glong non_opt, glong opt);
     116webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong non_opt, glong opt);
    117117
    118118WEBKIT_API void
    119 webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args (WebKitDOMTestObj *self, glong non_opt, glong opt1, glong opt2);
     119webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong non_opt, glong opt1, glong opt2);
    120120
    121121WEBKIT_API glong
    122 webkit_dom_test_obj_get_read_only_int_attr (WebKitDOMTestObj *self);
     122webkit_dom_test_obj_get_read_only_int_attr(WebKitDOMTestObj* self);
    123123
    124124WEBKIT_API gchar*
    125 webkit_dom_test_obj_get_read_only_string_attr (WebKitDOMTestObj *self);
     125webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self);
    126126
    127127WEBKIT_API WebKitDOMTestObj*
    128 webkit_dom_test_obj_get_read_only_test_obj_attr (WebKitDOMTestObj *self);
     128webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self);
    129129
    130130WEBKIT_API glong
    131 webkit_dom_test_obj_get_int_attr (WebKitDOMTestObj *self);
     131webkit_dom_test_obj_get_int_attr(WebKitDOMTestObj* self);
    132132
    133133WEBKIT_API void
    134 webkit_dom_test_obj_set_int_attr (WebKitDOMTestObj *self, glong value);
     134webkit_dom_test_obj_set_int_attr(WebKitDOMTestObj* self, glong value);
    135135
    136136WEBKIT_API gint64
    137 webkit_dom_test_obj_get_long_long_attr (WebKitDOMTestObj *self);
     137webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self);
    138138
    139139WEBKIT_API void
    140 webkit_dom_test_obj_set_long_long_attr (WebKitDOMTestObj *self, gint64 value);
     140webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value);
    141141
    142142WEBKIT_API guint64
    143 webkit_dom_test_obj_get_unsigned_long_long_attr (WebKitDOMTestObj *self);
     143webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self);
    144144
    145145WEBKIT_API void
    146 webkit_dom_test_obj_set_unsigned_long_long_attr (WebKitDOMTestObj *self, guint64 value);
     146webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value);
    147147
    148148WEBKIT_API gchar*
    149 webkit_dom_test_obj_get_string_attr (WebKitDOMTestObj *self);
     149webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self);
    150150
    151151WEBKIT_API void
    152 webkit_dom_test_obj_set_string_attr (WebKitDOMTestObj *self, gchar*  value);
     152webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, gchar*  value);
    153153
    154154WEBKIT_API WebKitDOMTestObj*
    155 webkit_dom_test_obj_get_test_obj_attr (WebKitDOMTestObj *self);
     155webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self);
    156156
    157157WEBKIT_API void
    158 webkit_dom_test_obj_set_test_obj_attr (WebKitDOMTestObj *self, WebKitDOMTestObj*  value);
     158webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj*  value);
    159159
    160160WEBKIT_API glong
    161 webkit_dom_test_obj_get_attr_with_exception (WebKitDOMTestObj *self);
     161webkit_dom_test_obj_get_attr_with_exception(WebKitDOMTestObj* self);
    162162
    163163WEBKIT_API void
    164 webkit_dom_test_obj_set_attr_with_exception (WebKitDOMTestObj *self, glong value);
     164webkit_dom_test_obj_set_attr_with_exception(WebKitDOMTestObj* self, glong value);
    165165
    166166WEBKIT_API glong
    167 webkit_dom_test_obj_get_attr_with_setter_exception (WebKitDOMTestObj *self, GError **error);
     167webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self, GError **error);
    168168
    169169WEBKIT_API void
    170 webkit_dom_test_obj_set_attr_with_setter_exception (WebKitDOMTestObj *self, glong value, GError **error);
     170webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError **error);
    171171
    172172WEBKIT_API glong
    173 webkit_dom_test_obj_get_attr_with_getter_exception (WebKitDOMTestObj *self);
     173webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self);
    174174
    175175WEBKIT_API void
    176 webkit_dom_test_obj_set_attr_with_getter_exception (WebKitDOMTestObj *self, glong value, GError **error);
     176webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value, GError **error);
    177177
    178178WEBKIT_API gchar*
    179 webkit_dom_test_obj_get_script_string_attr (WebKitDOMTestObj *self);
     179webkit_dom_test_obj_get_script_string_attr(WebKitDOMTestObj* self);
    180180
    181181G_END_DECLS
Note: See TracChangeset for help on using the changeset viewer.