• Christopher Cameron's avatar
    RemoteMacViews: Return NSAccessibilityRemoteUIElement where appropriate · ca224255
    Christopher Cameron authored
    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: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#609959}
    ca224255
bridged_native_widget_host_impl.h 17.3 KB