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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved OnMediaSessionStateChanged to WebContentsImpl Created 5 years, 5 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/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index ba6da94cffe44c31a8dea3893725cd2b31777ce1..482c062b45d30848c35231789ff3abe6c486f989 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -468,4 +468,12 @@ void WebContentsAndroid::RequestAccessibilitySnapshot(JNIEnv* env,
snapshot_callback);
}
+void WebContentsAndroid::ResumeMediaSession(JNIEnv* env, jobject obj) {
+ web_contents_->ResumeMediaSession();
+}
+
+void WebContentsAndroid::SuspendMediaSession(JNIEnv* env, jobject obj) {
+ web_contents_->SuspendMediaSession();
+}
+
} // namespace content
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698