diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-29 04:36:23 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-29 04:36:23 +0000 |
commit | 86e99b8b7da2a57d0cd8f238d7801a12dcdaee58 (patch) | |
tree | f1cfd4293ef1f20a933c8fd09055941f555e4333 /views | |
parent | 2daba2f3623744b78f1880d8ebb0a673d03f52d3 (diff) | |
download | chromium_src-86e99b8b7da2a57d0cd8f238d7801a12dcdaee58.zip chromium_src-86e99b8b7da2a57d0cd8f238d7801a12dcdaee58.tar.gz chromium_src-86e99b8b7da2a57d0cd8f238d7801a12dcdaee58.tar.bz2 |
Refresh profile avatar when icon changes
BUG=95273
TEST=
Review URL: http://codereview.chromium.org/8068017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103235 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/button/text_button.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/controls/button/text_button.cc b/views/controls/button/text_button.cc index 3ebbc90..5dc5787 100644 --- a/views/controls/button/text_button.cc +++ b/views/controls/button/text_button.cc @@ -651,16 +651,19 @@ TextButton::~TextButton() { void TextButton::SetIcon(const SkBitmap& icon) { icon_ = icon; + SchedulePaint(); } void TextButton::SetHoverIcon(const SkBitmap& icon) { icon_hover_ = icon; has_hover_icon_ = true; + SchedulePaint(); } void TextButton::SetPushedIcon(const SkBitmap& icon) { icon_pushed_ = icon; has_pushed_icon_ = true; + SchedulePaint(); } gfx::Size TextButton::GetPreferredSize() { |