Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2970)

Unified Diff: ash/wm/overview/window_grid.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: GetNativeScreen Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/wm/overview/window_grid.cc
diff --git a/ash/wm/overview/window_grid.cc b/ash/wm/overview/window_grid.cc
index ec3b362d34fd1b6ba3beb88acb46b75d5dd5ecc2..33fc3fe58dbdcae23d1ffd9cc81d077372c31c72 100644
--- a/ash/wm/overview/window_grid.cc
+++ b/ash/wm/overview/window_grid.cc
@@ -447,8 +447,8 @@ void WindowGrid::InitSelectionWidget(WindowSelector::Direction direction) {
const gfx::Rect target_bounds = SelectedWindow()->target_bounds();
gfx::Vector2d fade_out_direction =
GetSlideVectorForFadeIn(direction, target_bounds);
- gfx::Display dst_display = gfx::Screen::GetScreenFor(root_window_)->
- GetDisplayMatching(target_bounds);
+ gfx::Display dst_display =
+ gfx::Screen::GetScreen()->GetDisplayMatching(target_bounds);
selection_widget_->GetNativeWindow()->SetBoundsInScreen(
target_bounds - fade_out_direction, dst_display);
}

Powered by Google App Engine
This is Rietveld 408576698