5#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
6#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
22class AXPlatformNodeDelegate;
43 static AXPlatformNode* FromNativeWindow(gfx::NativeWindow native_window);
47 static void RegisterNativeWindowHandler(
48 std::function<NativeWindowHandlerCallback> handler);
60 static void NotifyAddAXModeFlags(
AXMode mode_flags);
72 virtual void Destroy();
85 virtual void AnnounceText(
const std::u16string&
text) = 0;
95 void SetIsPrimaryWebContentsForWindow(
bool is_primary);
96 bool IsPrimaryWebContentsForWindow()
const;
99 int32_t GetUniqueId()
const;
106 std::string SubtreeToString();
115 static std::vector<AXModeObserver*> ax_mode_observers_;
116 static std::function<NativeWindowHandlerCallback> native_window_handler_;
125 bool is_primary_web_contents_for_window_ =
false;
static sk_sp< Effect > Create()
ax::mojom::Event event_type
UnimplementedNativeViewAccessible * NativeViewAccessible
const char * ToString(ax::mojom::Event event)
std::ostream & operator<<(std::ostream &os, AXEventGenerator::Event event)
#define BASE_DISALLOW_COPY_AND_ASSIGN(TypeName)