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

Unified Diff: chrome/browser/ui/app_list/app_list_positioner.h

Issue 93863002: Mac App Launcher is positioned on center of dock in certain cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Goddamn Reitveld. Created 7 years, 1 month 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/app_list/app_list_positioner.h
diff --git a/chrome/browser/ui/app_list/app_list_positioner.h b/chrome/browser/ui/app_list/app_list_positioner.h
index 08f5f78871a15d24f1bd623ecd3a7cd965dade63..f743a92e48d127ec253ab8ea69ce02b0f6e44fdc 100644
--- a/chrome/browser/ui/app_list/app_list_positioner.h
+++ b/chrome/browser/ui/app_list/app_list_positioner.h
@@ -68,6 +68,12 @@ class AppListPositioner {
// Returns the intended coordinates for the center of the window.
gfx::Point GetAnchorPointForShelfCorner(ScreenEdge shelf_edge) const;
+ // Finds the position for a window to anchor it to the center of the shelf.
+ // |shelf_edge| specifies the location of the shelf. It must not be
+ // SCREEN_EDGE_UNKNOWN. Returns the intended coordinates for the center of the
+ // window.
+ gfx::Point GetAnchorPointForShelfCenter(ScreenEdge shelf_edge) const;
+
// Finds the position for a window to anchor it to the shelf at a point
// closest to the user's mouse cursor. |shelf_edge| specifies the location of
// the shelf; |cursor| specifies the location of the user's mouse cursor.
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_positioner.cc » ('j') | chrome/browser/ui/app_list/app_list_positioner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698