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

Unified Diff: media/base/android/media_player_bridge.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: Changed SetVolume() to report audible status. Created 5 years, 11 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_bridge.h
diff --git a/media/base/android/media_player_bridge.h b/media/base/android/media_player_bridge.h
index 9dd6eecfa4dad59dc4ca17c59082a91a15092c6a..69f894dcfa4a794a2808fe1d1d0c38e1787b75a9 100644
--- a/media/base/android/media_player_bridge.h
+++ b/media/base/android/media_player_bridge.h
@@ -175,8 +175,11 @@ class MEDIA_EXPORT MediaPlayerBridge : public MediaPlayerAndroid {
base::RepeatingTimer<MediaPlayerBridge> time_update_timer_;
- // Volume of playback.
- double volume_;
+ // Initial playback volume
+ double initial_volume_;
qinmin 2015/02/04 03:27:54 why we need 2 volumes? I think java and native sho
Tima Vaisburd 2015/02/04 17:39:01 I noticed that original code did not maintain the
qinmin 2015/02/04 19:16:16 That looks like a bug to me. Although the first se
Tima Vaisburd 2015/02/05 23:22:27 Simplified SetVolume() the same way AudioDecoderJo
+
+ // Current playback volume that has been passed to Java
+ double current_volume_;
// Whether user credentials are allowed to be passed.
bool allow_credentials_;

Powered by Google App Engine
This is Rietveld 408576698