GetNativeScreen -> GetScreen
This commit is contained in:
parent
f8f97687dc
commit
df386f854f
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
|
|||
devtools_bounds_.set_height(600);
|
||||
devtools_bounds_.set_width(800);
|
||||
}
|
||||
gfx::Rect display = gfx::Screen::GetNativeScreen()
|
||||
gfx::Rect display = gfx::Screen::GetScreen()
|
||||
->GetDisplayNearestWindow(web_contents->GetNativeView()).bounds();
|
||||
if (!IsPointInRect(devtools_bounds_.origin(), display)) {
|
||||
devtools_bounds_.set_x(display.x() + (display.width() - devtools_bounds_.width()) / 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue