Add display::GetDisplayNearestView
https://codereview.chromium.org/2751833004
This commit is contained in:
parent
6415f181ca
commit
99e57f9072
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue