| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SCREEN_UTIL_H_ | 5 #ifndef ASH_SCREEN_UTIL_H_ |
| 6 #define ASH_SCREEN_UTIL_H_ | 6 #define ASH_SCREEN_UTIL_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Returns the bounds for maximized windows in parent coordinates. | 23 // Returns the bounds for maximized windows in parent coordinates. |
| 24 // Maximized windows trigger auto-hiding the shelf. | 24 // Maximized windows trigger auto-hiding the shelf. |
| 25 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); | 25 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); |
| 26 | 26 |
| 27 // Returns the display bounds in parent coordinates. | 27 // Returns the display bounds in parent coordinates. |
| 28 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window); | 28 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window); |
| 29 | 29 |
| 30 // Returns the display's work area bounds in parent coordinates. | 30 // Returns the display's work area bounds in parent coordinates. |
| 31 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window); | 31 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window); |
| 32 | 32 |
| 33 // TODO(oshima): Move following two to wm/coordinate_conversion.h | |
| 34 // Converts |rect| from |window|'s coordinates to the virtual screen | |
| 35 // coordinates. | |
| 36 static gfx::Rect ConvertRectToScreen(aura::Window* window, | |
| 37 const gfx::Rect& rect); | |
| 38 | |
| 39 // Converts |rect| from virtual screen coordinates to the |window|'s | |
| 40 // coordinates. | |
| 41 static gfx::Rect ConvertRectFromScreen(aura::Window* window, | |
| 42 const gfx::Rect& rect); | |
| 43 private: | 33 private: |
| 44 ScreenUtil() {} | 34 ScreenUtil() {} |
| 45 ~ScreenUtil() {} | 35 ~ScreenUtil() {} |
| 46 | 36 |
| 47 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); | 37 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); |
| 48 }; | 38 }; |
| 49 | 39 |
| 50 } // namespace ash | 40 } // namespace ash |
| 51 | 41 |
| 52 #endif // ASH_SCREEN_UTIL_H_ | 42 #endif // ASH_SCREEN_UTIL_H_ |
| OLD | NEW |