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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.media.ui;
6
7 /**
8 * Listener for media playback events that are relevant to the browser UI.
9 */
10 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.
11 /**
12 * Called when the media playback state has changed (e.g. from playing to pa used)
13 * @param isPaused the new state (see {@link MediaInfo#isPaused})
14 */
15 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
16
17 /**
18 * Called if the title of the media changes
19 * @param title the new title
20 */
21 void onTitleChanged(String title);
22
23 /**
24 * Called if the origin of the tab containing media changes.
25 * @param origin the new origin
26 */
27 void onOriginChanged(String origin);
28
29 /**
30 * Called if the id of the tab containing the media changed.
31 * @param tabId the new tab id
32 */
33 void onTabIdChanged(int tabId);
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698