本文整理汇总了C++中webcore::TestCallback类的典型用法代码示例。如果您正苦于以下问题:C++ TestCallback类的具体用法?C++ TestCallback怎么用?C++ TestCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TestCallback类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ENABLE
gboolean
webkit_dom_test_callback_callback_requires_this_to_pass(WebKitDOMTestCallback* self, WebKitDOMClass8* class8Param, WebKitDOMThisClass* thisClassParam)
{
#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(class8Param, 0);
g_return_val_if_fail(thisClassParam, 0);
WebCore::Class8* convertedClass8Param = 0;
if (class8Param) {
convertedClass8Param = WebKit::core(class8Param);
g_return_val_if_fail(convertedClass8Param, 0);
}
WebCore::ThisClass* convertedThisClassParam = 0;
if (thisClassParam) {
convertedThisClassParam = WebKit::core(thisClassParam);
g_return_val_if_fail(convertedThisClassParam, 0);
}
gboolean result = item->callbackRequiresThisToPass(convertedClass8Param, convertedThisClassParam);
return result;
#else
WEBKIT_WARN_FEATURE_NOT_PRESENT("SQL Database")
return static_cast<gboolean>(0);
#endif /* ENABLE(SQL_DATABASE) */
}
示例2:
gboolean
webkit_dom_test_callback_callback_with_no_param(WebKitDOMTestCallback* self)
{
g_return_val_if_fail(self, 0);
WebCore::JSMainThreadNullState state;
WebCore::TestCallback * item = WebKit::core(self);
gboolean res = item->callbackWithNoParam();
return res;
}
示例3:
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;
}
示例4:
glong
webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallback* self, WebKitDOMClass3* class3param)
{
g_return_val_if_fail(self, 0);
WebCore::JSMainThreadNullState state;
WebCore::TestCallback * item = WebKit::core(self);
g_return_val_if_fail(class3param, 0);
WebCore::Class3 * converted_class3param = NULL;
if (class3param != NULL) {
converted_class3param = WebKit::core(class3param);
g_return_val_if_fail(converted_class3param, 0);
}
glong res = item->callbackWithNonBoolReturnType(converted_class3param);
return res;
}
示例5: webkit_dom_test_callback_finalize
static void webkit_dom_test_callback_finalize(GObject* object)
{
WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
if (dom_object->coreObject) {
WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback *>(dom_object->coreObject);
WebKit::DOMObjectCache::forget(coreObject);
coreObject->deref();
dom_object->coreObject = NULL;
}
G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->finalize(object);
}
示例6: webkit_dom_test_callback_finalize
static void webkit_dom_test_callback_finalize(GObject* object)
{
#if ENABLE(SQL_DATABASE)
WebKitDOMObject* domObject = WEBKIT_DOM_OBJECT(object);
if (domObject->coreObject) {
WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback*>(domObject->coreObject);
WebKit::DOMObjectCache::forget(coreObject);
coreObject->deref();
domObject->coreObject = 0;
}
#endif // ENABLE(SQL_DATABASE)
G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->finalize(object);
}