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

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

Issue 2442303002: Adding new media controls to MediaNotification (Closed)
Patch Set: addressed boliu's comments 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/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 054aaffdaf89e1223c51cbe97b0bc4d8f44091b4..1a9a382cf9edd9dff88bfb215ba70fb1c337ffaa 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -628,6 +628,14 @@ void WebContentsAndroid::StopMediaSession(JNIEnv* env,
web_contents_->StopMediaSession();
}
+void WebContentsAndroid::DidReceiveMediaSessionAction(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ int action) {
+ web_contents_->DidReceiveMediaSessionAction(
+ static_cast<blink::mojom::MediaSessionAction>(action));
+}
+
ScopedJavaLocalRef<jstring> WebContentsAndroid::GetEncoding(
JNIEnv* env,
const JavaParamRef<jobject>& obj) const {

Powered by Google App Engine
This is Rietveld 408576698