From cf6f4708bcd86d5b8601dd391f10ef27475324c0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 21 Jul 2016 11:20:43 -0600 Subject: [PATCH] Fix building on Windows --- atom/browser/native_window_views.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 66fda3d..d6dc19b 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -52,6 +52,7 @@ #include "skia/ext/skia_utils_win.h" #include "ui/base/win/shell.h" #include "ui/display/win/screen_win.h" +#include "ui/display/screen.h" #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" #endif @@ -427,7 +428,7 @@ void NativeWindowViews::Maximize() { if (!thick_frame_) { restore_bounds_ = GetBounds(); auto display = - gfx::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition()); + display::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition()); SetBounds(display.work_area(), false); return; } @@ -490,7 +491,7 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) { if (fullscreen) { restore_bounds_ = GetBounds(); auto display = - gfx::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition()); + display::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition()); SetBounds(display.bounds(), false); } else { SetBounds(restore_bounds_, false); -- 2.7.4