• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 namespace OHOS {
22 namespace RME {
23 namespace {
24     const std::string SCHEME_SWITCH_PROP = ""; // to add prop
25 }
26 
27 IMPLEMENT_SINGLE_INSTANCE(FrameWindowMgr);
28 DEFINE_RMELOG_INTELLISENSE("ueaClient-FrameWindowMgr");
29 
GetEnable()30 int FrameWindowMgr::GetEnable()
31 {
32     if (m_enable == -1) {
33         m_enable = 1;
34         RME_LOGI("[GetEnable]: m_enable: %{public}d", m_enable);
35     }
36     return m_enable;
37 }
38 
SetStartFlag(bool flag)39 void FrameWindowMgr::SetStartFlag(bool flag)
40 {
41     if (flag) {
42         RME_LOGI("fling start");
43     } else {
44         RME_LOGI("fling end");
45     }
46     m_startFlag = flag;
47 }
48 
GetStartFlag()49 bool FrameWindowMgr::GetStartFlag()
50 {
51     return m_startFlag;
52 }
53 } // namespace RME
54 } // namespace OHOS
55