1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_ABILITY_RUNTIME_JS_DIALOG_SESSION_UTILS_H 17 #define OHOS_ABILITY_RUNTIME_JS_DIALOG_SESSION_UTILS_H 18 19 #include <map> 20 #include <string> 21 #include <vector> 22 23 #include "js_dialog_session.h" 24 #include "js_runtime_utils.h" 25 #include "native_engine/native_engine.h" 26 #include "dialog_session_manager.h" 27 28 namespace OHOS { 29 namespace AppExecFwk { 30 napi_value WrapArrayDialogAbilityInfoToJS(napi_env env, const std::vector<DialogAbilityInfo> &value); 31 napi_value WrapDialogSessionInfo(napi_env env, const AAFwk::DialogSessionInfo &dialogSessionInfo); 32 napi_value WrapDialogAbilityInfo(napi_env env, const AAFwk::DialogAbilityInfo &dialogAbilityInfo); 33 napi_value WrapMultiAppModeData(napi_env env, const AppExecFwk::MultiAppModeData &multiAppMode); 34 } // namespace AppExecFwk 35 } // namespace OHOS 36 #endif // OHOS_ABILITY_RUNTIME_JS_DIALOG_SESSION_UTILS_H 37