mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 17:21:11 +00:00
!38866 UIExtension拉起后去获取summary
Merge pull request !38866 from Hone/h_0725_1
This commit is contained in:
commit
806588f85e
@ -1753,6 +1753,7 @@ UIContentErrorCode UIContentImpl::CommonInitialize(
|
||||
|
||||
InitializeSafeArea(container);
|
||||
InitializeDisplayAvailableRect(container);
|
||||
InitDragSummaryMap(container);
|
||||
|
||||
// set container temp dir
|
||||
if (abilityContext) {
|
||||
@ -1844,6 +1845,14 @@ void UIContentImpl::InitializeDisplayAvailableRect(const RefPtr<Platform::AceCon
|
||||
}
|
||||
}
|
||||
|
||||
void UIContentImpl::InitDragSummaryMap(const RefPtr<Platform::AceContainer>& container)
|
||||
{
|
||||
auto pipeline = container->GetPipelineContext();
|
||||
if (pipeline && container->IsUIExtensionWindow()) {
|
||||
pipeline->RequireSummary();
|
||||
}
|
||||
}
|
||||
|
||||
void UIContentImpl::Foreground()
|
||||
{
|
||||
LOGI("[%{public}s][%{public}s][%{public}d]: window foreground", bundleName_.c_str(), moduleName_.c_str(),
|
||||
|
@ -345,6 +345,8 @@ private:
|
||||
void InitializeSafeArea(const RefPtr<Platform::AceContainer>& container);
|
||||
void InitializeDisplayAvailableRect(const RefPtr<Platform::AceContainer>& container);
|
||||
|
||||
void InitDragSummaryMap(const RefPtr<Platform::AceContainer>& container);
|
||||
|
||||
RefPtr<PopupParam> CreateCustomPopupParam(bool isShow, const CustomPopupUIExtensionConfig& config);
|
||||
void OnPopupStateChange(const std::string& event, const CustomPopupUIExtensionConfig& config, int32_t nodeId);
|
||||
void SetCustomPopupConfig(int32_t nodeId, const CustomPopupUIExtensionConfig& config, int32_t popupId);
|
||||
|
@ -957,6 +957,8 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void RequireSummary() {}
|
||||
|
||||
void SetPluginOffset(const Offset& offset)
|
||||
{
|
||||
pluginOffset_ = offset;
|
||||
|
@ -3371,6 +3371,16 @@ void PipelineContext::FlushWindowSizeChangeCallback(int32_t width, int32_t heigh
|
||||
}
|
||||
}
|
||||
|
||||
void PipelineContext::RequireSummary()
|
||||
{
|
||||
auto manager = GetDragDropManager();
|
||||
if (!manager) {
|
||||
TAG_LOGW(AceLogTag::ACE_DRAG, "require summary, dragDropManager is null");
|
||||
return;
|
||||
}
|
||||
manager->RequireSummary();
|
||||
}
|
||||
|
||||
void PipelineContext::OnDragEvent(const PointerEvent& pointerEvent, DragEventAction action,
|
||||
const RefPtr<NG::FrameNode>& node)
|
||||
{
|
||||
|
@ -318,6 +318,9 @@ public:
|
||||
}
|
||||
void SetEnableKeyBoardAvoidMode(bool value) override;
|
||||
bool IsEnableKeyBoardAvoidMode() override;
|
||||
|
||||
void RequireSummary() override;
|
||||
|
||||
const RefPtr<SafeAreaManager>& GetSafeAreaManager() const
|
||||
{
|
||||
return safeAreaManager_;
|
||||
|
@ -555,6 +555,7 @@ bool PipelineContext::IsEnableKeyBoardAvoidMode()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
void PipelineContext::RequireSummary() {};
|
||||
void PipelineContext::SetIgnoreViewSafeArea(bool value) {};
|
||||
void PipelineContext::SetIsLayoutFullScreen(bool value) {};
|
||||
void PipelineContext::SetIsNeedAvoidWindow(bool value) {};
|
||||
|
Loading…
Reference in New Issue
Block a user