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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java

Issue 2442303002: Adding new media controls to MediaNotification (Closed)
Patch Set: Created 4 years, 2 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/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java
index 365811066e556c685eed2f61288dc6209780f153..40698416509c0f0e35ae82a4e18b5c2768cfe2df 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java
@@ -264,6 +264,22 @@ class WebContentsObserverProxy extends WebContentsObserver {
@Override
@CalledByNative
+ public void mediaSessionEnabledAction(int action) {
+ for (mObserversIterator.rewind(); mObserversIterator.hasNext();) {
+ mObserversIterator.next().mediaSessionEnabledAction(action);
+ }
+ }
+
+ @Override
+ @CalledByNative
+ public void mediaSessionDisabledAction(int action) {
+ for (mObserversIterator.rewind(); mObserversIterator.hasNext();) {
+ mObserversIterator.next().mediaSessionDisabledAction(action);
+ }
+ }
+
+ @Override
+ @CalledByNative
public void destroy() {
// Super destruction semantics (removing the observer from the
// Java-based WebContents) are quite different, so we explicitly avoid

Powered by Google App Engine
This is Rietveld 408576698