| 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 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class Window; | 12 class Window; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace display { | |
| 16 class Display; | |
| 17 } | |
| 18 | |
| 19 namespace gfx { | 15 namespace gfx { |
| 20 class Rect; | 16 class Rect; |
| 21 class Point; | |
| 22 } | 17 } |
| 23 | 18 |
| 24 namespace ash { | 19 namespace ash { |
| 25 | 20 |
| 26 class ASH_EXPORT ScreenUtil { | 21 class ASH_EXPORT ScreenUtil { |
| 27 public: | 22 public: |
| 28 // Returns the bounds for maximized windows in parent coordinates. | 23 // Returns the bounds for maximized windows in parent coordinates. |
| 29 // Maximized windows trigger auto-hiding the shelf. | 24 // Maximized windows trigger auto-hiding the shelf. |
| 30 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); | 25 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window); |
| 31 | 26 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 private: | 43 private: |
| 49 ScreenUtil() {} | 44 ScreenUtil() {} |
| 50 ~ScreenUtil() {} | 45 ~ScreenUtil() {} |
| 51 | 46 |
| 52 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); | 47 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); |
| 53 }; | 48 }; |
| 54 | 49 |
| 55 } // namespace ash | 50 } // namespace ash |
| 56 | 51 |
| 57 #endif // ASH_SCREEN_UTIL_H_ | 52 #endif // ASH_SCREEN_UTIL_H_ |
| OLD | NEW |