Refactor accessibility providers into better separated model #2956

Closed
opened 2026-01-30 23:09:41 +00:00 by claunia · 1 comment
Owner

Originally created by @carlos-zamora on GitHub (Jul 26, 2019).

Originally assigned to: @carlos-zamora on GitHub.

Description of the new feature/enhancement

ScreenInfoUiaProvider and UiaTextRange are in a shared namespace now. PR #2083 did a bit of hacking to get them to work in Windows Terminal. One big example of this is making the HWND optional.

The CORRECT approach should be to do some kind of inheritance model where the ConHost accessibility model uses an HWND and the Windows Terminal accessibility model uses its new method.

For the HWND issue specifically, it might be worth doing this alongside #2103

Originally created by @carlos-zamora on GitHub (Jul 26, 2019). Originally assigned to: @carlos-zamora on GitHub. # Description of the new feature/enhancement ScreenInfoUiaProvider and UiaTextRange are in a shared namespace now. PR #2083 did a bit of hacking to get them to work in Windows Terminal. One big example of this is making the HWND optional. The CORRECT approach should be to do some kind of inheritance model where the ConHost accessibility model uses an HWND and the Windows Terminal accessibility model uses its new method. For the HWND issue specifically, it might be worth doing this alongside #2103
Author
Owner

@carlos-zamora commented on GitHub (Jul 26, 2019):

Another one:
WindowUiaProviderBase pUiaParent shouldn't be nullable in ScreenInfoUiaProvider

Use THROW_HR_IF_NULL(E_INVALIDARG, pUiaParent))

@carlos-zamora commented on GitHub (Jul 26, 2019): Another one: WindowUiaProviderBase pUiaParent shouldn't be nullable in ScreenInfoUiaProvider Use `THROW_HR_IF_NULL(E_INVALIDARG, pUiaParent))`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2956