OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 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 { |
| 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); |
| 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 |