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

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

Issue 8921003: Linux/Gtk: Drawing a focus-ring around the avatar menu items to highlight selection. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years 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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/avatar_menu_item_gtk.cc » ('j') | chrome/browser/ui/gtk/avatar_menu_item_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698