Index: chrome/browser/ui/views/frame/browser_non_client_frame_view.h |
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h |
index 32a1ad4a764eb58fc542ab89988798dfd688457b..860f9c5b7056fbf6b576fcb36d2b7fe73daee684 100644 |
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.h |
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.h |
@@ -18,7 +18,8 @@ class NewAvatarButton; |
// A specialization of the NonClientFrameView object that provides additional |
// Browser-specific methods. |
-class BrowserNonClientFrameView : public views::NonClientFrameView { |
+class BrowserNonClientFrameView : public views::NonClientFrameView, |
+ public ProfileInfoCacheObserver { |
public: |
BrowserNonClientFrameView(BrowserFrame* frame, BrowserView* browser_view); |
virtual ~BrowserNonClientFrameView(); |
@@ -69,6 +70,14 @@ class BrowserNonClientFrameView : public views::NonClientFrameView { |
const NewAvatarButton::AvatarButtonStyle style); |
private: |
+ // Draws a taskbar icon if avatar are enabled, erases it otherwise. If |
+ // |taskbar_badge_avatar| is NULL, then |avatar| is used. |
+ void DrawTaskbarDecoration(const gfx::Image& avatar, |
+ const gfx::Image& taskbar_badge_avatar); |
+ |
+ // ProfileInfoCacheObserver implementation. |
noms (inactive)
2014/10/24 17:59:19
nit: the other override comment is "Overidden from
Roger Tawa OOO till Jul 10th
2014/10/24 18:36:07
Done.
|
+ void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
+ |
// The frame that hosts this view. |
BrowserFrame* frame_; |