gboolean
webkit_dom_test_callback_callback_with_class2param (WebKitDOMTestCallback *self, WebKitDOMClass2*  class2param, gchar*  str_arg)
{
    g_return_val_if_fail (self, 0);
    WebCore::TestCallback * item = WebKit::core(self);
    g_return_val_if_fail (class2param, 0);
    g_return_val_if_fail (str_arg, 0);
    WebCore::Class2 * _g_class2param = WebKit::core(class2param);
    g_return_val_if_fail (_g_class2param, 0);
    WebCore::String _g_str_arg = WebCore::String::fromUTF8(str_arg);
    gboolean res = item->callbackWithClass2Param(_g_class2param, _g_str_arg);
    return res;

}
gboolean
webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2* class2param, const gchar* str_arg)
{
    g_return_val_if_fail(self, 0);
    WebCore::JSMainThreadNullState state;
    WebCore::TestCallback * item = WebKit::core(self);
    g_return_val_if_fail(class2param, 0);
    g_return_val_if_fail(str_arg, 0);
    WebCore::Class2 * converted_class2param = NULL;
    if (class2param != NULL) {
        converted_class2param = WebKit::core(class2param);
        g_return_val_if_fail(converted_class2param, 0);
    }
    WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
    gboolean res = item->callbackWithClass2Param(converted_class2param, converted_str_arg);
    return res;
}
Exemple #3
0
gboolean
webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2* class2Param, const gchar* strArg)
{
#if ENABLE(SQL_DATABASE)
    g_return_val_if_fail(self, 0);
    WebCore::JSMainThreadNullState state;
    WebCore::TestCallback* item = WebKit::core(self);
    g_return_val_if_fail(class2Param, 0);
    g_return_val_if_fail(strArg, 0);
    WebCore::Class2* convertedClass2Param = 0;
    if (class2Param) {
        convertedClass2Param = WebKit::core(class2Param);
        g_return_val_if_fail(convertedClass2Param, 0);
    }
    WTF::String convertedStrArg = WTF::String::fromUTF8(strArg);
    gboolean result = item->callbackWithClass2Param(convertedClass2Param, convertedStrArg);
    return result;
#else
    WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
    return static_cast<gboolean>(0);
#endif /* ENABLE(SQL_DATABASE) */
}