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

Unified Diff: ash/screen_util.h

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
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_util.h
diff --git a/ash/screen_util.h b/ash/screen_util.h
index 36ca242009a296a74f3fa7d83d35ad1356594a1f..b40d41f3d2efbaaef67a2285fa50b26ebb611858 100644
--- a/ash/screen_util.h
+++ b/ash/screen_util.h
@@ -30,11 +30,15 @@ class ASH_EXPORT ScreenUtil {
// Returns the display's work area bounds in parent coordinates.
static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window);
- private:
- ScreenUtil() {}
- ~ScreenUtil() {}
+ // 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.
+ static gfx::Rect GetDisplayBoundsWithShelf(aura::Window* window);
- DISALLOW_COPY_AND_ASSIGN(ScreenUtil);
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ScreenUtil);
msw 2017/05/05 16:58:56 Nice, I never knew about this
};
} // namespace ash
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698