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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_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/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 181371eea60742530ef6367d3717fec5411ebc3c..1ad31a6793dd45074b95d5a4bab196b7c31969cc 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -75,7 +75,6 @@
#include "ui/views/button_drag_utils.h"
#include "ui/views/controls/button/menu_button.h"
#include "ui/views/controls/label.h"
-#include "ui/views/controls/menu/menu_item_view.h"
#include "ui/views/drag_utils.h"
#include "ui/views/metrics.h"
#include "ui/views/view_constants.h"
@@ -90,7 +89,6 @@ using content::Referrer;
using ui::DropTargetEvent;
using views::CustomButton;
using views::MenuButton;
-using views::MenuItemView;
using views::View;
// Margins around the content.
@@ -567,11 +565,11 @@ views::MenuButton* BookmarkBarView::GetMenuButtonForNode(
void BookmarkBarView::GetAnchorPositionForButton(
views::MenuButton* button,
- MenuItemView::AnchorPosition* anchor) {
+ views::MenuAnchorPosition* anchor) {
if (button == other_bookmarked_button_ || button == overflow_button_)
- *anchor = MenuItemView::TOPRIGHT;
+ *anchor = views::MENU_ANCHOR_TOPRIGHT;
else
- *anchor = MenuItemView::TOPLEFT;
+ *anchor = views::MENU_ANCHOR_TOPLEFT;
}
views::MenuItemView* BookmarkBarView::GetMenu() {
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698