-
Notifications
You must be signed in to change notification settings - Fork 6k
[macOS] Move A11yBridge to FVC #38855
Conversation
|
Are we already committed to integers for viewIds? |
Not "committed", but what is your suggestion? Strings are not a good option for their cost in comparison and transmission. |
That's because |
Thank you. In that case, I think the change in this PR is safe. |
I don't have anything in mind at the moment. Did you mention anything about it in your design doc? |
The doc does have a section "Surface ID" that says the ID would be a |
|
Nice work 👍 |
|
The |
shell/platform/darwin/macos/framework/Source/FlutterTextInputPluginTest.mm
Outdated
Show resolved
Hide resolved
shell/platform/darwin/macos/framework/Source/FlutterViewController.mm
Outdated
Show resolved
Hide resolved
shell/platform/darwin/macos/framework/Source/FlutterViewController.mm
Outdated
Show resolved
Hide resolved
|
@loic-sharma @a-wallen I've split a great part of this PR into #38981, so that this PR will contain only accessibility changes. For more discussion on non-accessibility changes, such as the IDs, let's move to that PR. For incremental changes of this PR based on the base PR, see dkwingsmt#32. |
shell/platform/darwin/macos/framework/Headers/FlutterViewController.h
Outdated
Show resolved
Hide resolved
shell/platform/darwin/macos/framework/Source/FlutterViewController_Internal.h
Show resolved
Hide resolved
6023003 to
2bedd66
Compare
|
@cbracken The depended PR has been merged, and this PR should be ready for review. |
c063d9f to
554220a
Compare
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for refactoring this!
loic-sharma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 🥳
…119592) * 999e5e5fc Rebase all (flutter/engine#38855) * 9cc2a8e8f Update bytes str code (flutter/engine#39275) * 9448f2966 Revert "[fuchsia] Diagnostics directory rights are R* (#39203)" (flutter/engine#39271)
This PR moves
AccessibilityBridgeMacfromFlutterEnginetoFlutterViewController.Currently, whether
FlutterEnginehas a non-nullAccessibilityBridgeonly depends on the value ofsemanticsEnabled. The_bridgeis initialized the momentsemanticsEnabledturns true, even ifviewControlleris null. Similarly, setting the view controller to null does not affect_bridgeeither. This is problematic because conceptually anAccessibilityBridgemanages the a11y information for one view. Accessibility information does not make much sense without a view.By moving the
AccessibilityBridgeintoFlutterViewController, the lifecycles of these 2 classes are tied. The bridge exists only when the view controller exists and semantics has been enabled. This is important because accessibility information should be view-specific.FlutterEngine#accessibilityBridgeFlutterViewController#accessibilityBridgeFlutterEngine#updateSemantics:FlutterViewController#updateSemantics:FlutterEngine#createAccessibilityBridge:viewController:FlutterViewController#createAccessibilityBridgeWithEngine:FlutterViewController#notifySemanticsEnabledChanged:Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.