1 /*
2 * Copyright (c) 2024 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 "JsApp.h"
17
JsApp()18 JsApp::JsApp() {}
19
IsLiteDevice(std::string deviceType)20 bool JsApp::IsLiteDevice(std::string deviceType)
21 {
22 return (deviceType == "liteWearable" || deviceType == "smartVersion") ? true : false;
23 }
24
GetJSONTree()25 std::string JsApp::GetJSONTree() {}
GetDefaultJSONTree()26 std::string JsApp::GetDefaultJSONTree() {}
OrientationChanged(std::string commandOrientation)27 void JsApp::OrientationChanged(std::string commandOrientation) {}
ResolutionChanged(ResolutionParam & param,int32_t screenDensity,std::string reason)28 void JsApp::ResolutionChanged(ResolutionParam& param, int32_t screenDensity, std::string reason) {}
SetArgsColorMode(const std::string & value)29 void JsApp::SetArgsColorMode(const std::string& value) {}
SetArgsAceVersion(const std::string & value)30 void JsApp::SetArgsAceVersion(const std::string& value) {}
GetOrientation() const31 std::string JsApp::GetOrientation() const {}
GetColorMode() const32 std::string JsApp::GetColorMode() const {}
ColorModeChanged(const std::string commandColorMode)33 void JsApp::ColorModeChanged(const std::string commandColorMode) {}
ReloadRuntimePage(const std::string)34 void JsApp::ReloadRuntimePage(const std::string) {}
SetScreenDensity(const std::string value)35 void JsApp::SetScreenDensity(const std::string value) {}
SetConfigChanges(const std::string value)36 void JsApp::SetConfigChanges(const std::string value) {}
MemoryRefresh(const std::string) const37 bool JsApp::MemoryRefresh(const std::string) const {}
LoadDocument(const std::string,const std::string,const Json2::Value &)38 void JsApp::LoadDocument(const std::string, const std::string, const Json2::Value&) {}
FoldStatusChanged(const std::string commandFoldStatus,int32_t currentWidth,int32_t currentHeight)39 void JsApp::FoldStatusChanged(const std::string commandFoldStatus, int32_t currentWidth, int32_t currentHeight) {}
SetAvoidArea(const AvoidAreas & areas)40 void JsApp::SetAvoidArea(const AvoidAreas& areas) {}
Stop()41 void JsApp::Stop() {}
InitJsApp()42 void JsApp::InitJsApp() {}
GetCurrentAvoidArea() const43 const AvoidAreas JsApp::GetCurrentAvoidArea() const
44 {
45 AvoidAreas areas;
46 return areas;
47 }