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

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: Fix unimplemented method 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
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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_
OLDNEW
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/dbus/cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698