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

Unified Diff: media/base/android/media_player_android.h

Issue 896673003: Propagate audible state from player to the containing tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed MediaSourcePlayerTest compilation. Created 5 years, 10 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: media/base/android/media_player_android.h
diff --git a/media/base/android/media_player_android.h b/media/base/android/media_player_android.h
index 6c534e80ad589d99f61d01d0c3b7e869e90a0401..231f8707d37bf9eb13076739f56498006adf6a5e 100644
--- a/media/base/android/media_player_android.h
+++ b/media/base/android/media_player_android.h
@@ -102,6 +102,7 @@ class MEDIA_EXPORT MediaPlayerAndroid {
// events. Otherwise, it also listens to the events from |j_media_player|.
void AttachListener(jobject j_media_player);
void DetachListener();
+ void SetAudible(bool is_audible);
MediaPlayerManager* manager() { return manager_; }
@@ -124,6 +125,9 @@ class MEDIA_EXPORT MediaPlayerAndroid {
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<MediaPlayerAndroid> weak_factory_;
+ // Maintains the audible state of the player, true if it is playing sound.
+ bool is_audible_;
+
DISALLOW_COPY_AND_ASSIGN(MediaPlayerAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698