Fix building on Windows
This commit is contained in:
parent
6850500a65
commit
cf6f4708bc
1 changed files with 3 additions and 2 deletions
|
@ -52,6 +52,7 @@
|
||||||
#include "skia/ext/skia_utils_win.h"
|
#include "skia/ext/skia_utils_win.h"
|
||||||
#include "ui/base/win/shell.h"
|
#include "ui/base/win/shell.h"
|
||||||
#include "ui/display/win/screen_win.h"
|
#include "ui/display/win/screen_win.h"
|
||||||
|
#include "ui/display/screen.h"
|
||||||
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
|
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -427,7 +428,7 @@ void NativeWindowViews::Maximize() {
|
||||||
if (!thick_frame_) {
|
if (!thick_frame_) {
|
||||||
restore_bounds_ = GetBounds();
|
restore_bounds_ = GetBounds();
|
||||||
auto display =
|
auto display =
|
||||||
gfx::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition());
|
display::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition());
|
||||||
SetBounds(display.work_area(), false);
|
SetBounds(display.work_area(), false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -490,7 +491,7 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
restore_bounds_ = GetBounds();
|
restore_bounds_ = GetBounds();
|
||||||
auto display =
|
auto display =
|
||||||
gfx::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition());
|
display::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition());
|
||||||
SetBounds(display.bounds(), false);
|
SetBounds(display.bounds(), false);
|
||||||
} else {
|
} else {
|
||||||
SetBounds(restore_bounds_, false);
|
SetBounds(restore_bounds_, false);
|
||||||
|
|
Loading…
Reference in a new issue