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

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

Issue 23486010: Adds a gfx_export.h to ui/gfx and converts all code in ui/gfx to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix find and replace error. Created 7 years, 3 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/point_f.h ('k') | ui/gfx/safe_integer_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_QUAD_F_H_ 5 #ifndef UI_GFX_QUAD_F_H_
6 #define UI_GFX_QUAD_F_H_ 6 #define UI_GFX_QUAD_F_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 10
11 #include "ui/base/ui_export.h" 11 #include "ui/gfx/gfx_export.h"
12 #include "ui/gfx/point_f.h" 12 #include "ui/gfx/point_f.h"
13 #include "ui/gfx/rect_f.h" 13 #include "ui/gfx/rect_f.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 16
17 // A Quad is defined by four corners, allowing it to have edges that are not 17 // A Quad is defined by four corners, allowing it to have edges that are not
18 // axis-aligned, unlike a Rect. 18 // axis-aligned, unlike a Rect.
19 class UI_EXPORT QuadF { 19 class UI_EXPORT QuadF {
20 public: 20 public:
21 QuadF() {} 21 QuadF() {}
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // Add a vector to a quad, offseting each point in the quad by the vector. 100 // Add a vector to a quad, offseting each point in the quad by the vector.
101 UI_EXPORT QuadF operator+(const QuadF& lhs, const Vector2dF& rhs); 101 UI_EXPORT QuadF operator+(const QuadF& lhs, const Vector2dF& rhs);
102 // Subtract a vector from a quad, offseting each point in the quad by the 102 // Subtract a vector from a quad, offseting each point in the quad by the
103 // inverse of the vector. 103 // inverse of the vector.
104 UI_EXPORT QuadF operator-(const QuadF& lhs, const Vector2dF& rhs); 104 UI_EXPORT QuadF operator-(const QuadF& lhs, const Vector2dF& rhs);
105 105
106 } // namespace gfx 106 } // namespace gfx
107 107
108 #endif // UI_GFX_QUAD_F_H_ 108 #endif // UI_GFX_QUAD_F_H_
OLDNEW
« no previous file with comments | « ui/gfx/point_f.h ('k') | ui/gfx/safe_integer_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698