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

Side by Side Diff: ui/gfx/geometry/quad_f.cc

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 #include "ui/gfx/quad_f.h" 5 #include "ui/gfx/geometry/quad_f.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 void QuadF::operator=(const RectF& rect) { 13 void QuadF::operator=(const RectF& rect) {
14 p1_ = PointF(rect.x(), rect.y()); 14 p1_ = PointF(rect.x(), rect.y());
15 p2_ = PointF(rect.right(), rect.y()); 15 p2_ = PointF(rect.right(), rect.y());
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return result; 118 return result;
119 } 119 }
120 120
121 QuadF operator-(const QuadF& lhs, const Vector2dF& rhs) { 121 QuadF operator-(const QuadF& lhs, const Vector2dF& rhs) {
122 QuadF result = lhs; 122 QuadF result = lhs;
123 result -= rhs; 123 result -= rhs;
124 return result; 124 return result;
125 } 125 }
126 126
127 } // namespace gfx 127 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698