Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0e65177

Browse files
committed
Propagate identifier from AXNodeData to FlutterPlatformNodeDelegateWindows::GetAuthorUniqueId
1 parent 5093bc9 commit 0e65177

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

shell/platform/windows/flutter_platform_node_delegate_windows.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "flutter/shell/platform/windows/flutter_platform_node_delegate_windows.h"
88

99
#include "flutter/fml/logging.h"
10+
#include "flutter/fml/platform/win/wstring_conversion.h"
1011
#include "flutter/shell/platform/windows/accessibility_bridge_windows.h"
1112
#include "flutter/shell/platform/windows/flutter_windows_view.h"
1213
#include "flutter/third_party/accessibility/ax/ax_clipping_behavior.h"
@@ -78,6 +79,13 @@ gfx::NativeViewAccessible FlutterPlatformNodeDelegateWindows::HitTestSync(
7879
return ax_platform_node_->GetNativeViewAccessible();
7980
}
8081

82+
// |ui::AXPlatformNodeDelegate|
83+
std::u16string FlutterPlatformNodeDelegateWindows::GetAuthorUniqueId() const {
84+
return fml::WideStringToUtf16(
85+
fml::Utf8ToWideString(GetData().GetStringAttribute(
86+
ax::mojom::StringAttribute::kAuthorUniqueId)));
87+
}
88+
8189
// |FlutterPlatformNodeDelegate|
8290
gfx::Rect FlutterPlatformNodeDelegateWindows::GetBoundsRect(
8391
const ui::AXCoordinateSystem coordinate_system,

shell/platform/windows/flutter_platform_node_delegate_windows.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class FlutterPlatformNodeDelegateWindows : public FlutterPlatformNodeDelegate {
3434
int screen_physical_pixel_x,
3535
int screen_physical_pixel_y) const override;
3636

37+
// |ui::AXPlatformNodeDelegateBase|
38+
std::u16string GetAuthorUniqueId() const override;
39+
3740
// |FlutterPlatformNodeDelegate|
3841
gfx::Rect GetBoundsRect(
3942
const ui::AXCoordinateSystem coordinate_system,

0 commit comments

Comments
 (0)