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

Unified Diff: chrome/browser/ui/views/profiles/avatar_menu_button.h

Issue 678553002: Badge icons in windows task bar with avatar icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move code Created 6 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
Index: chrome/browser/ui/views/profiles/avatar_menu_button.h
diff --git a/chrome/browser/ui/views/profiles/avatar_menu_button.h b/chrome/browser/ui/views/profiles/avatar_menu_button.h
index d6b335e7aeafd11c3f6b54f483c7e3207ed1bcea..76baf4b495e7ebb2441a5e6e375819c1fa66636a 100644
--- a/chrome/browser/ui/views/profiles/avatar_menu_button.h
+++ b/chrome/browser/ui/views/profiles/avatar_menu_button.h
@@ -18,6 +18,7 @@ class Canvas;
class Image;
}
class Browser;
+class Profile;
// AvatarMenuButton
//
@@ -31,6 +32,15 @@ class AvatarMenuButton : public views::MenuButton,
// Internal class name.
static const char kViewClassName[];
+ // Get avatar images for the profile. |avatar| is used in the browser window
+ // whereas |taskbar_badge_avatar| is used for the OS taskbar. If
+ // |taskbar_badge_avatar| is empty then |avatar| should be used for the
+ // taskbar as well.
+ static void GetAvatarImages(Profile* profile,
+ gfx::Image* avatar,
+ gfx::Image* taskbar_badge_avatar,
+ bool *is_rectangle);
+
// Creates a new button. Unless |disabled| is true, clicking on the button
// will cause the profile menu to be displayed.
AvatarMenuButton(Browser* browser, bool disabled);
sky 2014/10/27 14:45:37 nit: style guide says constructor/destructor are b
Roger Tawa OOO till Jul 10th 2014/10/27 18:51:11 Done.

Powered by Google App Engine
This is Rietveld 408576698