1 /* 2 * Copyright (c) 2022 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 #include "base/subwindow/subwindow_manager.h" 17 namespace OHOS::Ace { 18 std::shared_ptr<SubwindowManager> SubwindowManager::instance_; 19 GetInstance()20std::shared_ptr<SubwindowManager> SubwindowManager::GetInstance() 21 { 22 if (!instance_) { 23 instance_ = std::make_shared<SubwindowManager>(); 24 } 25 return instance_; 26 } 27 HidePopupNG(int32_t targetId)28void SubwindowManager::HidePopupNG(int32_t targetId) 29 { 30 LOGI("SubwindowManager::HidePopupNG MOCK"); 31 } 32 ShowPopupNG(int32_t targetId,const NG::PopupInfo & popupInfo)33void SubwindowManager::ShowPopupNG(int32_t targetId, const NG::PopupInfo& popupInfo) {} 34 HideMenuNG(int32_t targetId)35void SubwindowManager::HideMenuNG(int32_t targetId) {} 36 HideMenuNG()37void SubwindowManager::HideMenuNG() {} 38 SetHotAreas(const std::vector<Rect> & rects)39void SubwindowManager::SetHotAreas(const std::vector<Rect>& rects) {} 40 } // namespace OHOS::Ace