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

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

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a few missed 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/media/ui/MediaPlaybackListener.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaPlaybackListener.java b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaPlaybackListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..aacfc511e10bbd8643e634b17d69aeb25d9daae3
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaPlaybackListener.java
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
mlamouri (slow - plz ping) 2015/06/23 14:58:56 2015
whywhat 2015/06/23 19:39:11 Ack.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser.media.ui;
+
+/**
+ * Listener for media playback events that are relevant to the browser UI.
+ */
+public interface MediaPlaybackListener {
mlamouri (slow - plz ping) 2015/06/23 14:58:56 I think you should only keep this interface if the
whywhat 2015/06/23 19:39:11 Ack.
+ /**
+ * Called when the media playback state has changed (e.g. from playing to paused)
+ * @param isPaused the new state (see {@link MediaInfo#isPaused})
+ */
+ void onPlaybackStateChanged(boolean isPaused);
mlamouri (slow - plz ping) 2015/06/23 14:58:56 Maybe an int with final values would be better? PA
whywhat 2015/06/23 19:39:11 You suggested that I change from PlaybackState enu
+
+ /**
+ * Called if the title of the media changes
+ * @param title the new title
+ */
+ void onTitleChanged(String title);
+
+ /**
+ * Called if the origin of the tab containing media changes.
+ * @param origin the new origin
+ */
+ void onOriginChanged(String origin);
+
+ /**
+ * Called if the id of the tab containing the media changed.
+ * @param tabId the new tab id
+ */
+ void onTabIdChanged(int tabId);
+}

Powered by Google App Engine
This is Rietveld 408576698