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

Commit bf57822

Browse files
committed
Enable Windows UI Automation to expose AXPlatformNodeDelegate::AuthorUniqueId as AutomationId
1 parent da95a15 commit bf57822

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

shell/platform/windows/flutter_window.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,6 @@ LRESULT FlutterWindow::OnGetObject(UINT const message,
811811
if (root_view) {
812812
CreateAxFragmentRoot();
813813
if (is_uia_request) {
814-
#ifdef FLUTTER_ENGINE_USE_UIA
815814
// Retrieve UIA object for the root view.
816815
Microsoft::WRL::ComPtr<IRawElementProviderSimple> root;
817816
if (SUCCEEDED(
@@ -824,7 +823,6 @@ LRESULT FlutterWindow::OnGetObject(UINT const message,
824823
} else {
825824
FML_LOG(ERROR) << "Failed to query AX fragment root.";
826825
}
827-
#endif // FLUTTER_ENGINE_USE_UIA
828826
} else if (is_msaa_request) {
829827
// Create the accessibility root if it does not already exist.
830828
// Return the IAccessible for the root view.

shell/platform/windows/window_unittests.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,7 @@ TEST(MockWindow, DISABLED_GetObjectUia) {
366366
bool uia_called = false;
367367
ON_CALL(window, OnGetObject)
368368
.WillByDefault(Invoke([&uia_called](UINT msg, WPARAM wpar, LPARAM lpar) {
369-
#ifdef FLUTTER_ENGINE_USE_UIA
370369
uia_called = true;
371-
#endif // FLUTTER_ENGINE_USE_UIA
372370
return static_cast<LRESULT>(0);
373371
}));
374372
EXPECT_CALL(window, OnGetObject).Times(1);

0 commit comments

Comments
 (0)