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

Unified Diff: extensions/browser/api/audio/audio_service.h

Issue 945103002: Add a new audio extension event OnLevelChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update audio.idl comment Created 5 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
Index: extensions/browser/api/audio/audio_service.h
diff --git a/extensions/browser/api/audio/audio_service.h b/extensions/browser/api/audio/audio_service.h
index 6d985ebd23b1f8f660897a1dfdb0228be9f34aaf..5d0ac0708be2a275d19419539cbdd9160f56e381 100644
--- a/extensions/browser/api/audio/audio_service.h
+++ b/extensions/browser/api/audio/audio_service.h
@@ -26,6 +26,9 @@ class AudioService {
// Called when anything changes to the audio device configuration.
virtual void OnDeviceChanged() = 0;
+ // Called when the sound level of an active audio node changes.
+ virtual void OnLevelChanged(const std::string& id, int level) = 0;
+
protected:
virtual ~Observer() {}
};

Powered by Google App Engine
This is Rietveld 408576698