Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce UiaTextRangeBase::FindText() for Accessibility #4432

Closed
wants to merge 27 commits into from

Conversation

carlos-zamora
Copy link
Member

Summary of the Pull Request

Moved FindText to UiaTextRangeBase. Now that Search is a shared component (thanks #3279), I can just reuse it basically as-is.

References

#3279 - Make Search a shared component
#4018 - UiaTextRange Refactor

PR Checklist

  • Closes #XXX (Doesn't actually close anything... but we need it.)
  • CLA signed.
  • Tests added/passed
  • Requires documentation to be updated

Detailed Description of the Pull Request / Additional comments

I removed it from the two different kinds of UiaTextRange and put it in the base class.

I needed a very minor change to ensure we convert from an inclusive end (from Search) to an exclusive end (in UTR).

Worked with FindText was globally messed with in windows.h. So we had to do a few weird things there (thanks Michael).

No need for additional tests because it literally just sets up a Searcher and calls it.

Validation Steps Performed

I didn't even test this

carlos-zamora and others added 27 commits December 17, 2019 23:42
- remove _degenerate
- _start and _end are now COORDs
- _end is always exclusive
- de-static-fy functions
- all COORDs are in the text buffer coordinate system
…ange

Missing tests for...
- GetText
- Move
- MoveEndpointByUnit
Still need to think of how to approach Move and MoveEndpointByUnit since these should be very similar and should reuse a lot of code.
…llptr when attribute not found. Don't know why this is an issue _now_
- disable debug log
Narrator's word navigation has regressed. This PR will not be ready until that is fixed.
@carlos-zamora
Copy link
Member Author

I messed up and #4373 got closed on me because the base branch (UTR Refactor) got merged/deleted. Not sure what to do so I created a new PR. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants