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