| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // True if VolumeView should be created for accelerator pop up; | 49 // True if VolumeView should be created for accelerator pop up; |
| 50 // Otherwise, it should be created for detailed view in ash tray bubble. | 50 // Otherwise, it should be created for detailed view in ash tray bubble. |
| 51 bool pop_up_volume_view_; | 51 bool pop_up_volume_view_; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 // Overridden from TrayImageItem. | 54 // Overridden from TrayImageItem. |
| 55 bool GetInitialVisibility() override; | 55 bool GetInitialVisibility() override; |
| 56 | 56 |
| 57 // Overridden from SystemTrayItem. | 57 // Overridden from SystemTrayItem. |
| 58 views::View* CreateDefaultView(user::LoginStatus status) override; | 58 views::View* CreateDefaultView(LoginStatus status) override; |
| 59 views::View* CreateDetailedView(user::LoginStatus status) override; | 59 views::View* CreateDetailedView(LoginStatus status) override; |
| 60 void DestroyDefaultView() override; | 60 void DestroyDefaultView() override; |
| 61 void DestroyDetailedView() override; | 61 void DestroyDetailedView() override; |
| 62 bool ShouldHideArrow() const override; | 62 bool ShouldHideArrow() const override; |
| 63 bool ShouldShowShelf() const override; | 63 bool ShouldShowShelf() const override; |
| 64 | 64 |
| 65 // Overridden from AudioObserver. | 65 // Overridden from AudioObserver. |
| 66 void OnOutputNodeVolumeChanged(uint64_t node_id, double volume) override; | 66 void OnOutputNodeVolumeChanged(uint64_t node_id, double volume) override; |
| 67 void OnOutputMuteChanged(bool mute_on, bool system_adjust) override; | 67 void OnOutputMuteChanged(bool mute_on, bool system_adjust) override; |
| 68 void OnAudioNodesChanged() override; | 68 void OnAudioNodesChanged() override; |
| 69 void OnActiveOutputNodeChanged() override; | 69 void OnActiveOutputNodeChanged() override; |
| 70 void OnActiveInputNodeChanged() override; | 70 void OnActiveInputNodeChanged() override; |
| 71 | 71 |
| 72 void ChangeInternalSpeakerChannelMode(); | 72 void ChangeInternalSpeakerChannelMode(); |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(TrayAudio); | 74 DISALLOW_COPY_AND_ASSIGN(TrayAudio); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace ash | 77 } // namespace ash |
| 78 | 78 |
| 79 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ | 79 #endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_ |
| OLD | NEW |