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_WINDOW_SCENE_CONFIG_H
17 #define OHOS_WINDOW_SCENE_CONFIG_H
18 
19 #include <js_runtime_utils.h>
20 #include <native_engine/native_engine.h>
21 #include <native_engine/native_value.h>
22 
23 #include "interfaces/include/ws_common.h"
24 #include "window_session_property.h"
25 namespace OHOS::Rosen {
26 
27 class JsWindowSceneConfig {
28 public:
29     JsWindowSceneConfig();
30     ~JsWindowSceneConfig();
31     static napi_value CreateWindowSceneConfig(napi_env env, const AppWindowSceneConfig& config);
32     static napi_value CreateFreeMultiWindowConfig(napi_env env, const SystemSessionConfig& config);
33     static napi_value CreateSystemConfig(napi_env env, const SystemSessionConfig& config);
34 
35 private:
36     static napi_value CreateShadowValue(napi_env env, const AppWindowSceneConfig& config, bool focused);
37     static napi_value CreateKeyboardAnimationValue(napi_env env, const KeyboardSceneAnimationConfig& config);
38     static napi_value CreateWindowAnimationValue(napi_env env, const AppWindowSceneConfig& config);
39     static napi_value CreateSystemUIStatusBarValue(napi_env env, const SystemUIStatusBarConfig& config);
40     static napi_value CreateWindowStatusBar(napi_env env, const StatusBarConfig& config);
41 };
42 } // namespace OHOS::Rosen
43 
44 #endif // OHOS_WINDOW_SCENE_CONFIG_H
45