• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025-2025 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 #ifndef OHOS_JS_FB_WINDOW_MANAGER_H
16 #define OHOS_JS_FB_WINDOW_MANAGER_H
17 
18 #include "js_runtime_utils.h"
19 
20 namespace OHOS {
21 namespace Rosen {
22 napi_value JsFbWindowManagerInit(napi_env env, napi_value exportObj);
23 class JsFbWindowManager {
24 public:
25     JsFbWindowManager();
26     virtual ~JsFbWindowManager();
27     static napi_value CreateFbController(napi_env env, napi_callback_info info);
28     static void Finalizer(napi_env env, void* data, void* hint);
29     static napi_value IsFbEnabled(napi_env env, napi_callback_info info);
30 private:
31     napi_value OnCreateFbController(napi_env env, napi_callback_info info);
32     napi_value NapiSendTask(napi_env env, void* contextPtr);
33     napi_value OnIsFbEnabled(napi_env env, napi_callback_info info);
34 };
35 }
36 }
37 #endif // OHOS_JS_FB_WINDOW_MANAGER_H