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

Unified Diff: chrome/browser/gtk/menu_gtk.h

Issue 159815: Refactor bookmark clipboard code to be cross platform. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix UMR Created 11 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/gtk/menu_gtk.h
===================================================================
--- chrome/browser/gtk/menu_gtk.h (revision 22359)
+++ chrome/browser/gtk/menu_gtk.h (working copy)
@@ -9,6 +9,7 @@
#include <string>
+#include "base/task.h"
#include "chrome/common/owned_widget_gtk.h"
class SkBitmap;
@@ -114,6 +115,9 @@
// recursive and does not support sub-menus.
void BuildMenuFromDelegate();
+ // Contains implementation for OnMenuShow.
+ void UpdateMenu();
+
// Callback for when a menu item is clicked.
static void OnMenuItemActivated(GtkMenuItem* menuitem, MenuGtk* menu);
@@ -142,6 +146,8 @@
// menu items from getting activated when we are setting up the
// menu.
static bool block_activation_;
+
+ ScopedRunnableMethodFactory<MenuGtk> factory_;
};
#endif // CHROME_BROWSER_GTK_MENU_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698