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 "frame_window_mgr.h" 17 #include <iosfwd> 18 #include <string> 19 #include "rme_log_domain.h" 20 21 #undef LOG_TAG 22 #define LOG_TAG "ueaClient-FrameWindowMgr" 23 24 namespace OHOS { 25 namespace RME { 26 namespace { 27 const std::string SCHEME_SWITCH_PROP = ""; // to add prop 28 } 29 30 IMPLEMENT_SINGLE_INSTANCE(FrameWindowMgr); 31 GetEnable()32int FrameWindowMgr::GetEnable() 33 { 34 if (m_enable == -1) { 35 m_enable = 1; 36 RME_LOGI("[GetEnable]: m_enable: %{public}d", m_enable); 37 } 38 return m_enable; 39 } 40 SetStartFlag(bool flag)41void FrameWindowMgr::SetStartFlag(bool flag) 42 { 43 if (flag) { 44 RME_LOGI("fling start"); 45 } else { 46 RME_LOGI("fling end"); 47 } 48 m_startFlag = flag; 49 } 50 GetStartFlag()51bool FrameWindowMgr::GetStartFlag() 52 { 53 return m_startFlag; 54 } 55 } // namespace RME 56 } // namespace OHOS 57