| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ | 5 #ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ |
| 6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ | 6 #define ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ |
| 7 | 7 |
| 8 #include "ash/system/audio/audio_observer.h" | 8 #include "ash/system/audio/audio_observer.h" |
| 9 #include "ash/system/tray/tray_image_item.h" | 9 #include "ash/system/tray/tray_image_item.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Overridden from SystemTrayItem. | 47 // Overridden from SystemTrayItem. |
| 48 views::View* CreateDefaultView(user::LoginStatus status) override; | 48 views::View* CreateDefaultView(user::LoginStatus status) override; |
| 49 views::View* CreateDetailedView(user::LoginStatus status) override; | 49 views::View* CreateDetailedView(user::LoginStatus status) override; |
| 50 void DestroyDefaultView() override; | 50 void DestroyDefaultView() override; |
| 51 void DestroyDetailedView() override; | 51 void DestroyDetailedView() override; |
| 52 bool ShouldHideArrow() const override; | 52 bool ShouldHideArrow() const override; |
| 53 bool ShouldShowShelf() const override; | 53 bool ShouldShowShelf() const override; |
| 54 | 54 |
| 55 // Overridden from AudioObserver. | 55 // Overridden from AudioObserver. |
| 56 void OnOutputVolumeChanged() override; | 56 void OnOutputNodeVolumeChanged(uint64 node_id, double volume) override; |
| 57 void OnOutputMuteChanged() override; | 57 void OnOutputMuteChanged() override; |
| 58 void OnAudioNodesChanged() override; | 58 void OnAudioNodesChanged() override; |
| 59 void OnActiveOutputNodeChanged() override; | 59 void OnActiveOutputNodeChanged() override; |
| 60 void OnActiveInputNodeChanged() override; | 60 void OnActiveInputNodeChanged() override; |
| 61 | 61 |
| 62 // Overridden from gfx::DisplayObserver. | 62 // Overridden from gfx::DisplayObserver. |
| 63 void OnDisplayAdded(const gfx::Display& new_display) override; | 63 void OnDisplayAdded(const gfx::Display& new_display) override; |
| 64 void OnDisplayRemoved(const gfx::Display& old_display) override; | 64 void OnDisplayRemoved(const gfx::Display& old_display) override; |
| 65 void OnDisplayMetricsChanged(const gfx::Display& display, | 65 void OnDisplayMetricsChanged(const gfx::Display& display, |
| 66 uint32_t changed_metrics) override; | 66 uint32_t changed_metrics) override; |
| 67 | 67 |
| 68 void ChangeInternalSpeakerChannelMode(); | 68 void ChangeInternalSpeakerChannelMode(); |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(TrayAudio); | 70 DISALLOW_COPY_AND_ASSIGN(TrayAudio); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace ash | 73 } // namespace ash |
| 74 | 74 |
| 75 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ | 75 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ |
| OLD | NEW |