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

Unified Diff: ash/wm/window_state.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: and another rebase 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
« no previous file with comments | « ash/wm/overview/window_grid.cc ('k') | ash/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index e00970972a02ab827e91762c1f83ca8aa1def3c9..ac1ce8bcd173b72e9014fe7f9252aedfeeccf2c9 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -415,8 +415,10 @@ void WindowState::SetBoundsDirect(const gfx::Rect& bounds) {
if (window_->delegate() && !IsMaximized() && !IsFullscreen()) {
// Get the minimum usable size of the minimum size and the screen size.
gfx::Size min_size = window_->delegate()->GetMinimumSize();
- min_size.SetToMin(gfx::Screen::GetScreenFor(
- window_)->GetDisplayNearestWindow(window_).work_area().size());
+ min_size.SetToMin(gfx::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window_)
+ .work_area()
+ .size());
actual_new_bounds.set_width(
std::max(min_size.width(), actual_new_bounds.width()));
« no previous file with comments | « ash/wm/overview/window_grid.cc ('k') | ash/wm/workspace/multi_window_resize_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698