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 16 #include "capability_data_adapter_impl.h" 17 18 namespace OHOS::NWeb { 19 GetMaxWidth()20int32_t CapabilityDataAdapterImpl::GetMaxWidth() 21 { 22 return maxWidth_; 23 } 24 GetMaxHeight()25int32_t CapabilityDataAdapterImpl::GetMaxHeight() 26 { 27 return maxHeight_; 28 } 29 GetMaxframeRate()30int32_t CapabilityDataAdapterImpl::GetMaxframeRate() 31 { 32 return maxFrameRate_; 33 } 34 SetMaxWidth(int32_t width)35void CapabilityDataAdapterImpl::SetMaxWidth(int32_t width) 36 { 37 maxWidth_ = width; 38 } 39 SetMaxHeight(int32_t height)40void CapabilityDataAdapterImpl::SetMaxHeight(int32_t height) 41 { 42 maxHeight_ = height; 43 } 44 SetMaxframeRate(int32_t frameRate)45void CapabilityDataAdapterImpl::SetMaxframeRate(int32_t frameRate) 46 { 47 maxFrameRate_ = frameRate; 48 } 49 50 } // namespace OHOS::NWeb 51