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

Unified Diff: chrome/browser/ui/views/app_list/app_list_controller_win.cc

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: chrome/browser/ui/views/app_list/app_list_controller_win.cc
diff --git a/chrome/browser/ui/views/app_list/app_list_controller_win.cc b/chrome/browser/ui/views/app_list/app_list_controller_win.cc
index 8ccb9e0079828388c2ab12770793a0d327f73534..5c97b085a31606073b1902cad3ad314c79706ad6 100644
--- a/chrome/browser/ui/views/app_list/app_list_controller_win.cc
+++ b/chrome/browser/ui/views/app_list/app_list_controller_win.cc
@@ -709,8 +709,8 @@ gfx::Point AppListController::FindAnchorPoint(
view_size.height() / 2 + kSnapOffset);
gfx::Point anchor = FindReferencePoint(display, cursor);
- anchor.ClampToMin(bounds_rect.origin());
- anchor.ClampToMax(bounds_rect.bottom_right());
+ anchor.ClampToLowerBound(bounds_rect.origin());
+ anchor.ClampToUpperBound(bounds_rect.bottom_right());
return anchor;
}
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | ui/compositor/layer.cc » ('j') | ui/gfx/point_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698