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

Side by Side Diff: ui/gfx/point_base.h

Issue 23498059: Remove last dependencies on ui/base from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last rebase Created 7 years, 2 months 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
« no previous file with comments | « ui/gfx/point3_f.h ('k') | ui/gfx/point_conversions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/gfx/gfx_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 GFX_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
23 void SetPoint(Type x, Type y) { 23 void SetPoint(Type x, Type y) {
24 x_ = x; 24 x_ = x;
25 y_ = y; 25 y_ = y;
26 } 26 }
27 27
28 void set_x(Type x) { x_ = x; } 28 void set_x(Type x) { x_ = x; }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/gfx/point3_f.h ('k') | ui/gfx/point_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698