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 "surface_delegate.h" 17 18namespace OHOS { 19 20void SurfaceDelegate::AddSurfaceCallback(const sptr<ISurfaceCallback>& callback) {} 21 22void SurfaceDelegate::RemoveSurfaceCallback(const sptr<ISurfaceCallback>& callback) {} 23 24SurfaceDelegate::SurfaceDelegate(int windowId) 25{ 26 windowId_ = windowId; 27} 28 29SurfaceDelegateError SurfaceDelegate::CreateSurface(bool isWindowSurface) 30{ 31 return SurfaceDelegateError::SURFACE_DELEGATE_ERROR_DEFAULT; 32} 33 34SurfaceDelegateError SurfaceDelegate::SetBounds(int32_t left, int32_t right, int32_t width, int32_t height) 35{ 36 return SurfaceDelegateError::SURFACE_DELEGATE_ERROR_DEFAULT; 37} 38 39SurfaceDelegateError SurfaceDelegate::ReleaseSurface() 40{ 41 return SurfaceDelegateError::SURFACE_DELEGATE_ERROR_DEFAULT; 42} 43 44SurfaceDelegateError SurfaceDelegate::SetSurfaceSize(uint32_t width, uint32_t height) 45{ 46 return SurfaceDelegateError::SURFACE_DELEGATE_ERROR_DEFAULT; 47} 48 49sptr<Surface> SurfaceDelegate::GetSurface() 50{ 51 return nullptr; 52} 53 54void* SurfaceDelegate::GetNativeWindow() 55{ 56 return nullptr; 57} 58}