| Index: ui/display/display_finder.h
|
| diff --git a/ui/display/display_finder.h b/ui/display/display_finder.h
|
| index d63925923c77b719100caffa4917b16424065598..7381b15e18ef79470f1746bd64e2fcd324e2903e 100644
|
| --- a/ui/display/display_finder.h
|
| +++ b/ui/display/display_finder.h
|
| @@ -17,7 +17,8 @@ class Rect;
|
| namespace display {
|
| class Display;
|
|
|
| -// Returns the display in |displays| closest to |point|.
|
| +// Returns the display containing |point|. If no displays contain |point|, then
|
| +// this returns the display closest to |point|.
|
| DISPLAY_EXPORT const Display* FindDisplayNearestPoint(
|
| const std::vector<Display>& displays,
|
| const gfx::Point& point);
|
| @@ -28,6 +29,13 @@ DISPLAY_EXPORT const Display* FindDisplayWithBiggestIntersection(
|
| const std::vector<Display>& displays,
|
| const gfx::Rect& rect);
|
|
|
| +// Returns an iterator into |displays| of the Display whose bounds contains
|
| +// |point_in_screen|, or displays.end() if no Displays contains
|
| +// |point_in_screen|.
|
| +DISPLAY_EXPORT std::vector<Display>::const_iterator FindDisplayContainingPoint(
|
| + const std::vector<Display>& displays,
|
| + const gfx::Point& point_in_screen);
|
| +
|
| } // namespace display
|
|
|
| #endif // UI_DISPLAY_DISPLAY_FINDER_H_
|
|
|