OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileEnter, | 60 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileEnter, |
61 GdkEventCrossing*); | 61 GdkEventCrossing*); |
62 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileLeave, | 62 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileLeave, |
63 GdkEventCrossing*); | 63 GdkEventCrossing*); |
64 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileFocusIn, | 64 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileFocusIn, |
65 GdkEventFocus*); | 65 GdkEventFocus*); |
66 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileFocusOut, | 66 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileFocusOut, |
67 GdkEventFocus*); | 67 GdkEventFocus*); |
68 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileKeyPress, | 68 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnProfileKeyPress, |
69 GdkEventKey*); | 69 GdkEventKey*); |
| 70 CHROMEGTK_CALLBACK_1(AvatarMenuItemGtk, gboolean, OnEventBoxExpose, |
| 71 GdkEventExpose*); |
70 CHROMEGTK_CALLBACK_0(AvatarMenuItemGtk, void, OnEditProfileLinkClicked); | 72 CHROMEGTK_CALLBACK_0(AvatarMenuItemGtk, void, OnEditProfileLinkClicked); |
71 | 73 |
72 // Create all widgets in this menu item, using |theme_service|. | 74 // Create all widgets in this menu item, using |theme_service|. |
73 void Init(GtkThemeService* theme_service); | 75 void Init(GtkThemeService* theme_service); |
74 | 76 |
75 // A weak pointer to the item's delegate. | 77 // A weak pointer to the item's delegate. |
76 Delegate* delegate_; | 78 Delegate* delegate_; |
77 | 79 |
78 // Profile information to display for this item, e.g. user name, sync status. | 80 // Profile information to display for this item, e.g. user name, sync status. |
79 AvatarMenuModel::Item item_; | 81 AvatarMenuModel::Item item_; |
(...skipping 30 matching lines...) Expand all Loading... |
110 const GdkColor* unhighlighted_color_; | 112 const GdkColor* unhighlighted_color_; |
111 | 113 |
112 base::WeakPtrFactory<AvatarMenuItemGtk> weak_factory_; | 114 base::WeakPtrFactory<AvatarMenuItemGtk> weak_factory_; |
113 | 115 |
114 content::NotificationRegistrar registrar_; | 116 content::NotificationRegistrar registrar_; |
115 | 117 |
116 DISALLOW_COPY_AND_ASSIGN(AvatarMenuItemGtk); | 118 DISALLOW_COPY_AND_ASSIGN(AvatarMenuItemGtk); |
117 }; | 119 }; |
118 | 120 |
119 #endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_ | 121 #endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_ITEM_GTK_H_ |
OLD | NEW |