| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // TODO(oshima): Move following two to wm/coordinate_conversion.h | 43 // TODO(oshima): Move following two to wm/coordinate_conversion.h |
| 44 // Converts |rect| from |window|'s coordinates to the virtual screen | 44 // Converts |rect| from |window|'s coordinates to the virtual screen |
| 45 // coordinates. | 45 // coordinates. |
| 46 static gfx::Rect ConvertRectToScreen(aura::Window* window, | 46 static gfx::Rect ConvertRectToScreen(aura::Window* window, |
| 47 const gfx::Rect& rect); | 47 const gfx::Rect& rect); |
| 48 | 48 |
| 49 // Converts |rect| from virtual screen coordinates to the |window|'s | 49 // Converts |rect| from virtual screen coordinates to the |window|'s |
| 50 // coordinates. | 50 // coordinates. |
| 51 static gfx::Rect ConvertRectFromScreen(aura::Window* window, | 51 static gfx::Rect ConvertRectFromScreen(aura::Window* window, |
| 52 const gfx::Rect& rect); | 52 const gfx::Rect& rect); |
| 53 | |
| 54 // Returns a display::Display object for secondary display. Returns | |
| 55 // invalid display if there is no secondary display connected. | |
| 56 static const display::Display& GetSecondaryDisplay(); | |
| 57 | |
| 58 private: | 53 private: |
| 59 ScreenUtil() {} | 54 ScreenUtil() {} |
| 60 ~ScreenUtil() {} | 55 ~ScreenUtil() {} |
| 61 | 56 |
| 62 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); | 57 DISALLOW_COPY_AND_ASSIGN(ScreenUtil); |
| 63 }; | 58 }; |
| 64 | 59 |
| 65 } // namespace ash | 60 } // namespace ash |
| 66 | 61 |
| 67 #endif // ASH_SCREEN_UTIL_H_ | 62 #endif // ASH_SCREEN_UTIL_H_ |
| OLD | NEW |