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

Unified Diff: chrome/browser/ui/gtk/avatar_menu_item_gtk.h

Issue 8370021: Make avatar menu bubble as singleton and destroy all the menu items and menu model when bubble cl... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/avatar_menu_item_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/avatar_menu_item_gtk.h
===================================================================
--- chrome/browser/ui/gtk/avatar_menu_item_gtk.h (revision 106832)
+++ chrome/browser/ui/gtk/avatar_menu_item_gtk.h (working copy)
@@ -8,6 +8,7 @@
#include <gtk/gtk.h>
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/profiles/avatar_menu_model.h"
#include "ui/base/gtk/gtk_signal.h"
#include "ui/base/gtk/owned_widget_gtk.h"
@@ -36,6 +37,9 @@
GtkThemeService* theme_service);
virtual ~AvatarMenuItemGtk();
+ void OpenProfile();
+ void EditProfile();
+
// Returns the root widget for this menu item.
GtkWidget* widget() { return widget_.get(); }
@@ -72,6 +76,8 @@
// A weak pointer to a link button to edit the given profile. It is shown only
// when the user is hovering over the active profile.
GtkWidget* link_alignment_;
+
+ base::WeakPtrFactory<AvatarMenuItemGtk> weak_factory_;
};
#endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_
« no previous file with comments | « chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/avatar_menu_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698