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

Unified Diff: ui/gfx/point_base.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
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/gfx/point_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/point_base.h
diff --git a/ui/gfx/point_base.h b/ui/gfx/point_base.h
index 56a376bd6594284f8b4371ec3f2d33d6224bde1c..08952b69976d485a0495c8e50e4c9ee760f6e851 100644
--- a/ui/gfx/point_base.h
+++ b/ui/gfx/point_base.h
@@ -43,12 +43,12 @@ class UI_EXPORT PointBase {
y_ -= vector.y();
}
- void ClampToMax(const Class& max) {
+ void ClampToUpperBound(const Class& max) {
sky 2013/04/22 16:44:18 I agree the names are confusing, but I'm not sure
x_ = x_ <= max.x_ ? x_ : max.x_;
y_ = y_ <= max.y_ ? y_ : max.y_;
}
- void ClampToMin(const Class& min) {
+ void ClampToLowerBound(const Class& min) {
x_ = x_ >= min.x_ ? x_ : min.x_;
y_ = y_ >= min.y_ ? y_ : min.y_;
}
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/gfx/point_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698