Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: chromeos/dbus/cras_audio_client.h

Issue 1952983002: Listen for OutputNodeVolumeChanged signal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 virtual void OutputNodeVolumeChanged(uint64_t node_id, int volume);
46
45 protected: 47 protected:
46 virtual ~Observer(); 48 virtual ~Observer();
47 }; 49 };
48 50
49 ~CrasAudioClient() override; 51 ~CrasAudioClient() override;
50 52
51 // Adds and removes the observer. 53 // Adds and removes the observer.
52 virtual void AddObserver(Observer* observer) = 0; 54 virtual void AddObserver(Observer* observer) = 0;
53 virtual void RemoveObserver(Observer* observer) = 0; 55 virtual void RemoveObserver(Observer* observer) = 0;
54 // Returns true if this object has the given observer. 56 // Returns true if this object has the given observer.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Create() should be used instead. 141 // Create() should be used instead.
140 CrasAudioClient(); 142 CrasAudioClient();
141 143
142 private: 144 private:
143 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient); 145 DISALLOW_COPY_AND_ASSIGN(CrasAudioClient);
144 }; 146 };
145 147
146 } // namespace chromeos 148 } // namespace chromeos
147 149
148 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_ 150 #endif // CHROMEOS_DBUS_CRAS_AUDIO_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698