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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: Super rough, please give some initial feedbacks 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_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index fce0c95cb94d940e84e1b6b57e67e9306d1de840..9cd74b41cad0c9b3003a6d915d59f24b511210f6 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -306,20 +306,7 @@ public interface WebContents extends Parcelable {
*/
void requestAccessibilitySnapshot(AccessibilitySnapshotCallback callback);
- /**
- * Resumes the current media session.
- */
- void resumeMediaSession();
-
- /**
- * Suspends the current media session.
- */
- void suspendMediaSession();
-
- /**
- * Stops the current media session.
- */
- void stopMediaSession();
+ void addMediaSessionDelegate(MediaSessionDelegate delegate);
boliu 2016/10/19 20:39:40 nit: s/add/set/ ?
Zhiqiang Zhang (Slow) 2016/10/20 16:22:32 Not really, we allow adding multiple MediaSessionD
boliu 2016/10/20 16:28:33 Usually you can have only one "delegate", but mult
Zhiqiang Zhang (Slow) 2016/10/20 17:07:03 Actually "delegate" inherits from "observer", a de
boliu 2016/10/20 17:10:19 Feels like that fact should live in the embedder n
/**
* Add an observer to the WebContents

Powered by Google App Engine
This is Rietveld 408576698