OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_POINT_H_ | 5 #ifndef UI_GFX_POINT_H_ |
6 #define UI_GFX_POINT_H_ | 6 #define UI_GFX_POINT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/base/ui_export.h" | 9 #include "ui/base/ui_export.h" |
10 #include "ui/gfx/point_base.h" | 10 #include "ui/gfx/point_base.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 #if defined(OS_WIN) | 39 #if defined(OS_WIN) |
40 POINT ToPOINT() const; | 40 POINT ToPOINT() const; |
41 #elif defined(OS_MACOSX) | 41 #elif defined(OS_MACOSX) |
42 CGPoint ToCGPoint() const; | 42 CGPoint ToCGPoint() const; |
43 #endif | 43 #endif |
44 | 44 |
45 // Returns a string representation of point. | 45 // Returns a string representation of point. |
46 std::string ToString() const; | 46 std::string ToString() const; |
47 }; | 47 }; |
48 | 48 |
| 49 #if !defined(COMPILER_MSVC) |
| 50 extern template class PointBase<Point, int>; |
| 51 #endif |
| 52 |
49 } // namespace gfx | 53 } // namespace gfx |
50 | 54 |
51 #endif // UI_GFX_POINT_H_ | 55 #endif // UI_GFX_POINT_H_ |
OLD | NEW |