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

Unified Diff: media/audio/audio_manager_base.h

Issue 12974004: Add speaker on/off control on Android for WebRTC (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: remember speaker status Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/audio_manager_base.cc » ('j') | media/audio/audio_manager_base.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager_base.h
===================================================================
--- media/audio/audio_manager_base.h (revision 189519)
+++ media/audio/audio_manager_base.h (working copy)
@@ -136,11 +136,20 @@
// from the audio thread (no locking).
AudioOutputDispatchersMap output_dispatchers_;
+#if defined(OS_ANDROID)
+ // Java AudioManagerAndroid instance.
+ base::android::ScopedJavaGlobalRef<jobject> j_am_;
tommi (sloooow) - chröme 2013/03/21 15:31:27 full_descriptive_variable_names_please_ :)
Yaron 2013/03/21 16:51:31 Make this private. Also this object (AudioManagerB
leozwang1 2013/03/21 18:51:35 Done.
leozwang1 2013/03/21 18:51:35 scoped_ptr<media::AudioManager> audio_manager_ is
+#endif
+
private:
// Called by Shutdown().
void ShutdownOnAudioThread();
+#if defined(OS_ANDROID)
void SetAudioMode(int mode);
+ void RegisterHeadsetReceiver();
+ void UnRegisterHeadsetReceiver();
tommi (sloooow) - chröme 2013/03/21 15:31:27 Unregister is one word I believe
leozwang1 2013/03/21 18:51:35 Done.
+#endif
// Counts the number of active input streams to find out if something else
// is currently recording in Chrome.
« no previous file with comments | « no previous file | media/audio/audio_manager_base.cc » ('j') | media/audio/audio_manager_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698