Move node implementation to Objective C (#2652)
* Move node implementation to Objective C This changes AccessibilityBridge::Node (C++) to be AccessibilityNode (objc) in order to have the nodes returned directly as ui accessibility elements. This buys us a few things: 1) We can now return an element tree instead of a flat list, thus negating the need to maintain a global rect and global translation 2) We use less memory since we don't need to instantiate both nodes and their ensuing accessibility elements 3) accessibility elements can now implement the methods necessary to respond to events like user scrolling https://github.com/flutter/flutter/issues/1664
Showing
想要评论请 注册 或 登录