| 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 | 
| 15 namespace gfx { | 19 namespace gfx { | 
| 16 class Display; |  | 
| 17 class Rect; | 20 class Rect; | 
| 18 class Point; | 21 class Point; | 
| 19 } | 22 } | 
| 20 | 23 | 
| 21 namespace display { |  | 
| 22 using Display = gfx::Display; |  | 
| 23 } |  | 
| 24 |  | 
| 25 namespace ash { | 24 namespace ash { | 
| 26 | 25 | 
| 27 class ASH_EXPORT ScreenUtil { | 26 class ASH_EXPORT ScreenUtil { | 
| 28  public: | 27  public: | 
| 29   // Finds the display that contains |point| in screeen coordinates. | 28   // Finds the display that contains |point| in screeen coordinates. | 
| 30   // Returns invalid display if there is no display that can satisfy | 29   // Returns invalid display if there is no display that can satisfy | 
| 31   // the condition. | 30   // the condition. | 
| 32   static display::Display FindDisplayContainingPoint(const gfx::Point& point); | 31   static display::Display FindDisplayContainingPoint(const gfx::Point& point); | 
| 33 | 32 | 
| 34   // Returns the bounds for maximized windows in parent coordinates. | 33   // Returns the bounds for maximized windows in parent coordinates. | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 68  private: | 67  private: | 
| 69   ScreenUtil() {} | 68   ScreenUtil() {} | 
| 70   ~ScreenUtil() {} | 69   ~ScreenUtil() {} | 
| 71 | 70 | 
| 72   DISALLOW_COPY_AND_ASSIGN(ScreenUtil); | 71   DISALLOW_COPY_AND_ASSIGN(ScreenUtil); | 
| 73 }; | 72 }; | 
| 74 | 73 | 
| 75 }  // namespace ash | 74 }  // namespace ash | 
| 76 | 75 | 
| 77 #endif  // ASH_SCREEN_UTIL_H_ | 76 #endif  // ASH_SCREEN_UTIL_H_ | 
| OLD | NEW | 
|---|