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

Side by Side Diff: ui/gfx/matrix3_f.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/interpolated_transform.h ('k') | ui/gfx/pango_util.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_MATRIX3_F_H_ 5 #ifndef UI_GFX_MATRIX3_F_H_
6 #define UI_GFX_MATRIX3_F_H_ 6 #define UI_GFX_MATRIX3_F_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/gfx/vector3d_f.h" 9 #include "ui/gfx/vector3d_f.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 class UI_EXPORT Matrix3F { 13 class GFX_EXPORT Matrix3F {
14 public: 14 public:
15 ~Matrix3F(); 15 ~Matrix3F();
16 16
17 static Matrix3F Zeros(); 17 static Matrix3F Zeros();
18 static Matrix3F Ones(); 18 static Matrix3F Ones();
19 static Matrix3F Identity(); 19 static Matrix3F Identity();
20 static Matrix3F FromOuterProduct(const Vector3dF& a, const Vector3dF& bt); 20 static Matrix3F FromOuterProduct(const Vector3dF& a, const Vector3dF& bt);
21 21
22 bool IsEqual(const Matrix3F& rhs) const; 22 bool IsEqual(const Matrix3F& rhs) const;
23 23
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 float data_[9]; 99 float data_[9];
100 }; 100 };
101 101
102 inline bool operator==(const Matrix3F& lhs, const Matrix3F& rhs) { 102 inline bool operator==(const Matrix3F& lhs, const Matrix3F& rhs) {
103 return lhs.IsEqual(rhs); 103 return lhs.IsEqual(rhs);
104 } 104 }
105 105
106 } // namespace gfx 106 } // namespace gfx
107 107
108 #endif // UI_GFX_MATRIX3_F_H_ 108 #endif // UI_GFX_MATRIX3_F_H_
OLDNEW
« no previous file with comments | « ui/gfx/interpolated_transform.h ('k') | ui/gfx/pango_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698