当前位置: 首页>>代码示例>>C++>>正文


C++ webcore::TestCallback类代码示例

本文整理汇总了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) */
}
开发者ID:,项目名称:,代码行数:26,代码来源:

示例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;
}
开发者ID:NewDreamUser2,项目名称:webkit-webcl,代码行数:9,代码来源:WebKitDOMTestCallback.cpp

示例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;

}
开发者ID:UIKit0,项目名称:WebkitAIR,代码行数:12,代码来源:WebKitDOMTestCallback.cpp

示例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;
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:15,代码来源:WebKitDOMTestCallback.cpp

示例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);
}
开发者ID:dslab-epfl,项目名称:warr,代码行数:15,代码来源:WebKitDOMTestCallback.cpp

示例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);
}
开发者ID:,项目名称:,代码行数:17,代码来源:


注:本文中的webcore::TestCallback类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。