Add display::GetDisplayNearestView

https://codereview.chromium.org/2751833004
This commit is contained in:
Aleksei Kuzmin 2017-06-17 01:09:00 +03:00
parent 6415f181ca
commit 99e57f9072
3 changed files with 3 additions and 3 deletions

View file

@ -219,7 +219,7 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
gfx::Rect display;
if (web_contents->GetNativeView()) {
display = display::Screen::GetScreen()->
GetDisplayNearestWindow(web_contents->GetNativeView()).bounds();
GetDisplayNearestView(web_contents->GetNativeView()).bounds();
} else {
display = display::Screen::GetScreen()->GetPrimaryDisplay().bounds();
}