| Index: extensions/browser/app_window/app_window.cc
|
| diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
|
| index 1f0257e7c9182dfdcfa463e0fd84ebd0452a5a2e..08d2e56127789ace1e1021c84167de0af0e59140 100644
|
| --- a/extensions/browser/app_window/app_window.cc
|
| +++ b/extensions/browser/app_window/app_window.cc
|
| @@ -53,8 +53,8 @@
|
| #include "extensions/grit/extensions_browser_resources.h"
|
| #include "third_party/skia/include/core/SkRegion.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| +#include "ui/display/screen.h"
|
| #include "ui/events/keycodes/keyboard_codes.h"
|
| -#include "ui/gfx/screen.h"
|
|
|
| #if !defined(OS_MACOSX)
|
| #include "components/prefs/pref_service.h"
|
| @@ -857,13 +857,12 @@ void AppWindow::SetNativeWindowFullscreen() {
|
|
|
| bool AppWindow::IntersectsWithTaskbar() const {
|
| #if defined(OS_WIN)
|
| - gfx::Screen* screen = gfx::Screen::GetScreen();
|
| + display::Screen* screen = display::Screen::GetScreen();
|
| gfx::Rect window_bounds = native_app_window_->GetRestoredBounds();
|
| - std::vector<gfx::Display> displays = screen->GetAllDisplays();
|
| + std::vector<display::Display> displays = screen->GetAllDisplays();
|
|
|
| - for (std::vector<gfx::Display>::const_iterator it = displays.begin();
|
| - it != displays.end();
|
| - ++it) {
|
| + for (std::vector<display::Display>::const_iterator it = displays.begin();
|
| + it != displays.end(); ++it) {
|
| gfx::Rect taskbar_bounds = it->bounds();
|
| taskbar_bounds.Subtract(it->work_area());
|
| if (taskbar_bounds.IsEmpty())
|
| @@ -1018,7 +1017,7 @@ void AppWindow::SaveWindowPosition() {
|
|
|
| gfx::Rect bounds = native_app_window_->GetRestoredBounds();
|
| gfx::Rect screen_bounds =
|
| - gfx::Screen::GetScreen()->GetDisplayMatching(bounds).work_area();
|
| + display::Screen::GetScreen()->GetDisplayMatching(bounds).work_area();
|
| ui::WindowShowState window_state = native_app_window_->GetRestoredState();
|
| cache->SaveGeometry(
|
| extension_id(), window_key_, bounds, screen_bounds, window_state);
|
| @@ -1084,8 +1083,8 @@ AppWindow::CreateParams AppWindow::LoadDefaults(CreateParams params)
|
| &cached_state)) {
|
| // App window has cached screen bounds, make sure it fits on screen in
|
| // case the screen resolution changed.
|
| - gfx::Screen* screen = gfx::Screen::GetScreen();
|
| - gfx::Display display = screen->GetDisplayMatching(cached_bounds);
|
| + display::Screen* screen = display::Screen::GetScreen();
|
| + display::Display display = screen->GetDisplayMatching(cached_bounds);
|
| gfx::Rect current_screen_bounds = display.work_area();
|
| SizeConstraints constraints(params.GetWindowMinimumSize(gfx::Insets()),
|
| params.GetWindowMaximumSize(gfx::Insets()));
|
|
|