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 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_PATTERNS_WEB_TRANSITIONAL_NODE_INFO_H 17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_PATTERNS_WEB_TRANSITIONAL_NODE_INFO_H 18 19 #include <string> 20 21 namespace OHOS::NWeb { 22 class NWebAccessibilityNodeInfo; 23 } 24 25 namespace OHOS::Ace::NG { 26 class TransitionalNodeInfo { 27 public: TransitionalNodeInfo(std::shared_ptr<NWeb::NWebAccessibilityNodeInfo> node)28 TransitionalNodeInfo(std::shared_ptr<NWeb::NWebAccessibilityNodeInfo> node) : node_(node) {} 29 30 ~TransitionalNodeInfo() = default; 31 32 std::string GetHint(); 33 std::string GetError(); 34 int32_t GetRectX(); 35 int32_t GetRectY(); 36 int32_t GetPageId(); 37 std::vector<uint32_t> GetActions(); 38 std::string GetContent(); 39 std::vector<int64_t> GetChildIds(); 40 int64_t GetParentId(); 41 bool GetIsHeading(); 42 bool GetIsChecked(); 43 bool GetIsEnabled(); 44 bool GetIsFocused(); 45 int32_t GetRectWidth(); 46 int32_t GetRectHeight(); 47 bool GetIsVisible(); 48 bool GetIsHinting(); 49 bool GetIsEditable(); 50 bool GetIsSelected(); 51 size_t GetItemCounts(); 52 int32_t GetLiveRegion(); 53 bool GetIsPassword(); 54 bool GetIsCheckable(); 55 bool GetIsClickable(); 56 bool GetIsFocusable(); 57 bool GetIsScrollable(); 58 bool GetIsDeletable(); 59 int64_t GetAccessibilityId(); 60 bool GetIsPopupSupported(); 61 bool GetIsContentInvalid(); 62 int32_t GetSelectionEnd(); 63 int32_t GetSelectionStart(); 64 float GetRangeInfoMin(); 65 float GetRangeInfoMax(); 66 float GetRangeInfoCurrent(); 67 int32_t GetInputType(); 68 std::string GetComponentType(); 69 std::string GetDescriptionInfo(); 70 int32_t GetGridRows(); 71 int32_t GetGridItemRow(); 72 int32_t GetGridColumns(); 73 int32_t GetGridItemColumn(); 74 int32_t GetGridItemRowSpan(); 75 int32_t GetGridSelectedMode(); 76 int32_t GetGridItemColumnSpan(); 77 bool GetIsAccessibilityFocus(); 78 bool GetIsPluralLineSupported(); 79 bool GetIsAccessibilityGroup(); 80 81 private: 82 std::shared_ptr<NWeb::NWebAccessibilityNodeInfo> node_; 83 }; 84 } // namespace OHOS::Ace::NG 85 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_PATTERNS_WEB_TRANSITIONAL_NODE_INFO_H