diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 19:22:42 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 19:22:42 +0000 |
commit | e924968c0e87e63b1a32fcde9f2b952c090f0379 (patch) | |
tree | 8dc58b87fa18290ef93292a2d97553602afffdcd /ash/system/audio | |
parent | d84bf2dfe1b6fcf9cdf68d4a560428a033324af0 (diff) | |
download | chromium_src-e924968c0e87e63b1a32fcde9f2b952c090f0379.zip chromium_src-e924968c0e87e63b1a32fcde9f2b952c090f0379.tar.gz chromium_src-e924968c0e87e63b1a32fcde9f2b952c090f0379.tar.bz2 |
ash: Improve uber tray bubble lifetimes.
This makes us extend the lifetime of an already-shown
detailed view (e.g. volume or brightness) when the key that
shows it is pressed again. It also fixes an issue where
there was a delay after one view was hidden before another
could be shown.
BUG=119624,119745
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/9808072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/audio')
-rw-r--r-- | ash/system/audio/tray_volume.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/system/audio/tray_volume.cc b/ash/system/audio/tray_volume.cc index e58806b..b54a994 100644 --- a/ash/system/audio/tray_volume.cc +++ b/ash/system/audio/tray_volume.cc @@ -197,9 +197,9 @@ void TrayVolume::DestroyDetailedView() { void TrayVolume::OnVolumeChanged(float percent) { if (volume_view_.get()) { volume_view_->SetVolumeLevel(percent); + SetDetailedViewCloseDelay(kTrayPopupAutoCloseDelayInSeconds); return; } - PopupDetailedView(kTrayPopupAutoCloseDelayInSeconds, false); } |