13std::vector<AXModeObserver*> AXPlatformNode::ax_mode_observers_;
15std::function<AXPlatformNode::NativeWindowHandlerCallback>
16 AXPlatformNode::native_window_handler_;
18AXMode AXPlatformNode::ax_mode_;
25 gfx::NativeWindow native_window) {
26 if (native_window_handler_)
27 return native_window_handler_(native_window);
32 std::function<AXPlatformNode::NativeWindowHandlerCallback> handler) {
33 native_window_handler_ = handler;
48 is_primary_web_contents_for_window_ = is_primary;
52 return is_primary_web_contents_for_window_;
69 ax_mode_observers_.push_back(observer);
74 ax_mode_observers_.erase(
std::find(ax_mode_observers_.begin(),
75 ax_mode_observers_.end(), observer));
81 AXMode new_ax_mode(ax_mode_);
82 new_ax_mode |= mode_flags;
84 if (new_ax_mode == ax_mode_)
87 ax_mode_ = new_ax_mode;
89 observer->OnAXModeAdded(mode_flags);
95 popup_focus_override_ = popup_focus_override;
100 return popup_focus_override_;
int find(T *array, int N, T item)
UnimplementedNativeViewAccessible * NativeViewAccessible
std::ostream & operator<<(std::ostream &os, AXEventGenerator::Event event)
#define BASE_DCHECK(condition)