/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef INTERFACES_INNERKITS_WMCLIENT_WINDOW_MANAGER_H #define INTERFACES_INNERKITS_WMCLIENT_WINDOW_MANAGER_H #include #include #include "iscreen_shot_callback.h" #include "iwindow_shot_callback.h" #include "subwindow.h" #include "subwindow_option.h" #include "window.h" #include "window_manager_type.h" #include "window_option.h" #include "virtual_display_option.h" namespace OHOS { class WindowManager : public RefBase { public: static sptr GetInstance(); virtual GSError Init() = 0; virtual GSError GetDisplays(std::vector &displays) const = 0; virtual sptr GetWindowByID(int32_t wid) = 0; virtual GSError CreateWindow(sptr &window, const sptr &option) = 0; virtual GSError CreateSubwindow(sptr &subwindow, const sptr &window, const sptr &option) = 0; virtual GSError ListenNextScreenShot(int32_t id, IScreenShotCallback *cb) = 0; virtual GSError ListenNextWindowShot(const sptr &window, IWindowShotCallback *cb) = 0; virtual GSError CreateVirtualDisplay(const sptr &option) = 0; virtual GSError DestroyVirtualDisplay(uint32_t did) = 0; virtual GSError SetDisplayMode(WMSDisplayMode mode) = 0; }; } // namespace OHOS #endif // INTERFACES_INNERKITS_WMCLIENT_WINDOW_MANAGER_H