/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/select_overlay/ |
H A D | select_overlay_test_ng.cpp | 4345 info.menuInfo.showCopy = true; 4346 info.menuInfo.showPaste = true; 4347 info.menuInfo.showCut = true; 4365 info.menuInfo.showCopy = false; 4367 info.menuInfo.showCut = false; 4385 info.menuInfo.showCopy = true; 4387 info.menuInfo.showCut = true; 4405 info.menuInfo.showCopy = false; 4407 info.menuInfo.showCut = false; 4427 info.menuInfo.showCut = false; [all …]
|
H A D | select_overlay_paint_method_test_ng.cpp | 430 selectInfo.menuInfo.showCut = false; 489 selectInfo.menuInfo.showCut = false; 550 selectInfo.menuInfo.showCut = false; 608 selectInfo.menuInfo.showCut = false; 673 selectInfo.menuInfo.showCut = false; 734 selectInfo.menuInfo.showCut = false; 797 selectInfo.menuInfo.showCut = false; 860 selectInfo.menuInfo.showCut = false; 923 selectInfo.menuInfo.showCut = false; 987 selectInfo.menuInfo.showCut = false; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/select_overlay/ |
H A D | select_overlay_client.cpp | 107 originIsMenuShow_ = overlayInfo->menuInfo.menuIsShow; in CreateSelectOverlay() 139 overlayInfo.menuInfo.singleHandleMenuIsShow = overlayInfo.menuInfo.menuIsShow; in GetSelectOverlayInfo() 166 …proxy->UpdateSelectMenuInfo([newMenuInfo = selectOverlayInfo->menuInfo](SelectMenuInfo& menuInfo) { in UpdateShowingSelectOverlay() argument 167 menuInfo.showPaste = newMenuInfo.showPaste; in UpdateShowingSelectOverlay() 168 menuInfo.showCopyAll = newMenuInfo.showCopyAll; in UpdateShowingSelectOverlay() 175 …proxy->UpdateSelectMenuInfo([newMenuInfo = selectOverlayInfo->menuInfo](SelectMenuInfo& menuInfo) { in UpdateShowingSelectOverlay() argument 176 menuInfo.showPaste = newMenuInfo.showPaste; in UpdateShowingSelectOverlay() 177 menuInfo.showCopyAll = newMenuInfo.showCopyAll; in UpdateShowingSelectOverlay() 178 menuInfo.showCopy = newMenuInfo.showCopy; in UpdateShowingSelectOverlay() 179 menuInfo.showCut = newMenuInfo.showCut; in UpdateShowingSelectOverlay() [all …]
|
H A D | select_overlay_proxy.h | 45 void UpdateSelectMenuInfo(std::function<void(SelectMenuInfo& menuInfo)> updateAction) const;
|
H A D | select_overlay_proxy.cpp | 69 void SelectOverlayProxy::UpdateSelectMenuInfo(std::function<void(SelectMenuInfo& menuInfo)> updateA… in UpdateSelectMenuInfo()
|
H A D | select_overlay_manager.cpp | 249 if (selectOverlayInfo_.menuInfo.IsIconChanged(info.menuInfo)) { in IsSameSelectOverlayInfo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/ |
H A D | web_context_select_overlay.cpp | 65 void WebContextSelectOverlay::OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dir… in OnUpdateMenuInfo() argument 73 menuInfo.showCopyAll = true; in OnUpdateMenuInfo() 77 menuInfo.showCopy = hasText_ || hasImage_; in OnUpdateMenuInfo() 78 menuInfo.showCut = false; in OnUpdateMenuInfo() 79 menuInfo.showPaste = false; in OnUpdateMenuInfo() 80 menuInfo.menuIsShow = IsShowMenu(); in OnUpdateMenuInfo() 81 menuInfo.showCameraInput = false; in OnUpdateMenuInfo() 168 selectInfo.menuInfo.responseType = static_cast<int32_t>(TextResponseType::RIGHT_CLICK); in OnUpdateSelectOverlayInfo() 169 selectInfo.menuInfo.editorType = static_cast<int32_t>(TextSpanType::MIXED); in OnUpdateSelectOverlayInfo()
|
H A D | web_context_select_overlay.h | 47 void OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirtyFlag) override;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_pattern.cpp | 252 if (!info_->menuInfo.menuDisable) { in HandleOnClick() 253 info_->menuInfo.menuIsShow = !info_->menuInfo.menuIsShow; in HandleOnClick() 258 info_->menuInfo.singleHandleMenuIsShow = info_->menuInfo.menuIsShow; in HandleOnClick() 323 if (info_->menuInfo.menuIsShow) { in HandlePanStart() 324 info_->menuInfo.menuIsShow = false; in HandlePanStart() 388 if (!info_->menuInfo.menuIsShow) { in HandlePanEnd() 574 info_->menuInfo = info; in UpdateSelectMenuInfo() 602 info_->menuInfo.menuIsShow = false; in ShowOrHiddenMenu() 607 info_->menuInfo.menuIsShow = true; in ShowOrHiddenMenu() 614 info_->menuInfo.menuDisable = isDisabled; in DisableMenu() [all …]
|
H A D | select_overlay_node.cpp | 685 if (!info->menuInfo.showCut) { in SetOptionsAction() 688 if (!info->menuInfo.showCopy) { in SetOptionsAction() 691 if (!info->menuInfo.showPaste) { in SetOptionsAction() 851 info->menuInfo.menuBuilder(); in CreateCustomSelectMenu() 1341 if (info->menuInfo.menuBuilder) { in CreateToolBar() 1477 if (info->menuInfo.showCut) { in ShowCut() 1497 if (info->menuInfo.showCopy) { in ShowCopy() 1518 if (info->menuInfo.showPaste) { in ShowPaste() 1804 if (info->menuInfo.menuDisable || !info->menuInfo.menuIsShow) { in MenuOnlyStatusChange() 1843 if (info->menuInfo.menuDisable || !info->menuInfo.menuIsShow) { in UpdateToolBar() [all …]
|
H A D | select_overlay_layout_algorithm.cpp | 78 if (info_->menuInfo.menuBuilder) { in MeasureChild() 204 if (info_->menuInfo.menuBuilder) { in LayoutChild() 214 …if ((!info_->menuInfo.menuIsShow || info_->menuInfo.menuDisable) && mode != SelectOverlayMode::MEN… in LayoutChild() 326 …singleHandle = RectF(info_->menuInfo.menuOffset.value().GetX(), info_->menuInfo.menuOffset.value()… in ComputeSelectMenuPosition() 482 if ((!upHandle.isShow && downHandle.isShow) || info_->menuInfo.menuBuilder) { in AdjustSelectMenuOffset() 615 …return info_->menuInfo.menuOffset.has_value() && (!info_->firstHandle.isShow || !info_->secondHand… in IsTextAreaSelectAll()
|
H A D | select_overlay_pattern.h | 100 void UpdateSelectMenuInfo(std::function<void(SelectMenuInfo& menuInfo)> updateAction); 172 return info_ && info_->menuInfo.menuBuilder != nullptr; in IsCustomMenu()
|
H A D | select_overlay_paint_method.h | 48 if (info_.menuInfo.menuBuilder) { in GetOverlayModifier()
|
H A D | select_overlay_property.h | 295 SelectMenuInfo menuInfo; member
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_select_overlay.cpp | 250 void TextFieldSelectOverlay::OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirt… in OnUpdateMenuInfo() argument 260 menuInfo.showCopyAll = hasText && !pattern->IsSelectAll(); in OnUpdateMenuInfo() 276 menuInfo.menuIsShow = !isHideSelectionMenu || manager->IsOpen(); in OnUpdateMenuInfo() 278 menuInfo.menuIsShow = (hasText || IsShowPaste() || menuInfo.showCameraInput) && in OnUpdateMenuInfo() 281 menuInfo.menuDisable = isHideSelectionMenu; in OnUpdateMenuInfo() 282 menuInfo.showPaste = IsShowPaste(); in OnUpdateMenuInfo() 283 menuInfo.menuType = IsUsingMouse() ? OptionMenuType::MOUSE_MENU : OptionMenuType::TOUCH_MENU; in OnUpdateMenuInfo() 284 menuInfo.showCopy = hasText && pattern->AllowCopy() && pattern->IsSelected(); in OnUpdateMenuInfo() 285 menuInfo.showCut = menuInfo.showCopy; in OnUpdateMenuInfo() 286 menuInfo.showCopyAll = hasText && !pattern->IsSelectAll(); in OnUpdateMenuInfo() [all …]
|
H A D | text_field_select_overlay.h | 54 void OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirtyFlag) override;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/select_content_overlay/ |
H A D | select_content_overlay_manager.cpp | 120 if (!info.menuInfo.menuIsShow && info.isUsingMouse) { in Show() 128 … if (info.recreateOverlay || info.menuInfo.menuType != shareOverlayInfo_->menuInfo.menuType) { in Show() 174 SelectMenuInfo menuInfo; in UpdateStatusInfos() local 176 overlayInfo.menuInfo = menuInfo; in UpdateStatusInfos() 274 menuPattern->UpdateMenuInfo(info.menuInfo); in UpdateExistOverlay() 361 SelectMenuInfo menuInfo; in MarkInfoChange() local 363 menuPattern->UpdateSelectMenuInfo(menuInfo); in MarkInfoChange() 369 oldMenuInfo.showCopyAll = menuInfo.showCopyAll; in MarkInfoChange() 370 oldMenuInfo.showCopy = menuInfo.showCopy; in MarkInfoChange() 618 auto menuType = shareOverlayInfo_->menuInfo.menuType; in CloseInternal() [all …]
|
H A D | select_overlay_holder.h | 74 virtual void OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirtyFlag) {} in OnUpdateMenuInfo() argument
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_content_overlay/ |
H A D | select_content_overlay_pattern.cpp | 27 if (info_->menuInfo.menuIsShow == menuIsShow) { in UpdateMenuIsShow() 34 info_->menuInfo.menuIsShow = menuIsShow; in UpdateMenuIsShow() 42 auto itemChanged = info_->menuInfo.IsIconChanged(info); in UpdateMenuInfo() 43 info_->menuInfo = info; in UpdateMenuInfo() 90 return info_->menuInfo; in GetSelectMenuInfo() 227 if (info_->menuInfo.menuIsShow && selectArea.IsEmpty()) { in UpdateSelectArea()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_select_overlay.cpp | 268 void RichEditorSelectOverlay::OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dir… in OnUpdateMenuInfo() argument 273 menuInfo.showCopyAll = !pattern->IsSelectAll() && hasValue; in OnUpdateMenuInfo() 278 menuInfo.showCopy = isShowItem && hasValue && !pattern->textSelector_.SelectNothing(); in OnUpdateMenuInfo() 279 menuInfo.showCut = isShowItem && hasValue && !pattern->textSelector_.SelectNothing(); in OnUpdateMenuInfo() 280 menuInfo.showPaste = IsShowPaste(); in OnUpdateMenuInfo() 281 menuInfo.menuIsShow = IsShowMenu(); in OnUpdateMenuInfo() 282 menuInfo.showAIWrite = pattern->IsShowAIWrite() && hasValue; in OnUpdateMenuInfo() 283 pattern->UpdateSelectMenuInfo(menuInfo); in OnUpdateMenuInfo() 312 selectInfo.menuInfo.responseType = static_cast<int32_t>(responseType); in OnUpdateSelectOverlayInfo() 313 selectInfo.menuInfo.editorType = static_cast<int32_t>(pattern->GetEditorType()); in OnUpdateSelectOverlayInfo()
|
H A D | rich_editor_select_overlay.h | 42 void OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirtyFlag) override;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_select_overlay.cpp | 316 void TextSelectOverlay::OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirtyFlag) in OnUpdateMenuInfo() argument 320 menuInfo.showCopyAll = !textPattern->IsSelectAll(); in OnUpdateMenuInfo() 321 menuInfo.showCopy = !textPattern->GetTextSelector().SelectNothing(); in OnUpdateMenuInfo() 325 menuInfo.menuIsShow = IsShowMenu(); in OnUpdateMenuInfo() 326 menuInfo.showCut = false; in OnUpdateMenuInfo() 327 menuInfo.showPaste = false; in OnUpdateMenuInfo()
|
H A D | text_select_overlay.h | 48 void OnUpdateMenuInfo(SelectMenuInfo& menuInfo, SelectOverlayDirtyFlag dirtyFlag) override;
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_field_pattern_testfour.cpp | 180 soi.menuInfo.menuIsShow = true; 181 soi.menuInfo.menuType = OptionMenuType::MOUSE_MENU; 518 soi.menuInfo.menuIsShow = true; 519 soi.menuInfo.menuType = OptionMenuType::MOUSE_MENU;
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | text_test_ng.cpp | 3119 SelectMenuInfo menuInfo; variable 3121 textSelectOverlay->OnUpdateMenuInfo(menuInfo, DIRTY_COPY_ALL_ITEM); 3122 ASSERT_EQ(menuInfo.showCut, true); 3124 textSelectOverlay->OnUpdateMenuInfo(menuInfo, DIRTY_FIRST_HANDLE); 3125 ASSERT_EQ(menuInfo.showCut, false); 3697 EXPECT_EQ(selectInfo.menuInfo.menuIsShow, false);
|