| 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..e02335d65bbaae5d4b15992930b3ca43453f0797
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaPlaybackListener.java
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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 {
|
| + /**
|
| + * Called when the media playback state has changed (e.g. from playing to paused)
|
| + * @param oldState the old state (one of those defined in {@link MediaInfo})
|
| + * @param newState the new state
|
| + */
|
| + void onPlaybackStateChanged(int oldState, int newState);
|
| +
|
| + /**
|
| + * Called if the title of the media changes
|
| + * @param title the new title
|
| + */
|
| + void onTitleChanged(String title);
|
| +
|
| + /**
|
| + * Called if the broad domain (eTLD+1) of the media changes
|
| + * @param broadDomain the new eTLD+1
|
| + */
|
| + void onBroadDomainChanged(String broadDomain);
|
| +
|
| + /**
|
| + * Called if the id of the tab containing the media changed.
|
| + * @param tabId the new tab id
|
| + */
|
| + void onTabIdChanged(int tabId);
|
| +}
|
|
|