From b2546a2b34a7c99f0f43c76d1176bb1cab6eda9b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 21 Jul 2016 06:03:11 -0600 Subject: [PATCH] Fix compilation error after merge --- brightray/browser/inspectable_web_contents_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 17463b10ed..dc3110be4e 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -90,7 +90,7 @@ bool IsPointInRect(const gfx::Point& point, const gfx::Rect& rect) { } bool IsPointInScreen(const gfx::Point& point) { - for (const auto& display : gfx::Screen::GetScreen()->GetAllDisplays()) { + for (const auto& display : display::Screen::GetScreen()->GetAllDisplays()) { if (IsPointInRect(point, display.bounds())) return true; } @@ -221,7 +221,7 @@ InspectableWebContentsImpl::InspectableWebContentsImpl( devtools_bounds_.set_width(800); } if (!IsPointInScreen(devtools_bounds_.origin())) { - gfx::Rect display = gfx::Screen::GetScreen()-> + gfx::Rect display = display::Screen::GetScreen()-> GetDisplayNearestWindow(web_contents->GetNativeView()).bounds(); devtools_bounds_.set_x(display.x() + (display.width() - devtools_bounds_.width()) / 2); devtools_bounds_.set_y(display.y() + (display.height() - devtools_bounds_.height()) / 2);