5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMNODEDELEGATEMAC_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMNODEDELEGATEMAC_H_
8 #import <Cocoa/Cocoa.h>
12 #include "flutter/fml/macros.h"
15 #include "flutter/shell/platform/embedder/embedder.h"
28 void Init(std::weak_ptr<OwnerBridge> bridge, ui::AXNode* node)
override;
43 gfx::NativeViewAccessible
GetParent()
override;
47 const ui::AXCoordinateSystem coordinate_system,
48 const ui::AXClippingBehavior clipping_behavior,
49 ui::AXOffscreenResult* offscreen_result)
const override;
52 ui::AXPlatformNode* ax_platform_node_;
53 std::weak_ptr<AccessibilityBridge> bridge_;
56 gfx::RectF ConvertBoundsFromLocalToScreen(
57 const gfx::RectF& local_bounds)
const;
58 gfx::RectF ConvertBoundsFromScreenToGlobal(
59 const gfx::RectF& window_bounds)
const;
66 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMNODEDELEGATEMAC_H_