5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_ACCESSIBILITYBRIDGEMAC_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_ACCESSIBILITYBRIDGEMAC_H_
8 #import <Cocoa/Cocoa.h>
10 #include "flutter/fml/macros.h"
40 FlutterSemanticsAction action,
41 fml::MallocMapping data)
override;
52 struct NSAccessibilityEvent {
53 NSAccessibilityNotificationName name;
54 gfx::NativeViewAccessible target;
55 NSDictionary* user_info;
63 virtual void DispatchMacOSNotification(gfx::NativeViewAccessible native_node,
64 NSAccessibilityNotificationName mac_notification);
73 void DispatchMacOSNotificationWithUserInfo(gfx::NativeViewAccessible native_node,
74 NSAccessibilityNotificationName mac_notification,
75 NSDictionary* user_info);
80 bool HasPendingEvent(ui::AXEventGenerator::Event event)
const;
87 std::vector<NSAccessibilityEvent> MacOSEventsFromAXEvent(ui::AXEventGenerator::Event event_type,
88 const ui::AXNode& ax_node)
const;
98 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_ACCESSIBILITYBRIDGEMAC_H_