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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationListener.java

Issue 2441403002: Add media controls in media notification (Closed)
Patch Set: using Java "enum" generated from mojom Created 4 years, 1 month 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/media/ui/MediaNotificationListener.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationListener.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationListener.java
index ecc488f0c1456241d9c03c6869ed244fa60a7251..d939237b3290505decc092f11b21493bc4edf58b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationListener.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationListener.java
@@ -42,4 +42,11 @@ public interface MediaNotificationListener {
* @param actionSource The source the listener got the action from.
*/
void onStop(int actionSource);
+
+ /**
+ * Called when the user performed one of the media actions (like fast forward or next track)
+ * supported by MediaSession.
+ * @param action The kind of the initated action.
+ */
+ void onMediaSessionAction(int action);
}

Powered by Google App Engine
This is Rietveld 408576698