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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments and nits Created 5 years, 6 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: chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java
index 381813dbc90817e11aeb6cbab4baf95d32dbcd83..271b12ce6ed666740958a5e134f5af6babce8628 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java
@@ -104,6 +104,16 @@ public class ChromeWebContentsDelegateAndroid extends WebContentsDelegateAndroid
findMatchRectsDetails.rects[index] = rect;
}
+ @CalledByNative
+ public void showMediaControls(boolean isPaused) {
+ }
+
+ @CalledByNative
+ public void hideMediaControls() {
+ }
+
+ public static native void nativeOnMediaControlsPause(WebContents webContents);
+ public static native void nativeOnMediaControlsResume(WebContents webContents);
protected static native boolean nativeIsCapturingAudio(WebContents webContents);
protected static native boolean nativeIsCapturingVideo(WebContents webContents);
protected static native boolean nativeHasAudibleAudio(WebContents webContents);

Powered by Google App Engine
This is Rietveld 408576698