• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 /**
18  * @addtogroup WindowManager_NativeModule
19  * @{
20  *
21  *
22  * @brief Provides  abilities of windowManager on the native side, such as key event
23  * filtration.
24  *
25  * @since 12
26  */
27 
28 /**
29  * @file oh_window_comm.h
30  *
31  * @brief Provides the comm type definitions of windowManager on the native side.
32  *
33  * @syscap SystemCapability.Window.SessionManager
34  * @library libnative_window_manager.so
35  * @kit ArkUI
36  * @since 12
37  */
38 #ifndef OH_WINDOW_COMM_H
39 #define OH_WINDOW_COMM_H
40 
41 #include "stdint.h"
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /**
48  * @brief Enumerates the result types of the wm interface
49  *
50  * @since 12
51  */
52 typedef enum {
53     /** succ. */
54     OK = 0,
55     /** window id is invaild. */
56     INVAILD_WINDOW_ID = 1000,
57     /** failed. */
58     SERVICE_ERROR = 2000,
59 } WindowManager_ErrorCode;
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif // OH_WINDOW_COMM_H
66 /** @} */