| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_GFX_DISPLAY_FINDER_H_ | |
| 6 #define UI_GFX_DISPLAY_FINDER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "ui/gfx/gfx_export.h" | |
| 11 | |
| 12 namespace gfx { | |
| 13 | |
| 14 class Display; | |
| 15 class Point; | |
| 16 class Rect; | |
| 17 | |
| 18 // Returns the display in |displays| closest to |point|. | |
| 19 GFX_EXPORT const Display* FindDisplayNearestPoint( | |
| 20 const std::vector<Display>& displays, | |
| 21 const Point& point); | |
| 22 | |
| 23 // Returns the display in |displays| with the biggest intersection of |rect|. | |
| 24 // If none of the displays intersect |rect| null is returned. | |
| 25 GFX_EXPORT const Display* FindDisplayWithBiggestIntersection( | |
| 26 const std::vector<Display>& displays, | |
| 27 const Rect& rect); | |
| 28 | |
| 29 } // namespace gfx | |
| 30 | |
| 31 #endif // UI_GFX_DISPLAY_FINDER_H_ | |
| OLD | NEW |