RemoteMacViews: Return NSAccessibilityRemoteUIElement where appropriate
When using RemoteMacViews, for a given widget, the widget's NSWindow and content NSView exist in the app shim process, while the tree of AXPlatformNodeCocoas exists in the browser process. In the browser process, the widget's NSWindow and content NSView are represented by NSAccessibilityRemoteUIElements in views::BridgedNativeWidgetHostImpl. Update AXPlatformNodeDelegateMac::GetParent and GetNSWindow to retrieve these values from views::BridgedNativeWidgetHostImpl. In AXPlatformNodeDelegate, replace the method GetTopLevelWidget with the method GetNSWindow and call this method in -[AXPlatformNodeCocoa AXWindow]. Replace all subclass implementations except for AXPlatformNodeDelegateMac with NOTREACHED. Bug: 900846 Change-Id: Ia0d26c4d118391ce66cc1e080ca3b62fb228aa8c Reviewed-on: https://chromium-review.googlesource.com/c/1338722 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:
Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#609959}
Showing
Please register or sign in to comment