| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Called when audio nodes change. | 36 // Called when audio nodes change. |
| 37 virtual void NodesChanged(); | 37 virtual void NodesChanged(); |
| 38 | 38 |
| 39 // Called when active audio output node changed to new node with |node_id|. | 39 // Called when active audio output node changed to new node with |node_id|. |
| 40 virtual void ActiveOutputNodeChanged(uint64_t node_id); | 40 virtual void ActiveOutputNodeChanged(uint64_t node_id); |
| 41 | 41 |
| 42 // Called when active audio input node changed to new node with |node_id|. | 42 // Called when active audio input node changed to new node with |node_id|. |
| 43 virtual void ActiveInputNodeChanged(uint64_t node_id); | 43 virtual void ActiveInputNodeChanged(uint64_t node_id); |
| 44 | 44 |
| 45 // Called when output node's volume changed. |
| 46 virtual void OutputNodeVolumeChanged(uint64_t node_id, int volume); |
| 47 |
| 45 protected: | 48 protected: |
| 46 virtual ~Observer(); | 49 virtual ~Observer(); |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 ~CrasAudioClient() override; | 52 ~CrasAudioClient() override; |
| 50 | 53 |
| 51 // Adds and removes the observer. | 54 // Adds and removes the observer. |
| 52 virtual void AddObserver(Observer* observer) = 0; | 55 virtual void AddObserver(Observer* observer) = 0; |
| 53 virtual void RemoveObserver(Observer* observer) = 0; | 56 virtual void RemoveObserver(Observer* observer) = 0; |
| 54 // Returns true if this object has the given observer. | 57 // Returns true if this object has the given observer. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Create() should be used instead. | 147 // Create() should be used instead. |
| 145 CrasAudioClient(); | 148 CrasAudioClient(); |
| 146 | 149 |
| 147 private: | 150 private: |
| 148 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); | 151 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); |
| 149 }; | 152 }; |
| 150 | 153 |
| 151 } // namespace chromeos | 154 } // namespace chromeos |
| 152 | 155 |
| 153 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 156 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| OLD | NEW |