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

Side by Side Diff: chromeos/audio/cras_audio_handler.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_AUDIO_CRAS_AUDIO_HANDLER_H_ 5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 6 #define CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <queue> 10 #include <queue>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 ~CrasAudioHandler() override; 224 ~CrasAudioHandler() override;
225 225
226 private: 226 private:
227 friend class CrasAudioHandlerTest; 227 friend class CrasAudioHandlerTest;
228 228
229 // CrasAudioClient::Observer overrides. 229 // CrasAudioClient::Observer overrides.
230 void AudioClientRestarted() override; 230 void AudioClientRestarted() override;
231 void NodesChanged() override; 231 void NodesChanged() override;
232 void ActiveOutputNodeChanged(uint64_t node_id) override; 232 void ActiveOutputNodeChanged(uint64_t node_id) override;
233 void ActiveInputNodeChanged(uint64_t node_id) override; 233 void ActiveInputNodeChanged(uint64_t node_id) override;
234 void OutputNodeVolumeChanged(uint64_t node_id, int volume) override;
234 235
235 // AudioPrefObserver overrides. 236 // AudioPrefObserver overrides.
236 void OnAudioPolicyPrefChanged() override; 237 void OnAudioPolicyPrefChanged() override;
237 238
238 // SessionManagerClient::Observer overrides. 239 // SessionManagerClient::Observer overrides.
239 void EmitLoginPromptVisibleCalled() override; 240 void EmitLoginPromptVisibleCalled() override;
240 241
241 // Sets the |active_device| to be active. 242 // Sets the |active_device| to be active.
242 // If |notify|, notifies Active*NodeChange. 243 // If |notify|, notifies Active*NodeChange.
243 // Saves device active states in prefs. |activate_by| indicates how 244 // Saves device active states in prefs. |activate_by| indicates how
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 bool cras_service_available_ = false; 419 bool cras_service_available_ = false;
419 420
420 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_; 421 base::WeakPtrFactory<CrasAudioHandler> weak_ptr_factory_;
421 422
422 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler); 423 DISALLOW_COPY_AND_ASSIGN(CrasAudioHandler);
423 }; 424 };
424 425
425 } // namespace chromeos 426 } // namespace chromeos
426 427
427 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_ 428 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/audio/cras_audio_handler.cc » ('j') | chromeos/audio/cras_audio_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698