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

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

Issue 1746843002: Persist the user's active audio device choice across chromeos session and reboots. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 4 years, 9 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/dbus/cras_audio_client.cc ('k') | chromeos/dbus/fake_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_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
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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/cras_audio_client.cc ('k') | chromeos/dbus/fake_cras_audio_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698