本文整理汇总了C++中PluginView::bindingInstance方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginView::bindingInstance方法的具体用法?C++ PluginView::bindingInstance怎么用?C++ PluginView::bindingInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginView
的用法示例。
在下文中一共展示了PluginView::bindingInstance方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: bindingRootObject
PassRefPtr<JSC::Bindings::Instance> ScriptController::createScriptInstanceForWidget(WebCore::Widget* widget)
{
if (widget->isPluginView()) {
PluginView* pluginView = static_cast<PluginView*>(widget);
return pluginView->bindingInstance();
}
QWidget* platformWidget = widget->platformWidget();
if (!platformWidget)
return 0;
return JSC::Bindings::QtInstance::getQtInstance(platformWidget, bindingRootObject(), QScriptEngine::QtOwnership);
}
示例2: ENABLE
PassRefPtr<JSC::Bindings::Instance> ScriptController::createScriptInstanceForWidget(Widget* widget)
{
if (widget->isPluginView()) {
PluginView* pluginView = static_cast<PluginView*>(widget);
return pluginView->bindingInstance();
}
#if ENABLE(CEHTML)
if (widget->isEmbeddedWidget()) {
EmbeddedWidget* embeddedWidget = static_cast<EmbeddedWidget*>(widget);
Frame* frame= globalObject(mainThreadNormalWorld())->impl()->frame();
return JSC::Bindings::BalInstance::getBalInstance(embeddedWidget, createRootObject(frame).get());
}
#endif
return 0;
}