| OLD | NEW | 
|    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  Loading... | 
|  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_ | 
| OLD | NEW |