diff --git a/interfaces/innerkits/common/include/accessibility_def.h b/interfaces/innerkits/common/include/accessibility_def.h index 501c42ea..4395ea99 100644 --- a/interfaces/innerkits/common/include/accessibility_def.h +++ b/interfaces/innerkits/common/include/accessibility_def.h @@ -266,6 +266,7 @@ enum EventType : uint32_t { TYPE_PAGE_CLOSE = 0x08000000, TYPE_VIEW_ANNOUNCE_FOR_ACCESSIBILITY = 0x10000000, TYPE_PAGE_OPEN = 0x20000000, + TYPE_ELEMENT_INFO_CHANGE = 0x40000000, TYPE_MAX_NUM = 0x80000000, TYPES_ALL_MASK = 0xFFFFFFFF, }; diff --git a/interfaces/kits/napi/src/napi_accessibility_utils.cpp b/interfaces/kits/napi/src/napi_accessibility_utils.cpp index 04e3f9a5..e21df8f5 100644 --- a/interfaces/kits/napi/src/napi_accessibility_utils.cpp +++ b/interfaces/kits/napi/src/napi_accessibility_utils.cpp @@ -554,7 +554,8 @@ const std::string ConvertAccessibilityEventTypeToString(EventType type) {EventType::TYPE_VIEW_REQUEST_FOCUS_FOR_ACCESSIBILITY, "requestFocusForAccessibility"}, {EventType::TYPE_VIEW_ANNOUNCE_FOR_ACCESSIBILITY, "announceForAccessibility"}, {EventType::TYPE_PAGE_OPEN, "pageOpen"}, - {EventType::TYPE_PAGE_CLOSE, "pageClose"}}; + {EventType::TYPE_PAGE_CLOSE, "pageClose"}, + {EventType::TYPE_ELEMENT_INFO_CHANGE, "elementInfoChange"}}; if (a11yEvtTypeTable.find(type) == a11yEvtTypeTable.end()) { return ""; diff --git a/services/aams/src/accessibility_dumper.cpp b/services/aams/src/accessibility_dumper.cpp index 25c762ff..d7d37c2d 100644 --- a/services/aams/src/accessibility_dumper.cpp +++ b/services/aams/src/accessibility_dumper.cpp @@ -185,7 +185,8 @@ void ConvertEventTypes(const uint32_t value, std::string &eventTypes) {EventType::TYPE_VIEW_REQUEST_FOCUS_FOR_ACCESSIBILITY, "requestFocusForAccessibility"}, {EventType::TYPE_VIEW_ANNOUNCE_FOR_ACCESSIBILITY, "announceForAccessibility"}, {EventType::TYPE_PAGE_OPEN, "pageOpen"}, - {EventType::TYPE_PAGE_CLOSE, "pageClose"}}; + {EventType::TYPE_PAGE_CLOSE, "pageClose"}, + {EventType::TYPE_ELEMENT_INFO_CHANGE, "elementInfoChange"}}; for (auto itr = accessibilityEventTable.begin(); itr != accessibilityEventTable.end(); ++itr) { if (value & itr->first) {