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

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: fix always-on-top and remove mus changes 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 c6ad707d60a74a1e37c140586a7365537b8794ef..7ae244858eec3152bb1273352bfeaa1759a211a6 100644
--- a/ash/wm/common/wm_screen_util.cc
+++ b/ash/wm/common/wm_screen_util.cc
@@ -12,6 +12,10 @@ namespace ash {
namespace wm {
gfx::Rect GetDisplayWorkAreaBoundsInParent(WmWindow* window) {
+ return GetDisplayWorkAreaBounds(window->GetParent());
+}
+
+gfx::Rect GetDisplayWorkAreaBounds(WmWindow* window) {
display::Display display = window->GetDisplayNearestWindow();
return window->GetParent()->ConvertRectFromScreen(display.work_area());
}

Powered by Google App Engine
This is Rietveld 408576698