Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: ui/display/display_finder.h

Issue 1945903002: Move display_finder to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/display/display.gyp ('k') | ui/display/display_finder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 UI_GFX_DISPLAY_FINDER_H_ 5 #ifndef UI_DISPLAY_DISPLAY_FINDER_H_
6 #define UI_GFX_DISPLAY_FINDER_H_ 6 #define UI_DISPLAY_DISPLAY_FINDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/gfx/gfx_export.h" 10 #include "ui/display/display_export.h"
11 11
12 namespace gfx { 12 namespace gfx {
13
14 class Display; 13 class Display;
15 class Point; 14 class Point;
16 class Rect; 15 class Rect;
16 }
17
18 namespace display {
19 using Display = gfx::Display;
Daniel Erat 2016/05/09 17:42:20 i have a preference for avoiding using directives
oshima 2016/05/09 17:56:54 This is necessary to convert the client of this he
17 20
18 // Returns the display in |displays| closest to |point|. 21 // Returns the display in |displays| closest to |point|.
19 GFX_EXPORT const Display* FindDisplayNearestPoint( 22 DISPLAY_EXPORT const Display* FindDisplayNearestPoint(
20 const std::vector<Display>& displays, 23 const std::vector<Display>& displays,
21 const Point& point); 24 const gfx::Point& point);
22 25
23 // Returns the display in |displays| with the biggest intersection of |rect|. 26 // Returns the display in |displays| with the biggest intersection of |rect|.
24 // If none of the displays intersect |rect| null is returned. 27 // If none of the displays intersect |rect| null is returned.
25 GFX_EXPORT const Display* FindDisplayWithBiggestIntersection( 28 DISPLAY_EXPORT const Display* FindDisplayWithBiggestIntersection(
26 const std::vector<Display>& displays, 29 const std::vector<Display>& displays,
27 const Rect& rect); 30 const gfx::Rect& rect);
28 31
29 } // namespace gfx 32 } // namespace display
30 33
31 #endif // UI_GFX_DISPLAY_FINDER_H_ 34 #endif // UI_DISPLAY_DISPLAY_FINDER_H_
OLDNEW
« no previous file with comments | « ui/display/display.gyp ('k') | ui/display/display_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698