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 | 7 |
8 #include "ui/base/ui_export.h" | 8 #include "ui/base/ui_export.h" |
9 #include "ui/gfx/point_base.h" | 9 #include "ui/gfx/point_base.h" |
10 | 10 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 typedef unsigned long DWORD; | 12 typedef unsigned long DWORD; |
13 typedef struct tagPOINT POINT; | 13 typedef struct tagPOINT POINT; |
| 14 #elif defined(OS_IOS) |
| 15 #include <CoreGraphics/CoreGraphics.h> |
14 #elif defined(OS_MACOSX) | 16 #elif defined(OS_MACOSX) |
15 #include <ApplicationServices/ApplicationServices.h> | 17 #include <ApplicationServices/ApplicationServices.h> |
16 #endif | 18 #endif |
17 | 19 |
18 namespace gfx { | 20 namespace gfx { |
19 | 21 |
20 // A point has an x and y coordinate. | 22 // A point has an x and y coordinate. |
21 class UI_EXPORT Point : public PointBase<Point, int> { | 23 class UI_EXPORT Point : public PointBase<Point, int> { |
22 public: | 24 public: |
23 Point(); | 25 Point(); |
(...skipping 21 matching lines...) Expand all Loading... |
45 std::string ToString() const; | 47 std::string ToString() const; |
46 }; | 48 }; |
47 | 49 |
48 #if !defined(COMPILER_MSVC) | 50 #if !defined(COMPILER_MSVC) |
49 extern template class PointBase<Point, int>; | 51 extern template class PointBase<Point, int>; |
50 #endif | 52 #endif |
51 | 53 |
52 } // namespace gfx | 54 } // namespace gfx |
53 | 55 |
54 #endif // UI_GFX_POINT_H_ | 56 #endif // UI_GFX_POINT_H_ |
OLD | NEW |