Chromium Code Reviews| 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 |