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

Side by Side Diff: chrome/browser/ui/gtk/avatar_menu_item_gtk.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "chrome/browser/profiles/avatar_menu_model.h" 10 #include "chrome/browser/profiles/avatar_menu_model.h"
(...skipping 11 matching lines...) Expand all
22 class AvatarMenuItemGtk : public content::NotificationObserver { 22 class AvatarMenuItemGtk : public content::NotificationObserver {
23 public: 23 public:
24 // Delegates opening or editing a profile. 24 // Delegates opening or editing a profile.
25 class Delegate { 25 class Delegate {
26 public: 26 public:
27 // Open a new browser window using the profile at |profile_index|. 27 // Open a new browser window using the profile at |profile_index|.
28 virtual void OpenProfile(size_t profile_index) = 0; 28 virtual void OpenProfile(size_t profile_index) = 0;
29 29
30 // Edit the profile given by |profile_index|. 30 // Edit the profile given by |profile_index|.
31 virtual void EditProfile(size_t profile_index) = 0; 31 virtual void EditProfile(size_t profile_index) = 0;
32
33 protected:
34 virtual ~Delegate() { }
32 }; 35 };
33 36
34 AvatarMenuItemGtk(Delegate* delegate, 37 AvatarMenuItemGtk(Delegate* delegate,
35 const AvatarMenuModel::Item& item, 38 const AvatarMenuModel::Item& item,
36 size_t item_index, 39 size_t item_index,
37 GtkThemeService* theme_service); 40 GtkThemeService* theme_service);
38 virtual ~AvatarMenuItemGtk(); 41 virtual ~AvatarMenuItemGtk();
39 42
40 // Returns the root widget for this menu item. 43 // Returns the root widget for this menu item.
41 GtkWidget* widget() { return widget_.get(); } 44 GtkWidget* widget() { return widget_.get(); }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // The unhighlighted color. Depending on the theme, this is either NULL or a 108 // The unhighlighted color. Depending on the theme, this is either NULL or a
106 // pointer to static data. 109 // pointer to static data.
107 const GdkColor* unhighlighted_color_; 110 const GdkColor* unhighlighted_color_;
108 111
109 content::NotificationRegistrar registrar_; 112 content::NotificationRegistrar registrar_;
110 113
111 DISALLOW_COPY_AND_ASSIGN(AvatarMenuItemGtk); 114 DISALLOW_COPY_AND_ASSIGN(AvatarMenuItemGtk);
112 }; 115 };
113 116
114 #endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_ 117 #endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698