1 /*
2 * Copyright (c) 2021 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 "frameworks/core/components/declaration/canvas/canvas_declaration.h"
17
18 namespace OHOS::Ace {
19
InitSpecialized()20 void CanvasDeclaration::InitSpecialized()
21 {
22 // No specialized info for canvas.
23 }
24
SetSpecializedAttr(const std::pair<std::string,std::string> & attr)25 bool CanvasDeclaration::SetSpecializedAttr(const std::pair<std::string, std::string>& attr)
26 {
27 // No specialized attr for canvas.
28 return false;
29 }
30
SetSpecializedStyle(const std::pair<std::string,std::string> & style)31 bool CanvasDeclaration::SetSpecializedStyle(const std::pair<std::string, std::string>& style)
32 {
33 // No specialized style for canvas.
34 return false;
35 }
36
SetSpecializedEvent(int32_t pageId,const std::string & eventId,const std::string & event)37 bool CanvasDeclaration::SetSpecializedEvent(int32_t pageId, const std::string& eventId, const std::string& event)
38 {
39 // No specialized event for canvas.
40 return false;
41 }
42
43 } // namespace OHOS::Ace
44