mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 09:12:41 +00:00
commit
e11fa5d7ad
@ -28,6 +28,7 @@ namespace OHOS::Ace::NG {
|
||||
void PluginModelNG::Create(const RequestPluginInfo& pluginInfo)
|
||||
{
|
||||
auto* stack = ViewStackProcessor::GetInstance();
|
||||
CHECK_NULL_VOID(stack);
|
||||
int32_t nodeId = stack->ClaimNodeId();
|
||||
ACE_LAYOUT_SCOPED_TRACE("Create[%s][self:%d]", V2::PLUGIN_ETS_TAG, nodeId);
|
||||
auto frameNode = PluginNode::GetOrCreatePluginNode(
|
||||
|
@ -27,7 +27,9 @@ SecurityUIExtensionProxy::SecurityUIExtensionProxy(
|
||||
void SecurityUIExtensionProxy::SendData(const RefPtr<WantParamsWrap>& wantParams)
|
||||
{
|
||||
CHECK_NULL_VOID(sessionWrapper_);
|
||||
auto params = DynamicCast<WantParamsWrapOhos>(wantParams)->GetWantParams();
|
||||
auto paramsWrap = DynamicCast<WantParamsWrapOhos>(wantParams);
|
||||
CHECK_NULL_VOID(paramsWrap);
|
||||
auto params = paramsWrap->GetWantParams();
|
||||
sessionWrapper_->SendDataAsync(params);
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@ RefPtr<SessionWrapper> SessionWrapperFactory::CreateSessionWrapper(SessionType s
|
||||
if (sessionType == SessionType::UI_EXTENSION_ABILITY || sessionType == SessionType::EMBEDDED_UI_EXTENSION) {
|
||||
return AceType::MakeRefPtr<SessionWrapperImpl>(hostPattern, instanceId, isTransferringCaller, sessionType);
|
||||
}
|
||||
TAG_LOGW(AceLogTag::ACE_UIEXTENSIONCOMPONENT, "CreateSessionWrapper return nullptr");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ RefPtr<SessionWrapper> SessionWrapperFactory::CreateSessionWrapper(
|
||||
sessionCreateParam.hostPattern, sessionCreateParam.instanceId,
|
||||
sessionCreateParam.isTransferringCaller, sessionType);
|
||||
}
|
||||
TAG_LOGW(AceLogTag::ACE_UIEXTENSIONCOMPONENT, "CreateSessionWrapper return nullptr");
|
||||
return nullptr;
|
||||
}
|
||||
} // namespace OHOS::Ace::NG
|
||||
|
Loading…
Reference in New Issue
Block a user