summaryrefslogtreecommitdiffstats
path: root/ash/system/audio
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-29 18:38:32 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-29 18:38:32 +0000
commitef6e6e2d263975b652ceb5c42a657e588fa00255 (patch)
treea95bb177aefb6911088d5856fbf5d88199950668 /ash/system/audio
parentc3352a9c049fa3933080fb7c5fb0937fcb82b8bd (diff)
downloadchromium_src-ef6e6e2d263975b652ceb5c42a657e588fa00255.zip
chromium_src-ef6e6e2d263975b652ceb5c42a657e588fa00255.tar.gz
chromium_src-ef6e6e2d263975b652ceb5c42a657e588fa00255.tar.bz2
ash uber tray: Show just the volume/brightness item when user presses appropriate keys.
This CL implements SystemTrayItem::PopupDetailedView. This will be used for network details etc. too. BUG=110130,110131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9539002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/audio')
-rw-r--r--ash/system/audio/tray_volume.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ash/system/audio/tray_volume.cc b/ash/system/audio/tray_volume.cc
index dbc5b41..be57c89 100644
--- a/ash/system/audio/tray_volume.cc
+++ b/ash/system/audio/tray_volume.cc
@@ -110,8 +110,8 @@ views::View* TrayVolume::CreateDefaultView() {
}
views::View* TrayVolume::CreateDetailedView() {
- NOTIMPLEMENTED();
- return NULL;
+ volume_view_.reset(new tray::VolumeView);
+ return volume_view_.get();
}
void TrayVolume::DestroyTrayView() {
@@ -123,6 +123,7 @@ void TrayVolume::DestroyDefaultView() {
}
void TrayVolume::DestroyDetailedView() {
+ volume_view_.reset();
}
void TrayVolume::OnVolumeChanged(float percent) {