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

Unified Diff: chrome/browser/ui/views/task_manager_view.h

Issue 2253683003: Turn TaskManagerView Context Menu Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/task_manager_view.h
diff --git a/chrome/browser/ui/views/task_manager_view.h b/chrome/browser/ui/views/task_manager_view.h
index 13bac52c08dd2379937a9fa06fc452e2cfd73a01..55e0311ce28e8223dda2aee7b0993754fbe25879 100644
--- a/chrome/browser/ui/views/task_manager_view.h
+++ b/chrome/browser/ui/views/task_manager_view.h
@@ -86,6 +86,7 @@ class TaskManagerView : public TableViewDelegate,
bool IsCommandIdChecked(int id) const override;
bool IsCommandIdEnabled(int id) const override;
void ExecuteCommand(int id, int event_flags) override;
+ void MenuClosed(ui::SimpleMenuModel* source) override;
private:
friend class TaskManagerViewTest;
@@ -111,6 +112,7 @@ class TaskManagerView : public TableViewDelegate,
std::unique_ptr<TaskManagerTableModel> table_model_;
+ std::unique_ptr<ui::SimpleMenuModel> menu_model_;
std::unique_ptr<views::MenuRunner> menu_runner_;
// We need to own the text of the menu, the Windows API does not copy it.
« no previous file with comments | « no previous file | chrome/browser/ui/views/task_manager_view.cc » ('j') | chrome/browser/ui/views/task_manager_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698