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

Side by Side Diff: ui/gfx/geometry/vector2d_f.h

Issue 2255533002: Add TabControlFeature to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to head Created 4 years, 4 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
« no previous file with comments | « ui/gfx/geometry/vector2d.h ('k') | ui/gfx/geometry/vector3d_f.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 // Defines a simple float vector class. This class is used to indicate a 5 // Defines a simple float vector class. This class is used to indicate a
6 // distance in two dimensions between two points. Subtracting two points should 6 // distance in two dimensions between two points. Subtracting two points should
7 // produce a vector, and adding a vector to a point produces the point at the 7 // produce a vector, and adding a vector to a point produces the point at the
8 // vector's distance from the original point. 8 // vector's distance from the original point.
9 9
10 #ifndef UI_GFX_GEOMETRY_VECTOR2D_F_H_ 10 #ifndef UI_GFX_GEOMETRY_VECTOR2D_F_H_
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 GFX_EXPORT Vector2dF ScaleVector2d(const Vector2dF& v, 102 GFX_EXPORT Vector2dF ScaleVector2d(const Vector2dF& v,
103 float x_scale, 103 float x_scale,
104 float y_scale); 104 float y_scale);
105 105
106 // Return a vector that is |v| scaled by the given scale factor. 106 // Return a vector that is |v| scaled by the given scale factor.
107 inline Vector2dF ScaleVector2d(const Vector2dF& v, float scale) { 107 inline Vector2dF ScaleVector2d(const Vector2dF& v, float scale) {
108 return ScaleVector2d(v, scale, scale); 108 return ScaleVector2d(v, scale, scale);
109 } 109 }
110 110
111 // This is declared here for use in gtest-based unit tests but is defined in 111 // This is declared here for use in gtest-based unit tests but is defined in
112 // the gfx_test_support target. Depend on that to use this in your unit test. 112 // the //ui/gfx:test_support target. Depend on that to use this in your unit
113 // This should not be used in production code - call ToString() instead. 113 // test. This should not be used in production code - call ToString() instead.
114 void PrintTo(const Vector2dF& vector, ::std::ostream* os); 114 void PrintTo(const Vector2dF& vector, ::std::ostream* os);
115 115
116 } // namespace gfx 116 } // namespace gfx
117 117
118 #endif // UI_GFX_GEOMETRY_VECTOR2D_F_H_ 118 #endif // UI_GFX_GEOMETRY_VECTOR2D_F_H_
OLDNEW
« no previous file with comments | « ui/gfx/geometry/vector2d.h ('k') | ui/gfx/geometry/vector3d_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698