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

Side by Side Diff: trunk/src/chromeos/audio/cras_audio_switch_handler.h

Issue 14655010: Revert 198556 "Implement the rest of the audio API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
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_SWITCH_HANDLER_H_ 5 #ifndef CHROMEOS_AUDIO_CRAS_AUDIO_SWITCH_HANDLER_H_
6 #define CHROMEOS_AUDIO_CRAS_AUDIO_SWITCH_HANDLER_H_ 6 #define CHROMEOS_AUDIO_CRAS_AUDIO_SWITCH_HANDLER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 // Sets the global instance. Must be called before any calls to Get(). 34 // Sets the global instance. Must be called before any calls to Get().
35 static void Initialize(); 35 static void Initialize();
36 36
37 // Destroys the global instance. 37 // Destroys the global instance.
38 static void Shutdown(); 38 static void Shutdown();
39 39
40 // Gets the global instance. Initialize must be called first. 40 // Gets the global instance. Initialize must be called first.
41 static CrasAudioSwitchHandler* Get(); 41 static CrasAudioSwitchHandler* Get();
42 42
43 void UpdateActiveDevice();
44
45 private: 43 private:
46 explicit CrasAudioSwitchHandler(); 44 explicit CrasAudioSwitchHandler();
47 virtual ~CrasAudioSwitchHandler(); 45 virtual ~CrasAudioSwitchHandler();
48 46
49 // Overriden from CrasAudioSwitchHandler::Observer. 47 // Overriden from CrasAudioSwitchHandler::Observer.
50 virtual void AudioClientRestarted() OVERRIDE; 48 virtual void AudioClientRestarted() OVERRIDE;
51 virtual void NodesChanged() OVERRIDE; 49 virtual void NodesChanged() OVERRIDE;
52 virtual void ActiveOutputNodeChanged(uint64 node_id) OVERRIDE; 50 virtual void ActiveOutputNodeChanged(uint64 node_id) OVERRIDE;
53 virtual void ActiveInputNodeChanged(uint64 node_id) OVERRIDE; 51 virtual void ActiveInputNodeChanged(uint64 node_id) OVERRIDE;
54 52
(...skipping 19 matching lines...) Expand all
74 uint64 muted_device_id_; 72 uint64 muted_device_id_;
75 73
76 base::WeakPtrFactory<CrasAudioSwitchHandler> weak_ptr_factory_; 74 base::WeakPtrFactory<CrasAudioSwitchHandler> weak_ptr_factory_;
77 75
78 DISALLOW_COPY_AND_ASSIGN(CrasAudioSwitchHandler); 76 DISALLOW_COPY_AND_ASSIGN(CrasAudioSwitchHandler);
79 }; 77 };
80 78
81 } // namespace chromeos 79 } // namespace chromeos
82 80
83 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_SWITCH_HANDLER_H_ 81 #endif // CHROMEOS_AUDIO_CRAS_AUDIO_SWITCH_HANDLER_H_
OLDNEW
« no previous file with comments | « trunk/src/chromeos/audio/cras_audio_handler.cc ('k') | trunk/src/chromeos/audio/cras_audio_switch_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698