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 "accessibility_window_info.h" 17 #include "accessibility_operator.h" 18 #include "hilog_wrapper.h" 19 20 namespace OHOS { 21 namespace Accessibility { ReadFromParcel(Parcel & parcel)22bool AccessibilityWindowInfo::ReadFromParcel(Parcel &parcel) 23 { 24 (void)parcel; 25 return true; 26 } 27 Marshalling(Parcel & parcel) const28bool AccessibilityWindowInfo::Marshalling(Parcel &parcel) const 29 { 30 (void)parcel; 31 return true; 32 }; 33 Unmarshalling(Parcel & parcel)34AccessibilityWindowInfo* AccessibilityWindowInfo::Unmarshalling(Parcel& parcel) 35 { 36 (void)parcel; 37 return nullptr; 38 } 39 GetWindowTitle() const40std::string AccessibilityWindowInfo::GetWindowTitle() const 41 { 42 return windowTitle_; 43 } 44 SetWindowTitle(std::string & title)45void AccessibilityWindowInfo::SetWindowTitle(std::string &title) 46 { 47 (void)title; 48 } 49 GetWindowType() const50WindowType AccessibilityWindowInfo::GetWindowType() const 51 { 52 return windowType_; 53 } 54 SetWindowType(const WindowType type)55void AccessibilityWindowInfo::SetWindowType(const WindowType type) 56 { 57 (void)type; 58 } 59 GetWindowLayer() const60int AccessibilityWindowInfo::GetWindowLayer() const 61 { 62 return windowLayer_; 63 } 64 SetWindowLayer(const int layer)65void AccessibilityWindowInfo::SetWindowLayer(const int layer) 66 { 67 (void)layer; 68 } 69 GetRootAccessibilityInfo(AccessibilityElementInfo & elementInfo)70bool AccessibilityWindowInfo::GetRootAccessibilityInfo(AccessibilityElementInfo &elementInfo) 71 { 72 (void)elementInfo; 73 return true; 74 } 75 SetAnchorId(const int anchorId)76void AccessibilityWindowInfo::SetAnchorId(const int anchorId) 77 {} 78 GetAnchor(AccessibilityElementInfo & elementInfo)79bool AccessibilityWindowInfo::GetAnchor(AccessibilityElementInfo &elementInfo) 80 { 81 (void)elementInfo; 82 return true; 83 } 84 GetParent()85AccessibilityWindowInfo AccessibilityWindowInfo::GetParent() 86 { 87 AccessibilityWindowInfo accessibilityWindow {}; 88 return accessibilityWindow; 89 } 90 SetParentId(const int parentId)91void AccessibilityWindowInfo::SetParentId(const int parentId) 92 { 93 (void)parentId; 94 } 95 GetParentId() const96int AccessibilityWindowInfo::GetParentId() const 97 { 98 return parentId_; 99 } 100 GetChildIds() const101std::vector<int> AccessibilityWindowInfo::GetChildIds() const 102 { 103 return childIds_; 104 } 105 GetAnchorId() const106int AccessibilityWindowInfo::GetAnchorId() const 107 { 108 return anchorId_; 109 } GetWindowId() const110int AccessibilityWindowInfo::GetWindowId() const 111 { 112 return windowId_; 113 } 114 SetWindowId(const int id)115void AccessibilityWindowInfo::SetWindowId(const int id) 116 { 117 (void)id; 118 } 119 SetChannelId(const int channelId)120void AccessibilityWindowInfo::SetChannelId(const int channelId) 121 { 122 (void)channelId; 123 } 124 GetChannelId() const125int AccessibilityWindowInfo::GetChannelId() const 126 { 127 return channelId_; 128 } 129 GetRectInScreen() const130Rect AccessibilityWindowInfo::GetRectInScreen() const 131 { 132 return boundsInScreen_; 133 } 134 SetRectInScreen(const Rect & bounds)135void AccessibilityWindowInfo::SetRectInScreen(const Rect &bounds) 136 { 137 (void)bounds; 138 } 139 IsActive() const140bool AccessibilityWindowInfo::IsActive() const 141 { 142 return active_; 143 } 144 SetActive(bool active)145void AccessibilityWindowInfo::SetActive(bool active) 146 { 147 (void)active; 148 } 149 IsFocused() const150bool AccessibilityWindowInfo::IsFocused() const 151 { 152 return focused_; 153 } 154 SetFocused(bool focused)155void AccessibilityWindowInfo::SetFocused(bool focused) 156 { 157 (void)focused; 158 } 159 IsAccessibilityFocused() const160bool AccessibilityWindowInfo::IsAccessibilityFocused() const 161 { 162 return accessibilityFocused_; 163 } 164 SetAccessibilityFocused(const bool accessibilityfocused)165void AccessibilityWindowInfo::SetAccessibilityFocused(const bool accessibilityfocused) 166 { 167 (void)accessibilityfocused; 168 } 169 GetChildNum() const170int AccessibilityWindowInfo::GetChildNum() const 171 { 172 return childNum_; 173 } 174 GetChild(const int index)175AccessibilityWindowInfo AccessibilityWindowInfo::GetChild(const int index) 176 { 177 (void)index; 178 AccessibilityWindowInfo accessibilityWindow {}; 179 return accessibilityWindow; 180 } 181 AddChild(const int childId)182void AccessibilityWindowInfo::AddChild(const int childId) 183 { 184 (void)childId; 185 } 186 AccessibilityWindowInfo()187AccessibilityWindowInfo::AccessibilityWindowInfo() 188 {} 189 } // namespace Accessibility 190 } // namespace OHOS