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

Unified Diff: ash/wm/lock_window_state.cc

Issue 2860163005: chromeos: gets rid of wm_screen_util (Closed)
Patch Set: include Created 3 years, 7 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/lock_window_state.cc
diff --git a/ash/wm/lock_window_state.cc b/ash/wm/lock_window_state.cc
index b516da16ad4421dee8c45b1b86a78c00d21d4b9e..182e550ea34db94a7d1175740939d1fcf2e0def4 100644
--- a/ash/wm/lock_window_state.cc
+++ b/ash/wm/lock_window_state.cc
@@ -6,13 +6,13 @@
#include <utility>
+#include "ash/screen_util.h"
#include "ash/wm/lock_layout_manager.h"
#include "ash/wm/window_animation_types.h"
#include "ash/wm/window_state.h"
#include "ash/wm/window_state_delegate.h"
#include "ash/wm/window_state_util.h"
#include "ash/wm/wm_event.h"
-#include "ash/wm/wm_screen_util.h"
#include "ash/wm_window.h"
#include "base/memory/ptr_util.h"
#include "ui/gfx/geometry/rect.h"
@@ -172,7 +172,8 @@ void LockWindowState::UpdateBounds(wm::WindowState* window_state) {
keyboard_controller->keyboard_visible()) {
keyboard_bounds = keyboard_controller->current_keyboard_bounds();
}
- gfx::Rect bounds = wm::GetDisplayBoundsWithShelf(window_state->window());
+ gfx::Rect bounds = ScreenUtil::GetDisplayBoundsWithShelf(
+ window_state->window()->aura_window());
bounds.set_height(bounds.height() - keyboard_bounds.height());
VLOG(1) << "Updating window bounds to: " << bounds.ToString();

Powered by Google App Engine
This is Rietveld 408576698