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_BASE_H_ | 5 #ifndef UI_GFX_POINT_BASE_H_ |
6 #define UI_GFX_POINT_BASE_H_ | 6 #define UI_GFX_POINT_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "ui/base/ui_export.h" | 12 #include "ui/gfx/gfx_export.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 // A point has an x and y coordinate. | 16 // A point has an x and y coordinate. |
17 template<typename Class, typename Type, typename VectorClass> | 17 template<typename Class, typename Type, typename VectorClass> |
18 class UI_EXPORT PointBase { | 18 class UI_EXPORT PointBase { |
19 public: | 19 public: |
20 Type x() const { return x_; } | 20 Type x() const { return x_; } |
21 Type y() const { return y_; } | 21 Type y() const { return y_; } |
22 | 22 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ~PointBase() {} | 78 ~PointBase() {} |
79 | 79 |
80 private: | 80 private: |
81 Type x_; | 81 Type x_; |
82 Type y_; | 82 Type y_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace gfx | 85 } // namespace gfx |
86 | 86 |
87 #endif // UI_GFX_POINT_BASE_H_ | 87 #endif // UI_GFX_POINT_BASE_H_ |
OLD | NEW |