19 std::weak_ptr<AccessibilityBridge> bridge,
21 : bridge_(bridge), view_(
view) {
23 <<
"Expired AccessibilityBridge passed to node delegate";
28 if (ax_platform_node_) {
38 FML_DCHECK(ax_platform_node_) <<
"Failed to create AXPlatformNode";
44 FML_DCHECK(ax_platform_node_) <<
"AXPlatformNode hasn't been created";
50 int screen_physical_pixel_x,
51 int screen_physical_pixel_y)
const {
56 gfx::Point screen_point(screen_physical_pixel_x, screen_physical_pixel_y);
62 auto bridge = bridge_.lock();
65 std::shared_ptr<FlutterPlatformNodeDelegateWindows> win_delegate =
66 std::static_pointer_cast<FlutterPlatformNodeDelegateWindows>(
67 bridge->GetFlutterPlatformNodeDelegateFromID(child->id()).lock());
69 <<
"No FlutterPlatformNodeDelegate found for node " << child->id();
70 auto hit_view = win_delegate->HitTestSync(screen_physical_pixel_x,
71 screen_physical_pixel_y);
87 coordinate_system, clipping_behavior, offscreen_result);
88 POINT origin{bounds.
x(), bounds.
y()};
89 POINT extent{bounds.
x() + bounds.
width(), bounds.
y() + bounds.
height()};
92 return gfx::Rect(origin.x, origin.y, extent.x - origin.x,
104 varchild.lVal = CHILDID_SELF;
108gfx::AcceleratedWidget
115 return ax_platform_node_;
ax::mojom::Event event_type
virtual HWND GetWindowHandle() const
constexpr int height() const
bool Contains(int point_x, int point_y) const
constexpr int width() const
const std::vector< AXNode * > & children() const
#define FML_DCHECK(condition)
UnimplementedNativeViewAccessible * NativeViewAccessible