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

Unified Diff: chrome/browser/bookmarks/bookmark_menu_controller.h

Issue 42460: Adds a bookmark menu. This is experimental. To turn on you need... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
Index: chrome/browser/bookmarks/bookmark_menu_controller.h
===================================================================
--- chrome/browser/bookmarks/bookmark_menu_controller.h (revision 12187)
+++ chrome/browser/bookmarks/bookmark_menu_controller.h (working copy)
@@ -39,7 +39,8 @@
PageNavigator* page_navigator,
HWND hwnd,
BookmarkNode* node,
- int start_child_index);
+ int start_child_index,
+ bool show_other_folder);
// Shows the menu.
void RunMenuAt(const gfx::Rect& bounds,
@@ -90,6 +91,10 @@
// BookmarkMenuController deletes itself as necessary.
~BookmarkMenuController();
+ // Builds the menu for the other bookmarks folder. This is added as the last
+ // item to menu_.
+ void BuildOtherFolderMenu(int* next_menu_id);
+
// Creates an entry in menu for each child node of |parent| starting at
// |start_child_index|.
void BuildMenu(BookmarkNode* parent,
@@ -131,6 +136,9 @@
// Is the menu being shown for a drop?
bool for_drop_;
+ // Should the other folder be shown?
+ bool show_other_folder_;
+
DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController);
};

Powered by Google App Engine
This is Rietveld 408576698