|
Lines 1082-1087
webkit_dom_test_obj_set_string_attr_with_setter_exception(WebKitDOMTestObj* self
a/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp_sec1
|
| 1082 |
} |
1082 |
} |
| 1083 |
} |
1083 |
} |
| 1084 |
|
1084 |
|
|
|
1085 |
glong |
| 1086 |
webkit_dom_test_obj_get_with_script_state_attribute(WebKitDOMTestObj* self) |
| 1087 |
{ |
| 1088 |
g_return_val_if_fail(self, 0); |
| 1089 |
WebCore::JSMainThreadNullState state; |
| 1090 |
WebCore::TestObj * item = WebKit::core(self); |
| 1091 |
glong res = item->withScriptStateAttribute(); |
| 1092 |
return res; |
| 1093 |
} |
| 1094 |
|
| 1095 |
void |
| 1096 |
webkit_dom_test_obj_set_with_script_state_attribute(WebKitDOMTestObj* self, glong value) |
| 1097 |
{ |
| 1098 |
g_return_if_fail(self); |
| 1099 |
WebCore::JSMainThreadNullState state; |
| 1100 |
WebCore::TestObj * item = WebKit::core(self); |
| 1101 |
item->setWithScriptStateAttribute(value); |
| 1102 |
} |
| 1103 |
|
| 1104 |
WebKitDOMTestObj* |
| 1105 |
webkit_dom_test_obj_get_with_script_execution_context_attribute(WebKitDOMTestObj* self) |
| 1106 |
{ |
| 1107 |
g_return_val_if_fail(self, 0); |
| 1108 |
WebCore::JSMainThreadNullState state; |
| 1109 |
WebCore::TestObj * item = WebKit::core(self); |
| 1110 |
PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAttribute()); |
| 1111 |
WebKitDOMTestObj* res = WebKit::kit(g_res.get()); |
| 1112 |
return res; |
| 1113 |
} |
| 1114 |
|
| 1115 |
void |
| 1116 |
webkit_dom_test_obj_set_with_script_execution_context_attribute(WebKitDOMTestObj* self, WebKitDOMTestObj* value) |
| 1117 |
{ |
| 1118 |
g_return_if_fail(self); |
| 1119 |
WebCore::JSMainThreadNullState state; |
| 1120 |
WebCore::TestObj * item = WebKit::core(self); |
| 1121 |
g_return_if_fail(value); |
| 1122 |
WebCore::TestObj * converted_value = NULL; |
| 1123 |
if (value != NULL) { |
| 1124 |
converted_value = WebKit::core(value); |
| 1125 |
g_return_if_fail(converted_value); |
| 1126 |
} |
| 1127 |
item->setWithScriptExecutionContextAttribute(converted_value); |
| 1128 |
} |
| 1129 |
|
| 1130 |
WebKitDOMTestObj* |
| 1131 |
webkit_dom_test_obj_get_with_script_state_attribute_raises(WebKitDOMTestObj* self, GError **error) |
| 1132 |
{ |
| 1133 |
g_return_val_if_fail(self, 0); |
| 1134 |
WebCore::JSMainThreadNullState state; |
| 1135 |
WebCore::TestObj * item = WebKit::core(self); |
| 1136 |
WebCore::ExceptionCode ec = 0; |
| 1137 |
PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateAttributeRaises(ec)); |
| 1138 |
if (ec) { |
| 1139 |
WebCore::ExceptionCodeDescription ecdesc(ec); |
| 1140 |
g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name); |
| 1141 |
} |
| 1142 |
WebKitDOMTestObj* res = WebKit::kit(g_res.get()); |
| 1143 |
return res; |
| 1144 |
} |
| 1145 |
|
| 1146 |
void |
| 1147 |
webkit_dom_test_obj_set_with_script_state_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error) |
| 1148 |
{ |
| 1149 |
g_return_if_fail(self); |
| 1150 |
WebCore::JSMainThreadNullState state; |
| 1151 |
WebCore::TestObj * item = WebKit::core(self); |
| 1152 |
g_return_if_fail(value); |
| 1153 |
WebCore::TestObj * converted_value = NULL; |
| 1154 |
if (value != NULL) { |
| 1155 |
converted_value = WebKit::core(value); |
| 1156 |
g_return_if_fail(converted_value); |
| 1157 |
} |
| 1158 |
WebCore::ExceptionCode ec = 0; |
| 1159 |
item->setWithScriptStateAttributeRaises(converted_value, ec); |
| 1160 |
if (ec) { |
| 1161 |
WebCore::ExceptionCodeDescription ecdesc(ec); |
| 1162 |
g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name); |
| 1163 |
} |
| 1164 |
} |
| 1165 |
|
| 1166 |
WebKitDOMTestObj* |
| 1167 |
webkit_dom_test_obj_get_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, GError **error) |
| 1168 |
{ |
| 1169 |
g_return_val_if_fail(self, 0); |
| 1170 |
WebCore::JSMainThreadNullState state; |
| 1171 |
WebCore::TestObj * item = WebKit::core(self); |
| 1172 |
WebCore::ExceptionCode ec = 0; |
| 1173 |
PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptExecutionContextAttributeRaises(ec)); |
| 1174 |
if (ec) { |
| 1175 |
WebCore::ExceptionCodeDescription ecdesc(ec); |
| 1176 |
g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name); |
| 1177 |
} |
| 1178 |
WebKitDOMTestObj* res = WebKit::kit(g_res.get()); |
| 1179 |
return res; |
| 1180 |
} |
| 1181 |
|
| 1182 |
void |
| 1183 |
webkit_dom_test_obj_set_with_script_execution_context_attribute_raises(WebKitDOMTestObj* self, WebKitDOMTestObj* value, GError **error) |
| 1184 |
{ |
| 1185 |
g_return_if_fail(self); |
| 1186 |
WebCore::JSMainThreadNullState state; |
| 1187 |
WebCore::TestObj * item = WebKit::core(self); |
| 1188 |
g_return_if_fail(value); |
| 1189 |
WebCore::TestObj * converted_value = NULL; |
| 1190 |
if (value != NULL) { |
| 1191 |
converted_value = WebKit::core(value); |
| 1192 |
g_return_if_fail(converted_value); |
| 1193 |
} |
| 1194 |
WebCore::ExceptionCode ec = 0; |
| 1195 |
item->setWithScriptExecutionContextAttributeRaises(converted_value, ec); |
| 1196 |
if (ec) { |
| 1197 |
WebCore::ExceptionCodeDescription ecdesc(ec); |
| 1198 |
g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name); |
| 1199 |
} |
| 1200 |
} |
| 1201 |
|
| 1085 |
gchar* |
1202 |
gchar* |
| 1086 |
webkit_dom_test_obj_get_script_string_attr(WebKitDOMTestObj* self) |
1203 |
webkit_dom_test_obj_get_script_string_attr(WebKitDOMTestObj* self) |
| 1087 |
{ |
1204 |
{ |
|
Lines 1334-1339
enum {
a/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp_sec2
|
| 1334 |
PROP_STRING_ATTR_WITH_GETTER_EXCEPTION, |
1451 |
PROP_STRING_ATTR_WITH_GETTER_EXCEPTION, |
| 1335 |
PROP_STRING_ATTR_WITH_SETTER_EXCEPTION, |
1452 |
PROP_STRING_ATTR_WITH_SETTER_EXCEPTION, |
| 1336 |
PROP_CUSTOM_ATTR, |
1453 |
PROP_CUSTOM_ATTR, |
|
|
1454 |
PROP_WITH_SCRIPT_STATE_ATTRIBUTE, |
| 1455 |
PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE, |
| 1456 |
PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES, |
| 1457 |
PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES, |
| 1337 |
PROP_SCRIPT_STRING_ATTR, |
1458 |
PROP_SCRIPT_STRING_ATTR, |
| 1338 |
#if ENABLE(Condition1) |
1459 |
#if ENABLE(Condition1) |
| 1339 |
PROP_CONDITIONAL_ATTR1, |
1460 |
PROP_CONDITIONAL_ATTR1, |
|
Lines 1480-1485
static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, con
a/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp_sec3
|
| 1480 |
coreSelf->setStringAttrWithSetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec); |
1601 |
coreSelf->setStringAttrWithSetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec); |
| 1481 |
break; |
1602 |
break; |
| 1482 |
} |
1603 |
} |
|
|
1604 |
case PROP_WITH_SCRIPT_STATE_ATTRIBUTE: |
| 1605 |
{ |
| 1606 |
coreSelf->setWithScriptStateAttribute((g_value_get_long(value))); |
| 1607 |
break; |
| 1608 |
} |
| 1483 |
#if ENABLE(Condition1) |
1609 |
#if ENABLE(Condition1) |
| 1484 |
case PROP_CONDITIONAL_ATTR1: |
1610 |
case PROP_CONDITIONAL_ATTR1: |
| 1485 |
{ |
1611 |
{ |
|
Lines 1664-1669
static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GVa
a/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp_sec4
|
| 1664 |
g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithSetterException())); |
1790 |
g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithSetterException())); |
| 1665 |
break; |
1791 |
break; |
| 1666 |
} |
1792 |
} |
|
|
1793 |
case PROP_WITH_SCRIPT_STATE_ATTRIBUTE: |
| 1794 |
{ |
| 1795 |
g_value_set_long(value, coreSelf->withScriptStateAttribute()); |
| 1796 |
break; |
| 1797 |
} |
| 1798 |
case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE: |
| 1799 |
{ |
| 1800 |
RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAttribute(); |
| 1801 |
g_value_set_object(value, WebKit::kit(ptr.get())); |
| 1802 |
break; |
| 1803 |
} |
| 1804 |
case PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES: |
| 1805 |
{ |
| 1806 |
WebCore::ExceptionCode ec = 0; |
| 1807 |
RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptStateAttributeRaises(ec); |
| 1808 |
g_value_set_object(value, WebKit::kit(ptr.get())); |
| 1809 |
break; |
| 1810 |
} |
| 1811 |
case PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES: |
| 1812 |
{ |
| 1813 |
WebCore::ExceptionCode ec = 0; |
| 1814 |
RefPtr<WebCore::TestObj> ptr = coreSelf->withScriptExecutionContextAttributeRaises(ec); |
| 1815 |
g_value_set_object(value, WebKit::kit(ptr.get())); |
| 1816 |
break; |
| 1817 |
} |
| 1667 |
case PROP_SCRIPT_STRING_ATTR: |
1818 |
case PROP_SCRIPT_STRING_ATTR: |
| 1668 |
{ |
1819 |
{ |
| 1669 |
g_value_take_string(value, convertToUTF8String(coreSelf->scriptStringAttr())); |
1820 |
g_value_take_string(value, convertToUTF8String(coreSelf->scriptStringAttr())); |
|
Lines 1962-1967
G_MAXLONG, /* max */
a/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp_sec5
|
| 1962 |
"", /* default */ |
2113 |
"", /* default */ |
| 1963 |
WEBKIT_PARAM_READWRITE)); |
2114 |
WEBKIT_PARAM_READWRITE)); |
| 1964 |
g_object_class_install_property(gobjectClass, |
2115 |
g_object_class_install_property(gobjectClass, |
|
|
2116 |
PROP_WITH_SCRIPT_STATE_ATTRIBUTE, |
| 2117 |
g_param_spec_long("with-script-state-attribute", /* name */ |
| 2118 |
"test_obj_with-script-state-attribute", /* short description */ |
| 2119 |
"read-write glong TestObj.with-script-state-attribute", /* longer - could do with some extra doc stuff here */ |
| 2120 |
G_MINLONG, /* min */ |
| 2121 |
G_MAXLONG, /* max */ |
| 2122 |
0, /* default */ |
| 2123 |
WEBKIT_PARAM_READWRITE)); |
| 2124 |
g_object_class_install_property(gobjectClass, |
| 2125 |
PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE, |
| 2126 |
g_param_spec_object("with-script-execution-context-attribute", /* name */ |
| 2127 |
"test_obj_with-script-execution-context-attribute", /* short description */ |
| 2128 |
"read-write WebKitDOMTestObj* TestObj.with-script-execution-context-attribute", /* longer - could do with some extra doc stuff here */ |
| 2129 |
WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */ |
| 2130 |
WEBKIT_PARAM_READWRITE)); |
| 2131 |
g_object_class_install_property(gobjectClass, |
| 2132 |
PROP_WITH_SCRIPT_STATE_ATTRIBUTE_RAISES, |
| 2133 |
g_param_spec_object("with-script-state-attribute-raises", /* name */ |
| 2134 |
"test_obj_with-script-state-attribute-raises", /* short description */ |
| 2135 |
"read-write WebKitDOMTestObj* TestObj.with-script-state-attribute-raises", /* longer - could do with some extra doc stuff here */ |
| 2136 |
WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */ |
| 2137 |
WEBKIT_PARAM_READWRITE)); |
| 2138 |
g_object_class_install_property(gobjectClass, |
| 2139 |
PROP_WITH_SCRIPT_EXECUTION_CONTEXT_ATTRIBUTE_RAISES, |
| 2140 |
g_param_spec_object("with-script-execution-context-attribute-raises", /* name */ |
| 2141 |
"test_obj_with-script-execution-context-attribute-raises", /* short description */ |
| 2142 |
"read-write WebKitDOMTestObj* TestObj.with-script-execution-context-attribute-raises", /* longer - could do with some extra doc stuff here */ |
| 2143 |
WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */ |
| 2144 |
WEBKIT_PARAM_READWRITE)); |
| 2145 |
g_object_class_install_property(gobjectClass, |
| 1965 |
PROP_SCRIPT_STRING_ATTR, |
2146 |
PROP_SCRIPT_STRING_ATTR, |
| 1966 |
g_param_spec_string("script-string-attr", /* name */ |
2147 |
g_param_spec_string("script-string-attr", /* name */ |
| 1967 |
"test_obj_script-string-attr", /* short description */ |
2148 |
"test_obj_script-string-attr", /* short description */ |