| 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 "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // Adds input node |node_id| to the active input list. This is used to add | 98 // Adds input node |node_id| to the active input list. This is used to add |
| 99 // an additional active input node besides the one set by SetActiveInputNode. | 99 // an additional active input node besides the one set by SetActiveInputNode. |
| 100 // Note that this action will not trigger an ActiveInputNodeChanged event and | 100 // Note that this action will not trigger an ActiveInputNodeChanged event and |
| 101 // nothing will happen if the |node_id| has already been set as active. | 101 // nothing will happen if the |node_id| has already been set as active. |
| 102 virtual void AddActiveInputNode(uint64 node_id) = 0; | 102 virtual void AddActiveInputNode(uint64 node_id) = 0; |
| 103 | 103 |
| 104 // Removes input node |node_id| from the active input list. This is used for | 104 // Removes input node |node_id| from the active input list. This is used for |
| 105 // removing an active input node added by AddActiveInputNode. | 105 // removing an active input node added by AddActiveInputNode. |
| 106 virtual void RemoveActiveInputNode(uint64 node_id) = 0; | 106 virtual void RemoveActiveInputNode(uint64 node_id) = 0; |
| 107 | 107 |
| 108 // Adds input node |node_id| to the active outputs list. This is used to add |
| 109 // an additional active output node besides the one set by SetActiveInputNode. |
| 110 // Note that this action will not trigger an ActiveOutputNodeChanged event |
| 111 // and nothing will happen if the |node_id| has already been set as active. |
| 112 virtual void AddActiveOutputNode(uint64 node_id) = 0; |
| 113 |
| 114 // Removes output node |node_id| from the active output list. This is used for |
| 115 // removing an active output node added by AddActiveOutputNode. |
| 116 virtual void RemoveActiveOutputNode(uint64 node_id) = 0; |
| 117 |
| 108 // Creates the instance. | 118 // Creates the instance. |
| 109 static CrasAudioClient* Create(); | 119 static CrasAudioClient* Create(); |
| 110 | 120 |
| 111 protected: | 121 protected: |
| 112 // Create() should be used instead. | 122 // Create() should be used instead. |
| 113 CrasAudioClient(); | 123 CrasAudioClient(); |
| 114 | 124 |
| 115 private: | 125 private: |
| 116 | 126 |
| 117 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); | 127 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); |
| 118 }; | 128 }; |
| 119 | 129 |
| 120 } // namespace chromeos | 130 } // namespace chromeos |
| 121 | 131 |
| 122 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ | 132 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ |
| OLD | NEW |