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

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

Issue 8744010: Revert 112171 - Views: Custom drawing for GAIA avatar pictures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_bubble_view.cc ('k') | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/avatar_menu_button.h
===================================================================
--- chrome/browser/ui/views/avatar_menu_button.h (revision 112173)
+++ chrome/browser/ui/views/avatar_menu_button.h (working copy)
@@ -15,7 +15,6 @@
namespace gfx {
class Canvas;
-class Image;
}
class Browser;
@@ -37,8 +36,8 @@
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual bool HitTest(const gfx::Point& point) const OVERRIDE;
- virtual void SetIcon(const gfx::Image& icon,
- bool is_gaia_picture);
+ // views::TextButton
+ virtual void SetIcon(const SkBitmap& icon) OVERRIDE;
void ShowAvatarBubble();
@@ -51,12 +50,6 @@
bool set_taskbar_decoration_;
scoped_ptr<ui::MenuModel> menu_model_;
- // Use a scoped ptr because gfx::Image doesn't have a default constructor.
- scoped_ptr<gfx::Image> icon_;
- SkBitmap button_icon_;
- bool is_gaia_picture_;
- int old_height_;
-
DISALLOW_COPY_AND_ASSIGN(AvatarMenuButton);
};
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_bubble_view.cc ('k') | chrome/browser/ui/views/avatar_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698