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

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

Issue 162753002: Center and change the aspect ratio for the experimental app list. [Win] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android compile Created 6 years, 10 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/app_list/app_list_positioner.cc
diff --git a/chrome/browser/ui/app_list/app_list_positioner.cc b/chrome/browser/ui/app_list/app_list_positioner.cc
index 968b53ac105f58bd8661cecd518686c5a3e8a783..6593977d0bb81719952d919abdbb89c919711a0e 100644
--- a/chrome/browser/ui/app_list/app_list_positioner.cc
+++ b/chrome/browser/ui/app_list/app_list_positioner.cc
@@ -32,6 +32,10 @@ void AppListPositioner::WorkAreaInset(int left,
display_.set_work_area(work_area);
}
+gfx::Point AppListPositioner::GetAnchorPointForScreenCenter() const {
+ return display_.bounds().CenterPoint();
+}
+
gfx::Point AppListPositioner::GetAnchorPointForScreenCorner(
ScreenCorner corner) const {
const gfx::Rect& screen_rect = display_.bounds();
« no previous file with comments | « chrome/browser/ui/app_list/app_list_positioner.h ('k') | chrome/browser/ui/views/app_list/win/app_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698