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

Unified Diff: ash/wm/common/wm_screen_util.cc

Issue 1923983003: Makes WorkspaceLayoutManager use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/common/wm_screen_util.cc
diff --git a/ash/wm/common/wm_screen_util.cc b/ash/wm/common/wm_screen_util.cc
index dc96aa75fc0361d592782ca3b2826994d1e00f02..961fbf51e378cb0ec104416d3e449f8c7c6dad4a 100644
--- a/ash/wm/common/wm_screen_util.cc
+++ b/ash/wm/common/wm_screen_util.cc
@@ -12,8 +12,12 @@ namespace ash {
namespace wm {
gfx::Rect GetDisplayWorkAreaBoundsInParent(WmWindow* window) {
+ return GetDisplayWorkAreaBounds(window->GetParent());
+}
+
+gfx::Rect GetDisplayWorkAreaBounds(WmWindow* window) {
gfx::Display display = window->GetDisplayNearestWindow();
- return window->GetParent()->ConvertRectFromScreen(display.work_area());
+ return window->ConvertRectFromScreen(display.work_area());
}
gfx::Rect GetDisplayBoundsInParent(WmWindow* window) {

Powered by Google App Engine
This is Rietveld 408576698