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

Side by Side Diff: chrome/browser/ui/views/avatar_menu_button.h

Issue 7778025: Add avatar decoration to the windows7 taskbar (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_VIEWS_AVATAR_MENU_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 // Creates a new button. If |has_menu| is true then clicking on the button 29 // Creates a new button. If |has_menu| is true then clicking on the button
30 // will cause the profile menu to be displayed. 30 // will cause the profile menu to be displayed.
31 AvatarMenuButton(Browser* browser, bool has_menu); 31 AvatarMenuButton(Browser* browser, bool has_menu);
32 32
33 virtual ~AvatarMenuButton(); 33 virtual ~AvatarMenuButton();
34 34
35 // views::MenuButton 35 // views::MenuButton
36 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 36 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
37 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; 37 virtual bool HitTest(const gfx::Point& point) const OVERRIDE;
38 38
39 // views::TextButton
40 virtual void SetIcon(const SkBitmap& icon) OVERRIDE;
41
39 private: 42 private:
40 // views::ViewMenuDelegate 43 // views::ViewMenuDelegate
41 virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE; 44 virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE;
42 45
43 Browser* browser_; 46 Browser* browser_;
44 bool has_menu_; 47 bool has_menu_;
48 bool set_taskbar_decoration_;
45 scoped_ptr<ui::MenuModel> menu_model_; 49 scoped_ptr<ui::MenuModel> menu_model_;
46 50
47 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton); 51 DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton);
48 }; 52 };
49 53
50 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_ 54 #endif // CHROME_BROWSER_UI_VIEWS_AVATAR_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698