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

Unified Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | « cc/trees/layer_tree_impl.cc ('k') | chrome/browser/ui/views/app_list/app_list_controller_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_service_mac.mm
diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
index 15a2cf27821771a45663160fe6bd2c586456ccb7..677ed2b999380c4ce46a541ccb1f51a71955a329 100644
--- a/chrome/browser/ui/app_list/app_list_service_mac.mm
+++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
@@ -329,8 +329,8 @@ NSPoint GetAppListWindowOrigin(NSWindow* window) {
const NSSize window_size = [window frame].size;
gfx::Rect anchor_area = display.work_area();
anchor_area.Inset(window_size.width / 2, window_size.height / 2);
- anchor.ClampToMin(anchor_area.origin());
- anchor.ClampToMax(anchor_area.bottom_right());
+ anchor.SetToMax(anchor_area.origin());
+ anchor.SetToMin(anchor_area.bottom_right());
// Move anchor to the dock, keeping the other axis aligned with the cursor.
switch (dock_location) {
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | chrome/browser/ui/views/app_list/app_list_controller_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698