[PR #2296] [MERGED] Accessibility: Refactor IRenderData with IUiaData #24884

Open
opened 2026-01-31 09:05:54 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2296
Author: @carlos-zamora
Created: 8/6/2019
Status: Merged
Merged: 8/19/2019
Merged by: @carlos-zamora

Base: masterHead: dev/cazamor/acc-data


📝 Commits (5)

  • 64f8cee Refactor IRenderData with IUiaData
  • 9951cfe code format
  • 2cd78dd remove duplicate tracking of active selection
  • f92b9a5 Merge branch 'master' into dev/cazamor/acc-data
  • 82a4785 fix minor merge error

📊 Changes

18 files changed (+432 additions, -343 deletions)

View changed files

📝 src/cascadia/TerminalControl/TermControl.cpp (+2 -2)
📝 src/cascadia/TerminalControl/TermControl.h (+1 -1)
📝 src/cascadia/TerminalControl/TermControlAutomationPeer.cpp (+1 -1)
📝 src/cascadia/TerminalCore/Terminal.hpp (+17 -9)
📝 src/cascadia/TerminalCore/terminalrenderdata.cpp (+2 -7)
📝 src/host/renderData.cpp (+106 -98)
📝 src/host/renderData.hpp (+21 -10)
📝 src/interactivity/win32/ut_interactivity_win32/UiaTextRangeTests.cpp (+90 -91)
📝 src/interactivity/win32/windowUiaProvider.cpp (+3 -2)
📝 src/renderer/inc/IRenderData.hpp (+2 -30)
src/types/IBaseData.h (+39 -0)
src/types/IUiaData.h (+48 -0)
📝 src/types/ScreenInfoUiaProvider.cpp (+3 -3)
📝 src/types/ScreenInfoUiaProvider.h (+4 -4)
📝 src/types/UiaTextRange.cpp (+41 -41)
📝 src/types/UiaTextRange.hpp (+44 -44)
📝 src/types/lib/types.vcxproj (+2 -0)
📝 src/types/lib/types.vcxproj.filters (+6 -0)

📄 Description

Summary of the Pull Request

Created the following inheritance tree:
IBaseData
├─ IRenderData
└─ IUiaData

This cleans up what is exposed to UiaProviders. If more things are needed in IUiaData that are already in IRenderData, just move them to IBaseData.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

Anything specifically used for the UIA Providers is now passed through IUiaData. I added a few pragma regions to make the code look pretty. No functionality should actually be changed here.

New files:

  • IBaseData
  • IUiaData

Validation Steps Performed

Used inspect.exe to see if the UIA Tree still appears in ConHost and WindowsTerminal. I was able to still interact with the UIA Tree so nothing broke.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/2296 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 8/6/2019 **Status:** ✅ Merged **Merged:** 8/19/2019 **Merged by:** [@carlos-zamora](https://github.com/carlos-zamora) **Base:** `master` ← **Head:** `dev/cazamor/acc-data` --- ### 📝 Commits (5) - [`64f8cee`](https://github.com/microsoft/terminal/commit/64f8cee2cb97c4b1553ccfe983b9c9f1d692f300) Refactor IRenderData with IUiaData - [`9951cfe`](https://github.com/microsoft/terminal/commit/9951cfe6d4266b7bf4d1b31c8b6210e764ecfd75) code format - [`2cd78dd`](https://github.com/microsoft/terminal/commit/2cd78dda95bb37237605e2f1e7396fa3e6a85765) remove duplicate tracking of active selection - [`f92b9a5`](https://github.com/microsoft/terminal/commit/f92b9a5f43cad61f207747499993ec67ace882dd) Merge branch 'master' into dev/cazamor/acc-data - [`82a4785`](https://github.com/microsoft/terminal/commit/82a4785f44f5611c1c86447ff14eb29b2d5b36d8) fix minor merge error ### 📊 Changes **18 files changed** (+432 additions, -343 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+2 -2) 📝 `src/cascadia/TerminalControl/TermControl.h` (+1 -1) 📝 `src/cascadia/TerminalControl/TermControlAutomationPeer.cpp` (+1 -1) 📝 `src/cascadia/TerminalCore/Terminal.hpp` (+17 -9) 📝 `src/cascadia/TerminalCore/terminalrenderdata.cpp` (+2 -7) 📝 `src/host/renderData.cpp` (+106 -98) 📝 `src/host/renderData.hpp` (+21 -10) 📝 `src/interactivity/win32/ut_interactivity_win32/UiaTextRangeTests.cpp` (+90 -91) 📝 `src/interactivity/win32/windowUiaProvider.cpp` (+3 -2) 📝 `src/renderer/inc/IRenderData.hpp` (+2 -30) ➕ `src/types/IBaseData.h` (+39 -0) ➕ `src/types/IUiaData.h` (+48 -0) 📝 `src/types/ScreenInfoUiaProvider.cpp` (+3 -3) 📝 `src/types/ScreenInfoUiaProvider.h` (+4 -4) 📝 `src/types/UiaTextRange.cpp` (+41 -41) 📝 `src/types/UiaTextRange.hpp` (+44 -44) 📝 `src/types/lib/types.vcxproj` (+2 -0) 📝 `src/types/lib/types.vcxproj.filters` (+6 -0) </details> ### 📄 Description ## Summary of the Pull Request Created the following inheritance tree: `IBaseData` ├─ `IRenderData` └─ `IUiaData` This cleans up what is exposed to UiaProviders. If more things are needed in `IUiaData` that are already in `IRenderData`, just move them to `IBaseData`. ## References ## PR Checklist * [x] Closes #1992 * [x] CLA signed. * [x] ~Tests added/passed~ N/A * [x] ~Requires documentation to be updated~ N/A * [x] I am a core contributor ## Detailed Description of the Pull Request / Additional comments Anything specifically used for the UIA Providers is now passed through IUiaData. I added a few `pragma region`s to make the code look pretty. No functionality should actually be changed here. New files: - `IBaseData` - `IUiaData` ## Validation Steps Performed Used inspect.exe to see if the UIA Tree still appears in ConHost and WindowsTerminal. I was able to still interact with the UIA Tree so nothing broke. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:05:54 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24884