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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc

Issue 2588103004: Apply new WM shadows to app list. (Closed)
Patch Set: remove references on testing bots Created 4 years 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 | « ash/app_list/app_list_presenter_delegate.cc ('k') | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc b/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc
index bfe45c53900c51b0b76adad9a79b967f0600e613..9d0b415882090b4c8acc9b0183d8b9be7db67a07 100644
--- a/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_presenter_delegate_mus.cc
@@ -60,16 +60,11 @@ void AppListPresenterDelegateMus::Init(app_list::AppListView* view,
// Note: This would place the app list into the USER_WINDOWS container, unlike
// in classic ash, where it has it's own container.
- // Note: We can't center the app list until we have its dimensions, so we
- // init at (0, 0) and then reset its anchor point.
// TODO(mfomitchev): We are currently passing NULL for |parent|. It seems like
// the only thing this is used for is choosing the right scale factor in
// AppListMainView::PreloadIcons(), so we take care of that - perhaps by
// passing the display_id or the scale factor directly
- view->InitAsBubbleAtFixedLocation(nullptr /* parent */, current_apps_page,
- gfx::Point(), views::BubbleBorder::FLOAT,
- true /* border_accepts_events */);
-
+ view->InitAsBubble(nullptr /* parent */, current_apps_page);
view->SetAnchorPoint(
GetCenterOfDisplay(display_id, GetMinimumBoundsHeightForAppList(view)));
« no previous file with comments | « ash/app_list/app_list_presenter_delegate.cc ('k') | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698