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

Unified Diff: media/audio/sounds/audio_stream_handler.h

Issue 115693004: Added volume adjust sound behind the flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split of WavAudioHandler is rolled back. Created 7 years 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: media/audio/sounds/audio_stream_handler.h
diff --git a/media/audio/sounds/audio_stream_handler.h b/media/audio/sounds/audio_stream_handler.h
index 7c63a24f0348f3fb4228ed1bacde363ad773a772..617a11ec3128c7046a377f8046b39fa987ef3be6 100644
--- a/media/audio/sounds/audio_stream_handler.h
+++ b/media/audio/sounds/audio_stream_handler.h
@@ -30,6 +30,9 @@ class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe {
// Called when AudioOutputStreamProxy::Start() was successfully called.
virtual void OnPlay() = 0;
+ // Called when current sound is replayed.
+ virtual void OnReplay() = 0;
+
// Called when AudioOutputStreamProxy::Stop() was successfully called.
virtual void OnStop(size_t cursor) = 0;
};
@@ -62,6 +65,9 @@ class MEDIA_EXPORT AudioStreamHandler : public base::NonThreadSafe {
static void SetObserverForTesting(TestObserver* observer);
static void SetAudioSourceForTesting(
AudioOutputStream::AudioSourceCallback* source);
+ void AllowReplayOnceForTesting();
+
+ void StopAfterDelay();
WavAudioHandler wav_audio_;
scoped_ptr<AudioStreamContainer> stream_;

Powered by Google App Engine
This is Rietveld 408576698