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

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

Issue 2215223004: mash: Migrate ShelfLayoutManager ScreenUtil usage to ash common types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore screen bounds conversion for app list. Created 4 years, 4 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/aura/wm_shell_aura.cc ('k') | ash/common/wm/wm_screen_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/wm_screen_util.h
diff --git a/ash/common/wm/wm_screen_util.h b/ash/common/wm/wm_screen_util.h
index 6ba858aca4eed5113d9c8b4bea776b1e5539eebe..6dcfc1694a450a008a09584355929a9d63700425 100644
--- a/ash/common/wm/wm_screen_util.h
+++ b/ash/common/wm/wm_screen_util.h
@@ -22,6 +22,12 @@ ASH_EXPORT gfx::Rect GetDisplayWorkAreaBounds(WmWindow* window);
ASH_EXPORT gfx::Rect GetDisplayBoundsInParent(WmWindow* window);
ASH_EXPORT gfx::Rect GetMaximizedWindowBoundsInParent(WmWindow* window);
+// Returns the bounds of the physical display containing the shelf for |window|.
+// Physical displays can differ from logical displays in unified desktop mode.
+// TODO(oshima): Consider using physical displays in window layout, instead of
+// root windows, and only use logical display in display management code.
+ASH_EXPORT gfx::Rect GetDisplayBoundsWithShelf(WmWindow* window);
+
} // namespace wm
} // namespace ash
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/common/wm/wm_screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698