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_SIZE_BASE_H_ | 5 #ifndef UI_GFX_SIZE_BASE_H_ |
6 #define UI_GFX_SIZE_BASE_H_ | 6 #define UI_GFX_SIZE_BASE_H_ |
7 | 7 |
8 #include "ui/base/ui_export.h" | 8 #include "ui/gfx/gfx_export.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 | 11 |
12 // A size has width and height values. | 12 // A size has width and height values. |
13 template<typename Class, typename Type> | 13 template<typename Class, typename Type> |
14 class UI_EXPORT SizeBase { | 14 class UI_EXPORT SizeBase { |
15 public: | 15 public: |
16 Type width() const { return width_; } | 16 Type width() const { return width_; } |
17 Type height() const { return height_; } | 17 Type height() const { return height_; } |
18 | 18 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ~SizeBase() {} | 60 ~SizeBase() {} |
61 | 61 |
62 private: | 62 private: |
63 Type width_; | 63 Type width_; |
64 Type height_; | 64 Type height_; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace gfx | 67 } // namespace gfx |
68 | 68 |
69 #endif // UI_GFX_SIZE_BASE_H_ | 69 #endif // UI_GFX_SIZE_BASE_H_ |
OLD | NEW |