1 /* 2 * Copyright (c) 2023 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 #include "bridge/declarative_frontend/engine/jsi/nativeModule/arkts_native_tabcontent_bridge.h" 16 17 #include "core/interfaces/native/node/api.h" 18 19 namespace OHOS::Ace::NG { SetTabContentWidth(ArkUIRuntimeCallInfo * runtimeCallInfo)20ArkUINativeModuleValue TabContentBridge::SetTabContentWidth(ArkUIRuntimeCallInfo* runtimeCallInfo) 21 { 22 LOGW("TabContent does not support width and height settings"); 23 EcmaVM* vm = runtimeCallInfo->GetVM(); 24 return panda::JSValueRef::Undefined(vm); 25 } 26 SetTabContentHeight(ArkUIRuntimeCallInfo * runtimeCallInfo)27ArkUINativeModuleValue TabContentBridge::SetTabContentHeight(ArkUIRuntimeCallInfo* runtimeCallInfo) 28 { 29 LOGW("TabContent does not support width and height settings"); 30 EcmaVM* vm = runtimeCallInfo->GetVM(); 31 return panda::JSValueRef::Undefined(vm); 32 } 33 SetTabContentSize(ArkUIRuntimeCallInfo * runtimeCallInfo)34ArkUINativeModuleValue TabContentBridge::SetTabContentSize(ArkUIRuntimeCallInfo* runtimeCallInfo) 35 { 36 LOGW("TabContent does not support width and height settings"); 37 EcmaVM* vm = runtimeCallInfo->GetVM(); 38 return panda::JSValueRef::Undefined(vm); 39 } ResetTabContentWidth(ArkUIRuntimeCallInfo * runtimeCallInfo)40ArkUINativeModuleValue TabContentBridge::ResetTabContentWidth(ArkUIRuntimeCallInfo* runtimeCallInfo) 41 { 42 LOGW("TabContent does not support width and height settings"); 43 EcmaVM* vm = runtimeCallInfo->GetVM(); 44 return panda::JSValueRef::Undefined(vm); 45 } 46 ResetTabContentHeight(ArkUIRuntimeCallInfo * runtimeCallInfo)47ArkUINativeModuleValue TabContentBridge::ResetTabContentHeight(ArkUIRuntimeCallInfo* runtimeCallInfo) 48 { 49 LOGW("TabContent does not support width and height settings"); 50 EcmaVM* vm = runtimeCallInfo->GetVM(); 51 return panda::JSValueRef::Undefined(vm); 52 } 53 ResetTabContentSize(ArkUIRuntimeCallInfo * runtimeCallInfo)54ArkUINativeModuleValue TabContentBridge::ResetTabContentSize(ArkUIRuntimeCallInfo* runtimeCallInfo) 55 { 56 LOGW("TabContent does not support width and height settings"); 57 EcmaVM* vm = runtimeCallInfo->GetVM(); 58 return panda::JSValueRef::Undefined(vm); 59 } 60 } // namespace OHOS::Ace::NG 61