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

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: Put static method below 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..5a293fce7d606a3b634d36d77d0d0f9a5d8e5141 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
//
@@ -50,6 +51,15 @@ class AvatarMenuButton : public views::MenuButton,
}
bool button_on_right() { return button_on_right_; }
+ // 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);
+
private:
// views::ViewTargeterDelegate:
virtual bool DoesIntersectRect(const views::View* target,
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view.cc ('k') | chrome/browser/ui/views/profiles/avatar_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698