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