Home
last modified time | relevance | path

Searched refs:dialog (Results 1 - 25 of 46) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_dialog.cpp52 [](const std::string& val, DOMDialog& dialog) { in SetSpecializedStyle()
53 dialog.dialogHeight_.first = dialog.ParseDimension(val); in SetSpecializedStyle()
54 dialog.dialogHeight_.second = true; in SetSpecializedStyle()
57 [](const std::string& val, DOMDialog& dialog) { in SetSpecializedStyle()
58 dialog.marginBottom_ = dialog.ParseDimension(val); in SetSpecializedStyle()
59 dialog.customizedMargin_ = true; in SetSpecializedStyle()
62 [](const std::string& val, DOMDialog& dialog) { in SetSpecializedStyle()
63 if (dialog in SetSpecializedStyle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/dialog_tween/
H A Drender_dialog_tween.cpp19 #include "core/components/dialog/dialog_theme.h"
40 auto dialog = weak.Upgrade(); in RenderDialogTween()
41 if (dialog) { in RenderDialogTween()
42 dialog->HandleClick(info.GetLocalLocation()); in RenderDialogTween()
47 auto dialog = weak.Upgrade(); in RenderDialogTween()
48 if (dialog) { in RenderDialogTween()
49 dialog->dragStart_ = startInfo.GetLocalLocation().GetX(); in RenderDialogTween()
50 dialog->dragY_ = startInfo.GetLocalLocation().GetY(); in RenderDialogTween()
51 dialog->dragX_ = startInfo.GetLocalLocation().GetX(); in RenderDialogTween()
52 dialog in RenderDialogTween()
109 const RefPtr<DialogTweenComponent> dialog = AceType::DynamicCast<DialogTweenComponent>(component); Update() local
159 BindButtonEvent(const RefPtr<DialogTweenComponent>& dialog) BindButtonEvent() argument
[all...]
H A Ddialog_tween_element.cpp93 const auto& dialog = AceType::DynamicCast<RenderDialogTween>(renderNode_); in OnKeyEvent() local
94 if (dialog) { in OnKeyEvent()
95 return dialog->PopDialog(); in OnKeyEvent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_view.cpp15 #include "core/components_ng/pattern/dialog/dialog_view.h"
17 #include "core/components_ng/pattern/dialog/dialog_pattern.h"
44 RefPtr<FrameNode> dialog = FrameNode::CreateFrameNode(tag, nodeId, in CreateDialogNode() local
52 auto dialogLayoutProp = AceType::DynamicCast<DialogLayoutProperty>(dialog->GetLayoutProperty()); in CreateDialogNode()
53 CHECK_NULL_RETURN(dialogLayoutProp, dialog); in CreateDialogNode()
75 auto dialogContext = dialog->GetRenderContext(); in CreateDialogNode()
76 CHECK_NULL_RETURN(dialogContext, dialog); in CreateDialogNode()
77 auto pattern = dialog->GetPattern<DialogPattern>(); in CreateDialogNode()
78 CHECK_NULL_RETURN(pattern, dialog); in CreateDialogNode()
92 auto hub = dialog in CreateDialogNode()
[all...]
H A Dcustom_dialog_controller_model_ng.cpp15 #include "core/components_ng/pattern/dialog/custom_dialog_controller_model_ng.h"
65 RefPtr<NG::FrameNode> dialog; in ParseOpenDialogTask()
82 dialog = SubwindowManager::GetInstance()->ShowDialogNG(dialogProperties, std::move(func)); in ParseOpenDialogTask()
83 CHECK_NULL_VOID(dialog); in ParseOpenDialogTask()
88 TAG_LOGW(AceLogTag::ACE_DIALOG, "fail to set mask dialog."); in ParseOpenDialogTask()
91 overlayManager->SetMaskNodeId(dialog->GetId(), mask->GetId()); in ParseOpenDialogTask()
94 dialog = overlayManager->ShowDialog(dialogProperties, std::move(func), false); in ParseOpenDialogTask()
96 if (!dialog) { in ParseOpenDialogTask()
97 TAG_LOGE(AceLogTag::ACE_DIALOG, "fail to show dialog."); in ParseOpenDialogTask()
100 dialogs.emplace_back(dialog); in ParseOpenDialogTask()
122 RefPtr<NG::FrameNode> dialog; SetOpenDialogWithNode() local
[all...]
H A Dalert_dialog_model_ng.cpp16 #include "core/components_ng/pattern/dialog/alert_dialog_model_ng.h"
23 #include "core/components_ng/pattern/dialog/dialog_pattern.h"
62 RefPtr<NG::FrameNode> dialog; in SetShowDialog()
70 dialog = SubwindowManager::GetInstance()->ShowDialogNG(arg, nullptr); in SetShowDialog()
71 CHECK_NULL_VOID(dialog); in SetShowDialog()
79 overlayManager->SetMaskNodeId(dialog->GetId(), mask->GetId()); in SetShowDialog()
83 dialog = overlayManager->ShowDialog(arg, nullptr, false); in SetShowDialog()
84 CHECK_NULL_VOID(dialog); in SetShowDialog()
89 auto hub = dialog->GetEventHub<NG::DialogEventHub>(); in SetShowDialog()
91 auto pattern = dialog in SetShowDialog()
[all...]
H A Ddialog_layout_algorithm.h28 #include "core/components/dialog/dialog_theme.h"
30 #include "core/components_ng/pattern/dialog/dialog_layout_property.h"
77 void ProcessMaskRect(std::optional<DimensionRect> maskRect, const RefPtr<FrameNode>& dialog, bool isMask = false);
80 std::optional<DimensionRect> GetMaskRect(const RefPtr<FrameNode>& dialog);
93 void ClipUIExtensionSubWindowContent(const RefPtr<FrameNode>& dialog, bool isClip);
/foundation/arkui/ace_engine/frameworks/core/components/dialog/
H A Ddialog_element.cpp16 #include "core/components/dialog/dialog_element.h"
18 #include "core/components/dialog/render_dialog.h"
25 RefPtr<DialogComponent> dialog = AceType::DynamicCast<DialogComponent>(component_); in PerformBuild() local
26 if (!dialog) { in PerformBuild()
29 dialogId_ = dialog->GetDialogId(); in PerformBuild()
30 dialog->BuildChild(GetThemeManager()); in PerformBuild()
32 UpdateChild(child, dialog->GetChild()); in PerformBuild()
33 const auto& animator = dialog->GetAnimator(); in PerformBuild()
H A Ddialog_component.cpp16 #include "core/components/dialog/dialog_component.h"
19 #include "core/components/dialog/action_sheet/action_sheet_component.h"
20 #include "core/components/dialog/alert_dialog_component.h"
21 #include "core/components/dialog/dialog_element.h"
22 #include "core/components/dialog/render_dialog.h"
329 if (actions_.size() == 1) { // the button in dialog is one. in BuildActions()
336 } else if (actions_.size() == 2) { // the button in dialog is two. in BuildActions()
346 } else { // the button in dialog is more than two. in BuildActions()
584 auto dialog = BuildDialogWithType(dialogProperties.type); in Build() local
585 dialog in Build()
636 RefPtr<DialogComponent> dialog; BuildDialogWithType() local
657 BuildTitleAndContent(const RefPtr<DialogComponent>& dialog, const DialogProperties& dialogProperties, const RefPtr<DialogTheme>& dialogTheme, std::string& data) BuildTitleAndContent() argument
689 BuildButtons(const RefPtr<ThemeManager>& themeManager, const RefPtr<DialogComponent>& dialog, const std::vector<ButtonInfo>& buttons, const RefPtr<DialogTheme>& dialogTheme, std::string& data) BuildButtons() argument
765 BuildButtonsForWatch( const RefPtr<ThemeManager>& themeManager, const RefPtr<DialogComponent>& dialog, std::string& data) BuildButtonsForWatch() argument
[all...]
H A Drender_dialog.cpp16 #include "core/components/dialog/render_dialog.h"
22 auto dialog = AceType::DynamicCast<DialogComponent>(component); in Update() local
23 properties_ = dialog->GetDialogProperties(); in Update()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dalertdialog_composed_element.cpp101 for (const auto &dialog : confirm) { in GetConfirm()
103 item->Put("value", dialog.text.c_str()); in GetConfirm()
104 item->Put("fontColor", dialog.textColor.c_str()); in GetConfirm()
105 item->Put("backgroundColor", ConvertColorToString(dialog.bgColor).c_str()); in GetConfirm()
144 for (const auto &dialog : primary) { in GetPrimaryButton()
146 item->Put("value", dialog.text.c_str()); in GetPrimaryButton()
147 item->Put("fontColor", dialog.textColor.c_str()); in GetPrimaryButton()
148 item->Put("backgroundColor", ConvertColorToString(dialog.bgColor).c_str()); in GetPrimaryButton()
162 for (const auto &dialog : secondary) { in GetSecondaryButton()
164 item->Put("value", dialog in GetSecondaryButton()
[all...]
H A Dactionsheetdialog_composed_element.cpp100 for (const auto &dialog : confirm) { in GetConfirm()
102 item->Put("value", dialog.text.c_str()); in GetConfirm()
103 item->Put("fontColor", dialog.textColor.c_str()); in GetConfirm()
104 item->Put("backgroundColor", ConvertColorToString(dialog.bgColor).c_str()); in GetConfirm()
/foundation/arkui/ace_engine/frameworks/core/components/custom_dialog/
H A Dcustom_dialog_element.cpp18 #include "core/components/dialog/dialog_component.h"
37 auto dialog = weak.Upgrade(); in PerformBuild()
38 if (dialog) { in PerformBuild()
39 dialog->ShowDialog(); in PerformBuild()
40 if (dialog->onShow_) { in PerformBuild()
41 dialog->onShow_(); in PerformBuild()
46 auto dialog = weak.Upgrade(); in PerformBuild()
47 if (dialog) { in PerformBuild()
48 dialog->CloseDialog(); in PerformBuild()
49 if (dialog in PerformBuild()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
H A Doverlay_dialog_transition_test_ng.cpp38 #include "core/components/dialog/dialog_properties.h"
39 #include "core/components/dialog/dialog_theme.h"
50 #include "core/components_ng/pattern/dialog/dialog_event_hub.h"
51 #include "core/components_ng/pattern/dialog/dialog_pattern.h"
248 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); in HWTEST_F() local
249 ASSERT_NE(dialog, nullptr); in HWTEST_F()
252 * @tc.steps: step3. get transitionEffect from dialog. in HWTEST_F()
255 auto dialogPattern = dialog->GetPattern<DialogPattern>(); in HWTEST_F()
286 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); in HWTEST_F() local
287 ASSERT_NE(dialog, nullpt in HWTEST_F()
331 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
382 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
438 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
494 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
550 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
607 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
664 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
726 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
785 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
850 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
901 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
970 auto dialog = overlayManager->ShowDialog(dialogProperties, nullptr, false); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/action_sheet/
H A Daction_sheet_model_ng.cpp34 RefPtr<NG::FrameNode> dialog; in ShowActionSheet() local
36 dialog = SubwindowManager::GetInstance()->ShowDialogNG(arg, nullptr); in ShowActionSheet()
37 CHECK_NULL_VOID(dialog); in ShowActionSheet()
46 overlayManager->SetMaskNodeId(dialog->GetId(), mask->GetId()); in ShowActionSheet()
49 dialog = overlayManager->ShowDialog(arg, nullptr, false); in ShowActionSheet()
50 CHECK_NULL_VOID(dialog); in ShowActionSheet()
/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
H A Ddialog_test_ng.cpp27 #include "core/components/dialog/dialog_properties.h"
29 #include "core/components_ng/pattern/dialog/dialog_event_hub.h"
30 #include "core/components_ng/pattern/dialog/dialog_layout_algorithm.h"
31 #include "core/components_ng/pattern/dialog/custom_dialog_controller_model_ng.h"
32 #include "core/components_ng/pattern/dialog/dialog_pattern.h"
33 #include "core/components_ng/pattern/dialog/dialog_view.h"
160 .title = "dialog test",
161 .content = "dialog content test",
166 .title = "dialog test",
167 .subtitle = "subtitle dialog tes
382 RefPtr<FrameNode> dialog = FrameNode::CreateFrameNode( HWTEST_F() local
412 RefPtr<FrameNode> dialog = FrameNode::CreateFrameNode( HWTEST_F() local
445 RefPtr<FrameNode> dialog = FrameNode::CreateFrameNode( HWTEST_F() local
474 RefPtr<FrameNode> dialog = FrameNode::CreateFrameNode( HWTEST_F() local
548 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
633 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
907 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
940 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
966 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1021 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1064 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1111 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1185 auto dialog = overlayManager->ShowDialog(props, nullptr); HWTEST_F() local
1292 auto dialog = overlayManager->ShowDialog(props, nullptr); HWTEST_F() local
1787 auto dialog = DialogView::CreateDialogNode(dialogProps, nullptr); HWTEST_F() local
1849 auto dialog = DialogView::CreateDialogNode(param, nullptr); HWTEST_F() local
1918 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1980 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
2035 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
2368 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
[all...]
H A Ddialog_model_test_ng.cpp26 #include "core/components/dialog/dialog_properties.h"
29 #include "core/components_ng/pattern/dialog/alert_dialog_model_ng.h"
30 #include "core/components_ng/pattern/dialog/custom_dialog_controller_model_ng.h"
31 #include "core/components_ng/pattern/dialog/dialog_event_hub.h"
32 #include "core/components_ng/pattern/dialog/dialog_layout_algorithm.h"
33 #include "core/components_ng/pattern/dialog/dialog_pattern.h"
34 #include "core/components_ng/pattern/dialog/dialog_view.h"
363 * @tc.steps: step1. Create the dialog node. in HWTEST_F()
368 auto dialog = in HWTEST_F() local
370 ASSERT_NE(dialog, nullpt in HWTEST_F()
465 auto dialog = DialogView::CreateDialogNode(dialogProps, nullptr); HWTEST_F() local
509 auto dialog = overlayManager->ShowDialog(dialogProps, nullptr, false); HWTEST_F() local
1031 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1082 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1121 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1164 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1184 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1197 DimensionRect(DIMENSION_NEGATIVE, DIMENSION_NEGATIVE, DimensionOffset()), dialog, false); HWTEST_F() local
1202 layoutAlgorithm->ProcessMaskRect(DimensionRect(DIMENSION_SIZE, DIMENSION_SIZE, DimensionOffset()), dialog, true); HWTEST_F() local
1216 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1286 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
1398 auto dialog = DialogView::CreateDialogNode(props, nullptr); HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/message_handle/test/
H A Dinject_notice_manager_test.cpp57 AuthorizationDialog dialog; in HWTEST_F() local
58 EXPECT_FALSE(dialog.ConnectSystemUi()); in HWTEST_F()
102 AuthorizationDialog dialog; in HWTEST_F() local
103 ASSERT_NE(dialog.dialogConnectionCallback_, nullptr); in HWTEST_F()
104 bool ret = dialog.ConnectSystemUi(); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_frontend_abstract.cpp261 RefPtr<NG::FrameNode> dialog; in ShowDialogInner()
262 LOGI("Begin to show dialog "); in ShowDialogInner()
264 dialog = SubwindowManager::GetInstance()->ShowDialogNG(dialogProperties, nullptr); in ShowDialogInner()
265 CHECK_NULL_VOID(dialog); in ShowDialogInner()
272 overlayManager->SetMaskNodeId(dialog->GetId(), mask->GetId()); in ShowDialogInner()
275 dialog = overlayManager->ShowDialog( in ShowDialogInner()
277 CHECK_NULL_VOID(dialog); in ShowDialogInner()
311 RefPtr<NG::FrameNode> dialog; in ShowActionMenuInner()
313 dialog = SubwindowManager::GetInstance()->ShowDialogNG(dialogProperties, nullptr); in ShowActionMenuInner()
314 CHECK_NULL_VOID(dialog); in ShowActionMenuInner()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/
H A Ddialog_modal_element.cpp129 auto dialog = weak.Upgrade(); in RegisterTransitionListener()
130 if (!dialog) { in RegisterTransitionListener()
131 LOGE("Handle transition event failed. dialog is null."); in RegisterTransitionListener()
134 auto dialogRender = AceType::DynamicCast<RenderDialogModal>(dialog->GetRenderNode()); in RegisterTransitionListener()
136 LOGE("Handle transition event failed. dialog render is null."); in RegisterTransitionListener()
152 auto dialog = weak.Upgrade(); in RegisterTransitionListener()
153 if (dialog) { in RegisterTransitionListener()
154 dialog->AnimateToEnterApp(); in RegisterTransitionListener()
200 LOGE("Create origin animation failed. dialog Render is null."); in CreateOriginAnimation()
259 LOGE("Handle dialog moda in AnimateToExitApp()
[all...]
H A Drender_dialog_modal.cpp141 auto dialog = weak.Upgrade(); in AnimateTo()
142 if (!dialog) { in AnimateTo()
145 dialog->lastAnimateFrame_ = true; in AnimateTo()
/foundation/arkui/ace_engine_lite/frameworks/src/core/dialog/
H A Djs_dialog.cpp76 HILOG_ERROR(HILOG_MODULE_ACE, "create ui dialog failed, return "); in ShowDialog()
83 // set dialog dismiss listener in ShowDialog()
86 HILOG_ERROR(HILOG_MODULE_ACE, "create dialog dismissListener_ is nullptr, return nullptr."); in ShowDialog()
91 // parser dialog button and set button listenr in ShowDialog()
93 HILOG_ERROR(HILOG_MODULE_ACE, "parse dialog button error"); in ShowDialog()
98 // show dialog in ShowDialog()
113 UIDialog *dialog = const_cast<UIDialog *>(jsDialog->GetUIDialog()); in ParseButton() local
114 if (dialog == nullptr) { in ParseButton()
117 /* parse dialog buttons */ in ParseButton()
125 HILOG_WARN(HILOG_MODULE_ACE, "dialog suppor in ParseButton()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dp2p_state_machine.cpp696 AlertDialog &dialog = AbstractUI::GetInstance().Build(); in NotifyUserInvitationSentMessage() local
698 dialog.SetTitle("Invitation Sent"); in NotifyUserInvitationSentMessage()
699 dialog.SetMessage(message); in NotifyUserInvitationSentMessage()
700 dialog.SetButton("OK", event, nullptr); in NotifyUserInvitationSentMessage()
701 AbstractUI::GetInstance().ShowAlerDialog(dialog); in NotifyUserInvitationSentMessage()
715 AlertDialog &dialog = AbstractUI::GetInstance().Build(); in NotifyUserProvDiscShowPinRequestMessage() local
717 dialog.SetMessage(message); in NotifyUserProvDiscShowPinRequestMessage()
718 dialog.SetTitle("Invitation Sent"); in NotifyUserProvDiscShowPinRequestMessage()
720 dialog.SetButton("accepts", acceptEvent, nullptr); in NotifyUserProvDiscShowPinRequestMessage()
721 AbstractUI::GetInstance().ShowAlerDialog(dialog); in NotifyUserProvDiscShowPinRequestMessage()
747 AlertDialog &dialog = AbstractUI::GetInstance().Build(); NotifyUserInvitationReceivedMessage() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/stack/
H A Dstack_element.cpp19 #include "core/components/dialog/dialog_component.h"
20 #include "core/components/dialog/dialog_element.h"
501 auto dialog = AceType::DynamicCast<DialogComponent>(componentInfo.component); in CreateInspectorComponent() local
502 if (!dialog) { in CreateInspectorComponent()
505 auto inspectorTag = dialog->GetInspectorTag(); in CreateInspectorComponent()
562 auto dialog = DynamicCast<DialogTweenElement>(element); in GetDialog() local
563 if (dialog) { in GetDialog()
564 return dialog; in GetDialog()
/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_raisetoapptop_test.cpp113 * @tc.desc: to raise to app top, with dialog
146 fullInfo_.name = "dialog.2"; in HWTEST_F()
149 sptr<Window> dialog = Utils::CreateTestWindow(fullInfo_); in HWTEST_F() local
150 ASSERT_NE(nullptr, dialog); in HWTEST_F()
151 activeWindows_.push_back(dialog); in HWTEST_F()
152 ASSERT_EQ(WMError::WM_OK, dialog->Show()); in HWTEST_F()

Completed in 17 milliseconds

12