• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022-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 I_CONTEXT_H
17 #define I_CONTEXT_H
18 
19 #include "i_delegate_tasks.h"
20 #include "i_device_manager.h"
21 #include "i_drag_manager.h"
22 #include "i_timer_manager.h"
23 
24 namespace OHOS {
25 namespace Msdp {
26 namespace DeviceStatus {
27 struct MouseLocation {
28     int32_t physicalX { 0 };
29     int32_t physicalY { 0 };
30 };
31 
32 class IContext {
33 public:
34     IContext() = default;
35     virtual ~IContext() = default;
36 
37     virtual IDelegateTasks& GetDelegateTasks() = 0;
38     virtual IDeviceManager& GetDeviceManager() = 0;
39     virtual ITimerManager& GetTimerManager() = 0;
40     virtual IDragManager& GetDragManager() = 0;
41 };
42 } // namespace DeviceStatus
43 } // namespace Msdp
44 } // namespace OHOS
45 #endif // I_CONTEXT_H