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

Unified Diff: chrome/browser/ui/views/download/download_shelf_context_menu_view.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
Index: chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
diff --git a/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc b/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
index d65f7fd02c1e93490663639edab5385a38fc8f4d..570f3e3bea9589a89c61a2e10691a1994c36cf57 100644
--- a/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
+++ b/chrome/browser/ui/views/download/download_shelf_context_menu_view.cc
@@ -10,7 +10,6 @@
#include "content/public/browser/download_item.h"
#include "content/public/browser/page_navigator.h"
#include "ui/gfx/point.h"
-#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/controls/menu/menu_runner.h"
DownloadShelfContextMenuView::DownloadShelfContextMenuView(
@@ -31,11 +30,11 @@ void DownloadShelfContextMenuView::Run(views::Widget* parent_widget,
menu_runner_.reset(new views::MenuRunner(menu_model));
// The menu's alignment is determined based on the UI layout.
- views::MenuItemView::AnchorPosition position;
+ views::MenuAnchorPosition position;
if (base::i18n::IsRTL())
- position = views::MenuItemView::TOPRIGHT;
+ position = views::MENU_ANCHOR_TOPRIGHT;
else
- position = views::MenuItemView::TOPLEFT;
+ position = views::MENU_ANCHOR_TOPLEFT;
// The return value of RunMenuAt indicates whether the MenuRunner was deleted
// while running the menu, which indicates that the containing view may have

Powered by Google App Engine
This is Rietveld 408576698