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

Side by Side Diff: ui/display/win/scaling_util.h

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years 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/test/display_manager_test_api.cc ('k') | ui/display/win/screen_win.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_DISPLAY_WIN_SCALING_UTIL_H_ 5 #ifndef UI_DISPLAY_WIN_SCALING_UTIL_H_
6 #define UI_DISPLAY_WIN_SCALING_UTIL_H_ 6 #define UI_DISPLAY_WIN_SCALING_UTIL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ui/display/display_export.h" 10 #include "ui/display/display_export.h"
11 #include "ui/display/manager/display_layout.h" 11 #include "ui/display/display_layout.h"
12 #include "ui/display/win/display_info.h" 12 #include "ui/display/win/display_info.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class Rect; 15 class Rect;
16 } 16 }
17 17
18 namespace display { 18 namespace display {
19 namespace win { 19 namespace win {
20 20
21 // Whether or not |a| shares an edge with |b|. 21 // Whether or not |a| shares an edge with |b|.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // 138 //
139 // The squared distance is used to avoid taking the square root as the common 139 // The squared distance is used to avoid taking the square root as the common
140 // usage is to compare distances greater than 1 unit. 140 // usage is to compare distances greater than 1 unit.
141 DISPLAY_EXPORT int64_t SquaredDistanceBetweenRects(const gfx::Rect& ref, 141 DISPLAY_EXPORT int64_t SquaredDistanceBetweenRects(const gfx::Rect& ref,
142 const gfx::Rect& rect); 142 const gfx::Rect& rect);
143 143
144 } // namespace win 144 } // namespace win
145 } // namespace display 145 } // namespace display
146 146
147 #endif // UI_DISPLAY_WIN_SCALING_UTIL_H_ 147 #endif // UI_DISPLAY_WIN_SCALING_UTIL_H_
OLDNEW
« no previous file with comments | « ui/display/test/display_manager_test_api.cc ('k') | ui/display/win/screen_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698