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

Unified Diff: ui/base/models/simple_menu_model.h

Issue 6336014: Fix printing PDFs through right click on Mac and Linux. Looks like they both... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.h
===================================================================
--- ui/base/models/simple_menu_model.h (revision 72573)
+++ ui/base/models/simple_menu_model.h (working copy)
@@ -9,6 +9,7 @@
#include <vector>
#include "base/string16.h"
+#include "base/task.h"
#include "ui/base/models/menu_model.h"
namespace ui {
@@ -138,10 +139,15 @@
void InsertItemAtIndex(const Item& item, int index);
void ValidateItem(const Item& item);
+ // Notify the delegate that the menu is closed.
+ void OnMenuClosed();
+
std::vector<Item> items_;
Delegate* delegate_;
+ ScopedRunnableMethodFactory<SimpleMenuModel> method_factory_;
+
DISALLOW_COPY_AND_ASSIGN(SimpleMenuModel);
};
« no previous file with comments | « no previous file | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698