diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-14 17:30:43 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-14 17:30:43 +0000 |
commit | e379b8a445c2f2da88dd7936c2656801b9b7dee7 (patch) | |
tree | 867163c3e2a0a997a0d70ba4ddef293f44855d94 /ash/system/audio | |
parent | f8a3c796370d4555a84ff885b4712f4e9ace9f11 (diff) | |
download | chromium_src-e379b8a445c2f2da88dd7936c2656801b9b7dee7.zip chromium_src-e379b8a445c2f2da88dd7936c2656801b9b7dee7.tar.gz chromium_src-e379b8a445c2f2da88dd7936c2656801b9b7dee7.tar.bz2 |
ash: Update the volume icon when audio is muted/unmuted.
R=ben@chromium.org
BUG=118116
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9706007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/audio')
-rw-r--r-- | ash/system/audio/tray_volume.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/system/audio/tray_volume.cc b/ash/system/audio/tray_volume.cc index 5a8e856..45d1d1d 100644 --- a/ash/system/audio/tray_volume.cc +++ b/ash/system/audio/tray_volume.cc @@ -115,6 +115,10 @@ class VolumeView : public views::View, void SetVolumeLevel(float percent) { slider_->SetValue(percent); + // It is possible that the volume was (un)muted, but the actual volume level + // did not change. In that case, setting the value of the slider won't + // trigger a repaint. So explicitly trigger a repaint. + icon_->SchedulePaint(); } private: |