| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/system/chromeos/audio/tray_audio.h" | 5 #include "ash/system/chromeos/audio/tray_audio.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "ash/ash_constants.h" | 9 #include "ash/ash_constants.h" |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 tray_view()->SetVisible(GetInitialVisibility()); | 589 tray_view()->SetVisible(GetInitialVisibility()); |
| 590 | 590 |
| 591 if (volume_view_) | 591 if (volume_view_) |
| 592 volume_view_->Update(); | 592 volume_view_->Update(); |
| 593 else { | 593 else { |
| 594 pop_up_volume_view_ = true; | 594 pop_up_volume_view_ = true; |
| 595 PopupDetailedView(kTrayPopupAutoCloseDelayInSeconds, false); | 595 PopupDetailedView(kTrayPopupAutoCloseDelayInSeconds, false); |
| 596 } | 596 } |
| 597 } | 597 } |
| 598 | 598 |
| 599 void TrayAudio::OnInputGainChanged() { | |
| 600 } | |
| 601 | |
| 602 void TrayAudio::OnInputMuteChanged() { | |
| 603 } | |
| 604 | |
| 605 void TrayAudio::OnAudioNodesChanged() { | 599 void TrayAudio::OnAudioNodesChanged() { |
| 606 Update(); | 600 Update(); |
| 607 } | 601 } |
| 608 | 602 |
| 609 void TrayAudio::OnActiveOutputNodeChanged() { | 603 void TrayAudio::OnActiveOutputNodeChanged() { |
| 610 Update(); | 604 Update(); |
| 611 } | 605 } |
| 612 | 606 |
| 613 void TrayAudio::OnActiveInputNodeChanged() { | 607 void TrayAudio::OnActiveInputNodeChanged() { |
| 614 Update(); | 608 Update(); |
| 615 } | 609 } |
| 616 | 610 |
| 617 void TrayAudio::Update() { | 611 void TrayAudio::Update() { |
| 618 if (audio_detail_) | 612 if (audio_detail_) |
| 619 audio_detail_->Update(); | 613 audio_detail_->Update(); |
| 620 if (volume_view_) | 614 if (volume_view_) |
| 621 volume_view_->Update(); | 615 volume_view_->Update(); |
| 622 } | 616 } |
| 623 | 617 |
| 624 } // namespace internal | 618 } // namespace internal |
| 625 } // namespace ash | 619 } // namespace ash |
| OLD | NEW |