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

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

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: Don't review, this CL is getting huge and needs to be split 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/WebContentsImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
index 73aa41ce902e84547551dd476836384c00329398..aa96c3389b969d4043c13ac6b248f39b41c299a8 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
@@ -372,21 +372,6 @@ import java.util.UUID;
nativeRequestAccessibilitySnapshot(mNativeWebContentsAndroid, callback);
}
- @Override
- public void resumeMediaSession() {
- nativeResumeMediaSession(mNativeWebContentsAndroid);
- }
-
- @Override
- public void suspendMediaSession() {
- nativeSuspendMediaSession(mNativeWebContentsAndroid);
- }
-
- @Override
- public void stopMediaSession() {
- nativeStopMediaSession(mNativeWebContentsAndroid);
- }
-
// root node can be null if parsing fails.
@CalledByNative
private static void onAccessibilitySnapshot(AccessibilitySnapshotNode root,
@@ -547,9 +532,6 @@ import java.util.UUID;
private native int nativeGetThemeColor(long nativeWebContentsAndroid);
private native void nativeRequestAccessibilitySnapshot(
long nativeWebContentsAndroid, AccessibilitySnapshotCallback callback);
- private native void nativeResumeMediaSession(long nativeWebContentsAndroid);
- private native void nativeSuspendMediaSession(long nativeWebContentsAndroid);
- private native void nativeStopMediaSession(long nativeWebContentsAndroid);
private native void nativeGetContentBitmap(long nativeWebContentsAndroid,
ContentBitmapCallback callback, Bitmap.Config config, float scale,
float x, float y, float width, float height);

Powered by Google App Engine
This is Rietveld 408576698