本文整理汇总了C++中webcore::TestCallback::callbackWithClass2Param方法的典型用法代码示例。如果您正苦于以下问题:C++ TestCallback::callbackWithClass2Param方法的具体用法?C++ TestCallback::callbackWithClass2Param怎么用?C++ TestCallback::callbackWithClass2Param使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webcore::TestCallback
的用法示例。
在下文中一共展示了TestCallback::callbackWithClass2Param方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
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;
}
示例2:
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;
}
示例3: ENABLE
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) */
}