1 /* 2 * Copyright (c) 2024 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 "core/components_ng/pattern/web/transitional_node_info.h" 17 18 #include "nweb_handler.h" 19 20 namespace OHOS::Ace::NG { GetHint()21 std::string TransitionalNodeInfo::GetHint() 22 { 23 return node_->GetHint(); 24 } 25 GetError()26 std::string TransitionalNodeInfo::GetError() 27 { 28 return node_->GetError(); 29 } 30 GetRectX()31 int32_t TransitionalNodeInfo::GetRectX() 32 { 33 return node_->GetRectX(); 34 } 35 GetRectY()36 int32_t TransitionalNodeInfo::GetRectY() 37 { 38 return node_->GetRectY(); 39 } 40 GetPageId()41 int32_t TransitionalNodeInfo::GetPageId() 42 { 43 return node_->GetPageId(); 44 } 45 GetActions()46 std::vector<uint32_t> TransitionalNodeInfo::GetActions() 47 { 48 return node_->GetActions(); 49 } 50 GetContent()51 std::string TransitionalNodeInfo::GetContent() 52 { 53 return node_->GetContent(); 54 } 55 GetChildIds()56 std::vector<int64_t> TransitionalNodeInfo::GetChildIds() 57 { 58 return node_->GetChildIds(); 59 } 60 GetParentId()61 int64_t TransitionalNodeInfo::GetParentId() 62 { 63 return node_->GetParentId(); 64 } 65 GetIsHeading()66 bool TransitionalNodeInfo::GetIsHeading() 67 { 68 return node_->GetIsHeading(); 69 } 70 GetIsChecked()71 bool TransitionalNodeInfo::GetIsChecked() 72 { 73 return node_->GetIsChecked(); 74 } 75 GetIsEnabled()76 bool TransitionalNodeInfo::GetIsEnabled() 77 { 78 return node_->GetIsEnabled(); 79 } 80 GetIsFocused()81 bool TransitionalNodeInfo::GetIsFocused() 82 { 83 return node_->GetIsFocused(); 84 } 85 GetRectWidth()86 int32_t TransitionalNodeInfo::GetRectWidth() 87 { 88 return node_->GetRectWidth(); 89 } 90 GetRectHeight()91 int32_t TransitionalNodeInfo::GetRectHeight() 92 { 93 return node_->GetRectHeight(); 94 } 95 GetIsVisible()96 bool TransitionalNodeInfo::GetIsVisible() 97 { 98 return node_->GetIsVisible(); 99 } 100 GetIsHinting()101 bool TransitionalNodeInfo::GetIsHinting() 102 { 103 return node_->GetIsHinting(); 104 } 105 GetIsEditable()106 bool TransitionalNodeInfo::GetIsEditable() 107 { 108 return node_->GetIsEditable(); 109 } 110 GetIsSelected()111 bool TransitionalNodeInfo::GetIsSelected() 112 { 113 return node_->GetIsSelected(); 114 } 115 GetItemCounts()116 size_t TransitionalNodeInfo::GetItemCounts() 117 { 118 return node_->GetItemCounts(); 119 } 120 GetLiveRegion()121 int32_t TransitionalNodeInfo::GetLiveRegion() 122 { 123 return node_->GetLiveRegion(); 124 } 125 GetIsPassword()126 bool TransitionalNodeInfo::GetIsPassword() 127 { 128 return node_->GetIsPassword(); 129 } 130 GetIsCheckable()131 bool TransitionalNodeInfo::GetIsCheckable() 132 { 133 return node_->GetIsCheckable(); 134 } 135 GetIsClickable()136 bool TransitionalNodeInfo::GetIsClickable() 137 { 138 return node_->GetIsClickable(); 139 } 140 GetIsFocusable()141 bool TransitionalNodeInfo::GetIsFocusable() 142 { 143 return node_->GetIsFocusable(); 144 } 145 GetIsScrollable()146 bool TransitionalNodeInfo::GetIsScrollable() 147 { 148 return node_->GetIsScrollable(); 149 } 150 GetIsDeletable()151 bool TransitionalNodeInfo::GetIsDeletable() 152 { 153 return node_->GetIsDeletable(); 154 } 155 GetAccessibilityId()156 int64_t TransitionalNodeInfo::GetAccessibilityId() 157 { 158 return node_->GetAccessibilityId(); 159 } 160 GetIsPopupSupported()161 bool TransitionalNodeInfo::GetIsPopupSupported() 162 { 163 return node_->GetIsPopupSupported(); 164 } 165 GetIsContentInvalid()166 bool TransitionalNodeInfo::GetIsContentInvalid() 167 { 168 return node_->GetIsContentInvalid(); 169 } 170 GetSelectionEnd()171 int32_t TransitionalNodeInfo::GetSelectionEnd() 172 { 173 return node_->GetSelectionEnd(); 174 } 175 GetSelectionStart()176 int32_t TransitionalNodeInfo::GetSelectionStart() 177 { 178 return node_->GetSelectionStart(); 179 } 180 GetRangeInfoMin()181 float TransitionalNodeInfo::GetRangeInfoMin() 182 { 183 return node_->GetRangeInfoMin(); 184 } 185 GetRangeInfoMax()186 float TransitionalNodeInfo::GetRangeInfoMax() 187 { 188 return node_->GetRangeInfoMax(); 189 } 190 GetRangeInfoCurrent()191 float TransitionalNodeInfo::GetRangeInfoCurrent() 192 { 193 return node_->GetRangeInfoCurrent(); 194 } 195 GetInputType()196 int32_t TransitionalNodeInfo::GetInputType() 197 { 198 return node_->GetInputType(); 199 } 200 GetComponentType()201 std::string TransitionalNodeInfo::GetComponentType() 202 { 203 return node_->GetComponentType(); 204 } 205 GetDescriptionInfo()206 std::string TransitionalNodeInfo::GetDescriptionInfo() 207 { 208 return node_->GetDescriptionInfo(); 209 } 210 GetGridRows()211 int32_t TransitionalNodeInfo::GetGridRows() 212 { 213 return node_->GetGridRows(); 214 } 215 GetGridItemRow()216 int32_t TransitionalNodeInfo::GetGridItemRow() 217 { 218 return node_->GetGridItemRow(); 219 } 220 GetGridColumns()221 int32_t TransitionalNodeInfo::GetGridColumns() 222 { 223 return node_->GetGridColumns(); 224 } 225 GetGridItemColumn()226 int32_t TransitionalNodeInfo::GetGridItemColumn() 227 { 228 return node_->GetGridItemColumn(); 229 } 230 GetGridItemRowSpan()231 int32_t TransitionalNodeInfo::GetGridItemRowSpan() 232 { 233 return node_->GetGridItemRowSpan(); 234 } 235 GetGridSelectedMode()236 int32_t TransitionalNodeInfo::GetGridSelectedMode() 237 { 238 return node_->GetGridSelectedMode(); 239 } 240 GetGridItemColumnSpan()241 int32_t TransitionalNodeInfo::GetGridItemColumnSpan() 242 { 243 return node_->GetGridItemColumnSpan(); 244 } 245 GetIsAccessibilityFocus()246 bool TransitionalNodeInfo::GetIsAccessibilityFocus() 247 { 248 return node_->GetIsAccessibilityFocus(); 249 } 250 GetIsPluralLineSupported()251 bool TransitionalNodeInfo::GetIsPluralLineSupported() 252 { 253 return node_->GetIsPluralLineSupported(); 254 } 255 GetIsAccessibilityGroup()256 bool TransitionalNodeInfo::GetIsAccessibilityGroup() 257 { 258 return node_->GetIsAccessibilityGroup(); 259 } 260 GetHtmlElementId()261 std::string TransitionalNodeInfo::GetHtmlElementId() 262 { 263 return node_->GetHtmlElementId(); 264 } 265 GetComponentTypeDescription()266 std::string TransitionalNodeInfo::GetComponentTypeDescription() 267 { 268 return node_->GetComponentTypeDescription(); 269 } 270 GetCheckboxGroupSelectedStatus()271 int32_t TransitionalNodeInfo::GetCheckboxGroupSelectedStatus() 272 { 273 return node_->GetCheckboxGroupSelectedStatus(); 274 } 275 GetExpandedState()276 std::string TransitionalNodeInfo::GetExpandedState() 277 { 278 return node_->GetExpandedState(); 279 } 280 } // namespace OHOS::Ace::NG