| 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_FAKE_CRAS_AUDIO_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void SetOutputUserMute(bool mute_on) override; | 33 void SetOutputUserMute(bool mute_on) override; |
| 34 void SetInputNodeGain(uint64_t node_id, int32_t gain) override; | 34 void SetInputNodeGain(uint64_t node_id, int32_t gain) override; |
| 35 void SetInputMute(bool mute_on) override; | 35 void SetInputMute(bool mute_on) override; |
| 36 void SetActiveOutputNode(uint64_t node_id) override; | 36 void SetActiveOutputNode(uint64_t node_id) override; |
| 37 void SetActiveInputNode(uint64_t node_id) override; | 37 void SetActiveInputNode(uint64_t node_id) override; |
| 38 void AddActiveInputNode(uint64_t node_id) override; | 38 void AddActiveInputNode(uint64_t node_id) override; |
| 39 void RemoveActiveInputNode(uint64_t node_id) override; | 39 void RemoveActiveInputNode(uint64_t node_id) override; |
| 40 void AddActiveOutputNode(uint64_t node_id) override; | 40 void AddActiveOutputNode(uint64_t node_id) override; |
| 41 void RemoveActiveOutputNode(uint64_t node_id) override; | 41 void RemoveActiveOutputNode(uint64_t node_id) override; |
| 42 void SwapLeftRight(uint64_t node_id, bool swap) override; | 42 void SwapLeftRight(uint64_t node_id, bool swap) override; |
| 43 void WaitForServiceToBeAvailable( |
| 44 const WaitForServiceToBeAvailableCallback& callback) override; |
| 43 | 45 |
| 44 // Modifies an AudioNode from |node_list_| based on |audio_node.id|. | 46 // Modifies an AudioNode from |node_list_| based on |audio_node.id|. |
| 45 // if the |audio_node.id| cannot be found in list, Add an | 47 // if the |audio_node.id| cannot be found in list, Add an |
| 46 // AudioNode to |node_list_| | 48 // AudioNode to |node_list_| |
| 47 void InsertAudioNodeToList(const AudioNode& audio_node); | 49 void InsertAudioNodeToList(const AudioNode& audio_node); |
| 48 | 50 |
| 49 // Removes an AudioNode from |node_list_| based on |node_id|. | 51 // Removes an AudioNode from |node_list_| based on |node_id|. |
| 50 void RemoveAudioNodeFromList(const uint64_t& node_id); | 52 void RemoveAudioNodeFromList(const uint64_t& node_id); |
| 51 | 53 |
| 52 // Updates |node_list_| to contain |audio_nodes|. | 54 // Updates |node_list_| to contain |audio_nodes|. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 uint64_t active_input_node_id_; | 73 uint64_t active_input_node_id_; |
| 72 uint64_t active_output_node_id_; | 74 uint64_t active_output_node_id_; |
| 73 base::ObserverList<Observer> observers_; | 75 base::ObserverList<Observer> observers_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); | 77 DISALLOW_COPY_AND_ASSIGN(FakeCrasAudioClient); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace chromeos | 80 } // namespace chromeos |
| 79 | 81 |
| 80 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ | 82 #endif // CHROMEOS_DBUS_FAKE_CRAS_AUDIO_CLIENT_H_ |
| OLD | NEW |