OLD | NEW |
---|---|
(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 } | |
OLD | NEW |