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

Unified Diff: ui/gfx/vector2d.h

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/vector2d.h
diff --git a/ui/gfx/vector2d.h b/ui/gfx/vector2d.h
index e22a7512c39cb402f7165eb268fdf805bed69fe0..239aec6bca8fc8d9fab1d9fdaae5b060a7acba96 100644
--- a/ui/gfx/vector2d.h
+++ b/ui/gfx/vector2d.h
@@ -40,12 +40,12 @@ class UI_EXPORT Vector2d {
void operator+=(const Vector2d& other) { Add(other); }
void operator-=(const Vector2d& other) { Subtract(other); }
- void ClampToMax(const Vector2d& max) {
+ void ClampToUpperBound(const Vector2d& max) {
x_ = x_ <= max.x_ ? x_ : max.x_;
y_ = y_ <= max.y_ ? y_ : max.y_;
}
- void ClampToMin(const Vector2d& min) {
+ void ClampToLowerBound(const Vector2d& min) {
x_ = x_ >= min.x_ ? x_ : min.x_;
y_ = y_ >= min.y_ ? y_ : min.y_;
}
« ui/gfx/point_base.h ('K') | « ui/gfx/size_unittest.cc ('k') | ui/gfx/vector2d_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698