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

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

Issue 1647003002: Make bookmark context menu asynchronous (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b564255_move_key_handler_out_of_message_loop
Patch Set: Removed loggings Created 4 years, 11 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_context_menu.h
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_context_menu.h b/chrome/browser/ui/views/bookmarks/bookmark_context_menu.h
index 87679c5b49a1976faa2dfddbd358d8436b5d5c43..5154f6ac2f4bfe41f39c1146dbed61fd9e31ef5a 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_context_menu.h
+++ b/chrome/browser/ui/views/bookmarks/bookmark_context_menu.h
@@ -27,6 +27,9 @@ class BookmarkContextMenuObserver {
// Invoked after the items have been removed from the model.
virtual void DidRemoveBookmarks() = 0;
+ // Invoked when the context menu is closed.
+ virtual void OnContextMenuClosed() = 0;
+
protected:
virtual ~BookmarkContextMenuObserver() {}
};
@@ -64,6 +67,8 @@ class BookmarkContextMenu : public BookmarkContextMenuControllerDelegate,
bool IsCommandEnabled(int command_id) const override;
bool IsCommandVisible(int command_id) const override;
bool ShouldCloseAllMenusOnExecute(int id) override;
+ void OnMenuClosed(views::MenuItemView* menu,
sky 2016/02/03 16:51:56 Remind me, is this called if the menu is closed be
mohsen 2016/02/03 22:14:12 If the runner is destroyed as a result of an Execu
sky 2016/02/04 03:32:59 The case I'm worried about is if this object is de
mohsen 2016/02/04 18:59:53 No, if MenuRunner is deleted, OnMenuClosed is not
+ views::MenuRunner::RunResult result) override;
// Overridden from BookmarkContextMenuControllerDelegate:
void CloseMenu() override;

Powered by Google App Engine
This is Rietveld 408576698