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

Unified Diff: ui/app_list/views/app_list_menu_views.cc

Issue 250943008: Move enum MenuAnchorPosition to reduce deps on menu_item_view.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix indent Created 6 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
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_menu_views.cc
diff --git a/ui/app_list/views/app_list_menu_views.cc b/ui/app_list/views/app_list_menu_views.cc
index ee3e3e85cc033906aa9ab1fe9955c8ce2a15c15e..a920bdbb073e40062f0098b891b006abbfc3057c 100644
--- a/ui/app_list/views/app_list_menu_views.cc
+++ b/ui/app_list/views/app_list_menu_views.cc
@@ -31,10 +31,12 @@ AppListMenuViews::~AppListMenuViews() {}
void AppListMenuViews::RunMenuAt(views::MenuButton* button,
const gfx::Point& point) {
- ignore_result(menu_runner_->RunMenuAt(button->GetWidget(), button,
+ ignore_result(menu_runner_->RunMenuAt(button->GetWidget(),
+ button,
gfx::Rect(point, gfx::Size()),
- MenuItemView::TOPRIGHT,
- ui::MENU_SOURCE_NONE, 0));
+ views::MENU_ANCHOR_TOPRIGHT,
+ ui::MENU_SOURCE_NONE,
+ 0));
}
void AppListMenuViews::Cancel() {
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/search_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698