• Christopher Cameron's avatar
    RemoteMacViews: Push window size and display properties · 78a0d81f
    Christopher Cameron authored
    The methods NativeWidgetMac::GetWindowBoundsInScreen,
    GetClientAreaBoundsInScreen, and GetWorkAreaBoundsInScreen compute
    their results by querying the underlying NSWindow.
    
    When the NSWindow is a separate process, this won't be an option.
    Instead, have the BridgedNativeWidget push these properties to the
    BridgetNativeWidgetHost, from which the NativeWidgetMac may query them.
    
    Also have the BridgedNativeWidget (in the app shim process) query the
    display::Display for its NSWindow and send that to the
    BridgetNativeWidgetHost (in the browser process). This can then be
    used to update the device scale factor, vsync, and color space
    properties of the compositor (at present these properties updated only
    by attached RenderWidgetHostViewMacs).
    
    Rename BridgedNativeWidgetHost::SetSize to SetViewSize, to indicate
    that it is computed differently.
    
    Remove BridgedNativeWidgetHost::SetCompositorSize as its functionality
    can be rolled into the new function.
    
    Bug: 859152
    Change-Id: If00184c31f9c493ece4ea08ace11d0be3a866786
    Reviewed-on: https://chromium-review.googlesource.com/1175428
    Commit-Queue: ccameron <ccameron@chromium.org>
    Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584308}
    78a0d81f
bridged_native_widget_host_impl.h 5.88 KB