Home
last modified time | relevance | path

Searched refs:buttons (Results 1 - 25 of 61) sorted by relevance

123

/foundation/arkui/ace_engine/advanced_ui_component/popup/interfaces/
H A Dpopup.js203 buttons: x29.buttons
215 buttons: x29.buttons
227 buttons: x29.buttons
247 this.__buttons = new SynchedPropertyObjectOneWayPU(m29.buttons, this, "buttons");
311 if (k29.buttons === undefined) {
361 this.__buttons.reset(j29.buttons);
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js92 this.buttons = undefined;
153 if (h34.buttons !== undefined) {
154 this.buttons = h34.buttons;
282 buttons: this.buttons,
296 buttons: this.buttons,
648 this.buttons = [];
650 this.buttons
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/
H A Ddialog_module.cpp32 const char * const DialogModule::BUTTON_KEY = "buttons";
66 JSIValue buttons = JSI::GetNamedProperty(args[0], BUTTON_KEY); in ShowDialog() local
73 bool result = jsDialog->ShowDialog(thisVal, buttons, successFunc, cancelFunc, completeFunc); in ShowDialog()
79 JSI::ReleaseValueList(buttons, successFunc, cancelFunc, completeFunc); in ShowDialog()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_alert_dialog_ffi.cpp155 properties.buttons.emplace_back(buttonInfo); in ParseButtonObj()
193 CArrNativeAlertDialogButtonOptions buttons, in ParseButtonArray()
196 if (buttons.size <= 0) { in ParseButtonArray()
199 for (int32_t i = 0; i < buttons.size; i++) { in ParseButtonArray()
200 NativeAlertDialogButtonOptions buttonItem = buttons.head[i]; in ParseButtonArray()
207 CArrNativeAlertDialogButtonOptions buttons, in FfiOHOSShowAlertDialogParamWithOptions()
215 // Parse buttons array. in FfiOHOSShowAlertDialogParamWithOptions()
216 ParseButtonArray(properties, buttons, "buttons"); in FfiOHOSShowAlertDialogParamWithOptions()
218 // Parse buttons directio in FfiOHOSShowAlertDialogParamWithOptions()
191 ParseButtonArray( DialogProperties& properties, CArrNativeAlertDialogButtonOptions buttons, const std::string& property) ParseButtonArray() argument
205 FfiOHOSShowAlertDialogParamWithOptions( NativeAlertDialogParam alertDialog, CArrNativeAlertDialogButtonOptions buttons, int32_t buttonDirection) FfiOHOSShowAlertDialogParamWithOptions() argument
[all...]
H A Dcj_alert_dialog_ffi.h78 CArrNativeAlertDialogButtonOptions buttons,
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/prompt/
H A Dcj_prompt_ffi.cpp41 LOGE("Invalid buttons info"); in CheckFrontendLegality()
49 std::vector<ButtonInfo> buttons; in CreateButtonInfoVector() local
52 LOGE("Supports 1 - %{public}d buttons", numMax); in CreateButtonInfoVector()
57 buttons.emplace_back(button); in CreateButtonInfoVector()
59 return buttons; in CreateButtonInfoVector()
95 std::vector<ButtonInfo> buttons = CreateButtonInfoVector(buttonsInfo, size, SHOW_DIALOG_BUTTON_NUM_MAX); in FfiPromptShowDialog() local
102 frontend->ShowDialog(title, message, buttons, std::move(callback), callbacks); in FfiPromptShowDialog()
112 std::vector<ButtonInfo> buttons = CreateButtonInfoVector(buttonsInfo, size, SHOW_ACTION_MENU_BUTTON_NUM_MAX); in FfiPromptShowActionMenu() local
115 frontend->ShowActionMenu(title, buttons, std::move(callback)); in FfiPromptShowActionMenu()
/foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces/
H A Dsegmentbutton.js229 get buttons() {
233 set buttons(val) {
261 this.buttons = new SegmentButtonItemOptionsArray(options.buttons);
264 this.buttons.forEach(button => {
284 buttons: options.buttons,
306 buttons: options.buttons,
1372 if (this.options === void 0 || this.options.buttons
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_pattern.cpp174 UpdatePropertyForElderly(dialogProperties_.buttons); in OnFontConfigurationUpdate()
176 auto buttonContainer = BuildButtons(dialogProperties_.buttons, dialogProperties_.buttonDirection); in OnFontConfigurationUpdate()
180 if (isSuitableForElderly_ && NeedsButtonDirectionChange(dialogProperties_.buttons)) { in OnFontConfigurationUpdate()
182 auto buttonContainerNew = BuildButtons(dialogProperties_.buttons, DialogButtonDirection::VERTICAL); in OnFontConfigurationUpdate()
283 if (btnIndex >= 0 && static_cast<size_t>(btnIndex) < dialogProperties_.buttons.size()) { in RecordEvent()
284 btnText = dialogProperties_.buttons.at(btnIndex).text; in RecordEvent()
412 UpdatePropertyForElderly(props.buttons); in BuildChild()
470 auto menu = BuildMenu(props.buttons, hasTitle); in BuildChild()
474 // build buttons in BuildChild()
475 if (!props.buttons in BuildChild()
835 BuildButtons( const std::vector<ButtonInfo>& buttons, const DialogButtonDirection& direction) BuildButtons() argument
878 AddButtonAndDivider( const std::vector<ButtonInfo>& buttons, const RefPtr<NG::FrameNode>& container, bool isVertical) AddButtonAndDivider() argument
1057 BuildMenu(const std::vector<ButtonInfo>& buttons, bool hasTitle) BuildMenu() argument
1329 UpdatePropertyForElderly(const std::vector<ButtonInfo>& buttons) UpdatePropertyForElderly() argument
1357 NeedsButtonDirectionChange(const std::vector<ButtonInfo>& buttons) NeedsButtonDirectionChange() argument
1753 std::unique_ptr<JsonValue> buttons = JsonUtil::Create(true); DumpObjectProperty() local
1914 std::unique_ptr<JsonValue> buttons = JsonUtil::Create(true); DumpSimplifyObjectProperty() local
[all...]
H A Ddialog_pattern.h351 RefPtr<FrameNode> BuildButtons(const std::vector<ButtonInfo>& buttons, const DialogButtonDirection& direction);
353 const std::vector<ButtonInfo>& buttons, const RefPtr<NG::FrameNode>& container, bool isVertical);
367 RefPtr<FrameNode> BuildMenu(const std::vector<ButtonInfo>& buttons, bool hasTitle);
382 void UpdatePropertyForElderly(const std::vector<ButtonInfo>& buttons);
383 bool NeedsButtonDirectionChange(const std::vector<ButtonInfo>& buttons);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/
H A Dcontainer_modal_pattern.cpp608 bool ContainerModalPattern::GetContainerModalButtonsRect(RectF& containerModal, RectF& buttons) in GetContainerModalButtonsRect() argument
615 TAG_LOGW(AceLogTag::ACE_APPBAR, "Get rect of buttons failed, the rect is measuring."); in GetContainerModalButtonsRect()
635 buttons = firstButtonRect.CombineRectT(lastButtonRect); in GetContainerModalButtonsRect()
636 if (buttons.Width() == 0) { in GetContainerModalButtonsRect()
637 TAG_LOGW(AceLogTag::ACE_APPBAR, "Get rect of buttons failed, buttons are hidden"); in GetContainerModalButtonsRect()
641 auto widthByPx = (TITLE_PADDING_START + TITLE_PADDING_END).ConvertToPx() + buttons.Width(); in GetContainerModalButtonsRect()
644 buttons.SetLeft(0); in GetContainerModalButtonsRect()
646 buttons.SetLeft(containerModal.Width() - widthByPx); in GetContainerModalButtonsRect()
648 buttons in GetContainerModalButtonsRect()
691 RectF buttons; CallButtonsRectChange() local
841 auto buttons = buttonsRow->GetChildren(); InitButtonsLayoutProperty() local
[all...]
H A Dcontainer_modal_pattern.h158 bool GetContainerModalButtonsRect(RectF& containerModal, RectF& buttons);
160 std::function<void(RectF& containerModal, RectF& buttons)>&& callback);
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dalertdialog_composed_element.cpp98 auto confirm = renderDialog->GetDialogProperties().buttons; in GetConfirm()
141 auto primary = renderDialog->GetDialogProperties().buttons; in GetPrimaryButton()
159 auto secondary = renderDialog->GetDialogProperties().buttons; in GetSecondaryButton()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_animation_controller.cpp212 auto buttons = ref->buttons_.Upgrade(); in CreateInOpacityAnimation()
213 if (buttons) { in CreateInOpacityAnimation()
214 buttons->UpdateOpacity(static_cast<uint8_t>(value)); in CreateInOpacityAnimation()
216 LOGW("buttons display is null in picker animation."); in CreateInOpacityAnimation()
295 auto buttons = ref->buttons_.Upgrade(); in CreateOutOpacityAnimation()
296 if (buttons) { in CreateOutOpacityAnimation()
297 buttons->UpdateOpacity(static_cast<uint8_t>(value)); in CreateOutOpacityAnimation()
/foundation/arkui/ace_engine/adapter/ohos/entrance/subwindow/
H A Dsubwindow_ohos.h106 void ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons,
109 void ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
179 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback,
182 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback,
184 void ShowDialogForAbility(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
186 void ShowDialogForService(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
H A Dsubwindow_ohos.cpp1424 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, in ShowDialogForAbility()
1442 delegate->ShowDialog(title, message, buttons, autoCancel, std::move(callback), callbacks); in ShowDialogForAbility()
1446 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, in ShowDialogForService()
1456 auto showDialogCallback = [title, message, &buttons, autoCancel, callbackParam = std::move(callback), in ShowDialogForService()
1483 Platform::DialogContainer::ShowDialog(childContainerId, title, message, buttons, autoCancel, in ShowDialogForService()
1493 void SubwindowOhos::ShowDialogForAbility(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, in ShowDialogForAbility() argument
1510 delegate->ShowDialog(dialogAttr, buttons, std::move(callback), callbacks); in ShowDialogForAbility()
1513 void SubwindowOhos::ShowDialogForService(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, in ShowDialogForService() argument
1523 auto showDialogCallback = [dialogAttr, &buttons, callbackParam = std::move(callback), &callbacks]() { in ShowDialogForService()
1546 Platform::DialogContainer::ShowDialog(childContainerId, dialogAttr, buttons, in ShowDialogForService()
1423 ShowDialogForAbility(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialogForAbility() argument
1445 ShowDialogForService(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialogForService() argument
1556 ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialog() argument
1568 ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialog() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_frontend_abstract.cpp241 const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, in ShowDialog()
244 DialogProperties dialogProperties = { .title = title, .content = message, .buttons = buttons }; in ShowDialog()
290 .buttons = button, in ShowActionMenu()
299 dialogProperties.buttons.emplace_back(buttonInfo); in ShowActionMenuInner()
240 ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialog() argument
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Dfrontend_delegate.h177 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback,
179 virtual void ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, in ShowDialog() argument
182 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, in ShowDialog()
184 virtual void ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, in ShowDialog() argument
206 virtual void ShowActionMenu(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, in ShowActionMenu() argument
181 ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks, std::function<void(bool)>&& onStatusChanged) ShowDialog() argument
/foundation/arkui/ace_engine/test/mock/base/
H A Dmock_subwindow.h71 void(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons,
74 void(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons,
/foundation/arkui/ace_engine_lite/frameworks/src/core/dialog/
H A Djs_dialog.cpp68 JSIValue buttons, in ShowDialog()
92 if (!ParseButton(this, buttons, successFunc, completeFunc, thisVal)) { in ShowDialog()
117 /* parse dialog buttons */ in ParseButton()
122 // support up to 3 buttons in ParseButton()
125 HILOG_WARN(HILOG_MODULE_ACE, "dialog support up to 3 buttons, please check dialog button num"); in ParseButton()
67 ShowDialog(JSIValue thisVal, JSIValue buttons, JSIValue successFunc, JSIValue cancelFunc, JSIValue completeFunc) ShowDialog() argument
H A Djs_dialog.h46 JSIValue buttons,
/foundation/window/window_manager/test/common/mock/
H A Dmock_uicontent.h101 MOCK_METHOD2(GetContainerModalButtonsRect, bool(OHOS::Rosen::Rect& containerModal, OHOS::Rosen::Rect& buttons));
103 void(std::function<void(OHOS::Rosen::Rect& containerModal, OHOS::Rosen::Rect& buttons)>&& callback));
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ng/
H A Dfrontend_delegate_declarative_ng.cpp635 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, in ShowDialog()
644 .buttons = buttons, in ShowDialog()
650 const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, in ShowDialog()
659 .buttons = buttons, in ShowDialog()
666 const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, in ShowDialog()
675 .buttons = buttons, in ShowDialog()
703 const std::vector<ButtonInfo>& buttons, st in ShowDialog()
634 ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialog() argument
649 ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons, bool autoCancel, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks, std::function<void(bool)>&& onStatusChanged) ShowDialog() argument
665 ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks) ShowDialog() argument
702 ShowDialog(const PromptDialogAttr& dialogAttr, const std::vector<ButtonInfo>& buttons, std::function<void(int32_t, int32_t)>&& callback, const std::set<std::string>& callbacks, std::function<void(bool)>&& onStatusChanged) ShowDialog() argument
[all...]
H A Dfrontend_delegate_declarative_ng.h141 void ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons,
144 void ShowDialog(const std::string& title, const std::string& message, const std::vector<ButtonInfo>& buttons,
147 void ShowDialog(const PromptDialogAttr &dialogAttr, const std::vector<ButtonInfo> &buttons,
149 void ShowDialog(const PromptDialogAttr &dialogAttr, const std::vector<ButtonInfo> &buttons,
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_view.h52 static void UpdateBubbleButtons(std::list<RefPtr<UINode>>& buttons, const RefPtr<PopupParam>& param);
/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
H A Ddialog_test_ng.cpp544 props.buttons = btnItems; in HWTEST_F()
546 props.buttons = btnItems; in HWTEST_F()
592 propsCustom.buttons = btnItems; in HWTEST_F()
897 props.buttons = btnItems2; in HWTEST_F()
905 props.buttons = btnItems1; in HWTEST_F()
938 props.buttons = btnItems2; in HWTEST_F()
965 props.buttons = btnItems; in HWTEST_F()
1104 props.buttons = btnItems; in HWTEST_F()
1170 props.buttons = btnItems; in HWTEST_F()
1275 props.buttons in HWTEST_F()
[all...]

Completed in 30 milliseconds

123