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

Side by Side Diff: ui/gfx/geometry/box_f.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_BOX_F_H_ 5 #ifndef UI_GFX_GEOMETRY_BOX_F_H_
6 #define UI_GFX_BOX_F_H_ 6 #define UI_GFX_GEOMETRY_BOX_F_H_
7 7
8 #include "ui/gfx/point3_f.h" 8 #include "ui/gfx/geometry/point3_f.h"
9 #include "ui/gfx/vector3d_f.h" 9 #include "ui/gfx/geometry/vector3d_f.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 // A 3d version of gfx::RectF, with the positive z-axis pointed towards 13 // A 3d version of gfx::RectF, with the positive z-axis pointed towards
14 // the camera. 14 // the camera.
15 class GFX_EXPORT BoxF { 15 class GFX_EXPORT BoxF {
16 public: 16 public:
17 BoxF() 17 BoxF()
18 : width_(0.f), 18 : width_(0.f),
19 height_(0.f), 19 height_(0.f),
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return BoxF(b.x() + v.x(), 150 return BoxF(b.x() + v.x(),
151 b.y() + v.y(), 151 b.y() + v.y(),
152 b.z() + v.z(), 152 b.z() + v.z(),
153 b.width(), 153 b.width(),
154 b.height(), 154 b.height(),
155 b.depth()); 155 b.depth());
156 } 156 }
157 157
158 } // namespace gfx 158 } // namespace gfx
159 159
160 #endif // UI_GFX_BOX_F_H_ 160 #endif // UI_GFX_GEOMETRY_BOX_F_H_
OLDNEW
« ui/aura/aura.gyp ('K') | « ui/gfx/box_unittest.cc ('k') | ui/gfx/geometry/box_f.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698