-
Notifications
You must be signed in to change notification settings - Fork 6k
Add Windows AutomationId #53476
Add Windows AutomationId #53476
Changes from 1 commit
9755090
82478f3
eac479f
41d578d
1deeac8
a86e74c
b4bfd45
3793869
f6344b7
8c28431
55eae68
bc38917
74e8033
08d00d5
eeaf0b5
99a5a45
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -806,12 +806,9 @@ LRESULT FlutterWindow::OnGetObject(UINT const message, | |
| } | ||
|
|
||
| gfx::NativeViewAccessible root_view = GetNativeViewAccessible(); | ||
| // TODO(schectman): UIA is currently disabled by default. | ||
| // https://github.com/flutter/flutter/issues/114547 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, Flutter's UIA support isn't ready to be enabled. We won't be able to land an approach that enables UIA by default.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With UIA disabled, automationId is not exposed. What can be done for UIA enablement ? Could it be optionally enabled when building an application ?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found #37754, which indicates missing parts relate to text edit carat navigation narration. Could UIA be enabled during application build, opposed to current engine build ? |
||
| if (root_view) { | ||
| CreateAxFragmentRoot(); | ||
| if (is_uia_request) { | ||
| #ifdef FLUTTER_ENGINE_USE_UIA | ||
| // Retrieve UIA object for the root view. | ||
| Microsoft::WRL::ComPtr<IRawElementProviderSimple> root; | ||
| if (SUCCEEDED( | ||
|
|
@@ -824,7 +821,6 @@ LRESULT FlutterWindow::OnGetObject(UINT const message, | |
| } else { | ||
| FML_LOG(ERROR) << "Failed to query AX fragment root."; | ||
| } | ||
| #endif // FLUTTER_ENGINE_USE_UIA | ||
| } else if (is_msaa_request) { | ||
| // Create the accessibility root if it does not already exist. | ||
| // Return the IAccessible for the root view. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.