Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Side by Side Diff: ui/gfx/geometry/size_base.h

Issue 109433013: Move geometric types to a separate, more lightweight target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_GEOMETRY_SIZE_BASE_H_
6 #define UI_GFX_SIZE_BASE_H_ 6 #define UI_GFX_GEOMETRY_SIZE_BASE_H_
7 7
8 #include "ui/gfx/gfx_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 GFX_EXPORT SizeBase { 14 class GFX_EXPORT SizeBase {
15 public: 15 public:
16 Type width() const { return width_; } 16 Type width() const { return width_; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Do not make this public. 59 // Do not make this public.
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_GEOMETRY_SIZE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698