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

Unified Diff: content/renderer/pepper/pepper_platform_audio_output.h

Issue 2065513004: Expose flash playback status and volume control to content renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_focus_manager
Patch Set: addressing nits Created 4 years, 6 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
Index: content/renderer/pepper/pepper_platform_audio_output.h
diff --git a/content/renderer/pepper/pepper_platform_audio_output.h b/content/renderer/pepper/pepper_platform_audio_output.h
index ea8771d6f90adc7c814d24c7dd73e241b4ad4e8e..439dc2b7dc2efedc119e71eb8688f38e6e9fe316 100644
--- a/content/renderer/pepper/pepper_platform_audio_output.h
+++ b/content/renderer/pepper/pepper_platform_audio_output.h
@@ -43,6 +43,10 @@ class PepperPlatformAudioOutput
// is created or after the stream is closed.
bool StopPlayback();
+ // Sets the volume. Returns false on error or if called before the stream
+ // is created or after the stream is closed.
+ bool SetVolume(double volume);
+
// Closes the stream. Make sure to call this before the object is
// destructed.
void ShutDown();
@@ -74,6 +78,7 @@ class PepperPlatformAudioOutput
void InitializeOnIOThread(const media::AudioParameters& params);
void StartPlaybackOnIOThread();
void StopPlaybackOnIOThread();
+ void SetVolumeOnIOThread(double volume);
void ShutDownOnIOThread();
// The client to notify when the stream is created. THIS MUST ONLY BE

Powered by Google App Engine
This is Rietveld 408576698