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;
31 const ui::AXNodeData& new_node_data)
override;
46 gfx::NativeViewAccessible
GetParent()
override;
50 const ui::AXCoordinateSystem coordinate_system,
51 const ui::AXClippingBehavior clipping_behavior,
52 ui::AXOffscreenResult* offscreen_result)
const override;
55 ui::AXPlatformNode* ax_platform_node_;
56 std::weak_ptr<AccessibilityBridge> bridge_;
59 gfx::RectF ConvertBoundsFromLocalToScreen(
60 const gfx::RectF& local_bounds)
const;
61 gfx::RectF ConvertBoundsFromScreenToGlobal(
62 const gfx::RectF& window_bounds)
const;
69 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERPLATFORMNODEDELEGATEMAC_H_