Share code between content::Get{Default,NativeView}ScreenInfo
On Aura platforms, calling display::screen::GetDisplayNearestView() with a nullptr as the native view always results in the primary display being returned. Use this fact to implement GetDefaultScreenInfo() in terms of GetNativeViewScreenInfo(). Change-Id: I51275e03449f73450d4aa20629a674beb7298182 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2228531Reviewed-by:ccameron <ccameron@chromium.org> Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com> Cr-Commit-Position: refs/heads/master@{#774832}
Showing
Please register or sign in to comment