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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_editor_view.h

Issue 9814031: views/bookmarks: Convert BookmarkEditorView from Menu2 API to MenuModelApdater/MenuRunner API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 8 years, 9 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 | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_editor_view.h
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_editor_view.h b/chrome/browser/ui/views/bookmarks/bookmark_editor_view.h
index e087d354ebd0d19dd47eb6dd10417129d70fb319..df94a2001e3f7584d7b45063d7beb58bbc38bb1c 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_editor_view.h
+++ b/chrome/browser/ui/views/bookmarks/bookmark_editor_view.h
@@ -25,7 +25,7 @@
namespace views {
class Label;
-class Menu2;
+class MenuRunner;
class TextButton;
class TreeView;
}
@@ -224,6 +224,8 @@ class BookmarkEditorView : public BookmarkEditor,
void UpdateExpandedNodes(EditorNode* editor_node,
BookmarkExpandedStateTracker::Nodes* expanded_nodes);
+ ui::SimpleMenuModel* GetMenuModel();
+
// Profile the entry is from.
Profile* profile_;
@@ -255,10 +257,8 @@ class BookmarkEditorView : public BookmarkEditor,
const EditDetails details_;
// The context menu.
- scoped_ptr<ui::SimpleMenuModel> context_menu_contents_;
-#if !defined(USE_AURA)
- scoped_ptr<views::Menu2> context_menu_;
-#endif
+ scoped_ptr<ui::SimpleMenuModel> context_menu_model_;
+ scoped_ptr<views::MenuRunner> context_menu_runner_;
// Mode used to create nodes from.
BookmarkModel* bb_model_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698