本文整理汇总了C++中webcore::TestCallback::callbackWithClass1Param方法的典型用法代码示例。如果您正苦于以下问题:C++ TestCallback::callbackWithClass1Param方法的具体用法?C++ TestCallback::callbackWithClass1Param怎么用?C++ TestCallback::callbackWithClass1Param使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webcore::TestCallback
的用法示例。
在下文中一共展示了TestCallback::callbackWithClass1Param方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
gboolean
webkit_dom_test_callback_callback_with_class1param (WebKitDOMTestCallback *self, WebKitDOMClass1* class1param)
{
g_return_val_if_fail (self, 0);
WebCore::TestCallback * item = WebKit::core(self);
g_return_val_if_fail (class1param, 0);
WebCore::Class1 * _g_class1param = WebKit::core(class1param);
g_return_val_if_fail (_g_class1param, 0);
gboolean res = item->callbackWithClass1Param(_g_class1param);
return res;
}
示例2:
gboolean
webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1* class1param)
{
g_return_val_if_fail(self, 0);
WebCore::JSMainThreadNullState state;
WebCore::TestCallback * item = WebKit::core(self);
g_return_val_if_fail(class1param, 0);
WebCore::Class1 * converted_class1param = NULL;
if (class1param != NULL) {
converted_class1param = WebKit::core(class1param);
g_return_val_if_fail(converted_class1param, 0);
}
gboolean res = item->callbackWithClass1Param(converted_class1param);
return res;
}
示例3: ENABLE
gboolean
webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1* class1Param)
{
#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(class1Param, 0);
WebCore::Class1* convertedClass1Param = 0;
if (class1Param) {
convertedClass1Param = WebKit::core(class1Param);
g_return_val_if_fail(convertedClass1Param, 0);
}
gboolean result = item->callbackWithClass1Param(convertedClass1Param);
return result;
#else
WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
return static_cast<gboolean>(0);
#endif /* ENABLE(SQL_DATABASE) */
}