RemoteMacViews: Push window size and display properties
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:Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#584308}
Showing
Please register or sign in to comment