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

Conversation

matthew-carroll
Copy link
Contributor

@matthew-carroll matthew-carroll commented Mar 6, 2019

This PR is strictly aimed at clarifying AccessibilityBridge (along with a few minor refactors to help pave the way to the new embedding).

Please read through all new comments to help validate them. Also, if you know the answer to any of the TODO questions, please comment with the answer and I'll update the code.

UPDATE: I ended up moving quite a bit of logic from FlutterView to AccessibilityBridge because the division of responsibility was rather messy and unclear. This refactor also means less duplication between the old FlutterView and the new one. Additionally, the lifespan of various accessibility objects and listeners should now be more clear.

@dnfield
Copy link
Contributor

dnfield commented Mar 6, 2019

This LGTM, although I'd defer to Jonah for full review

@matthew-carroll
Copy link
Contributor Author

@jonahwilliams I just committed round 2 of comments. There are many more doc comments, some renames for clarity, and some new TODOs with questions. I haven't gotten to all of those SemanticsNode fields yet.

…ibility stuff from FlutterView to AccessibilityBridge.
@matthew-carroll
Copy link
Contributor Author

@jonahwilliams I just pushed round 3. This one moves a lot of stuff from FlutterView to AccessibilityBridge. The logical separation should now be more clear, and also this means less duplication between the old FlutterView and the new one.

Also adding @mklim to this PR because it probably overlaps with some of his API guarding work.

The new error is really an existing error, just moved to a new file.

Not fixing it immediately because this lint is actually arguable. We may
want to turn it off entirely in the future.
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM

@matthew-carroll matthew-carroll merged commit 718329c into flutter:master Mar 9, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 9, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Mar 9, 2019
flutter/engine@c48774c...03d5f3c

git log c48774c..03d5f3c --no-merges --oneline
03d5f3c Clarify arguments to FlutterEngineOnVsync (flutter/engine#8093)
718329c Android Embedding PR 17: Clarify AccessibilityBridge and move logic out of FlutterView. (flutter/engine#8061)
edfc0cf Android Embedding PR 16: Add touch support to FlutterView. (flutter/engine#8034)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop
the roller if necessary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants