| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 5 #ifndef MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| 6 #define MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 6 #define MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| 7 | 7 |
| 8 // This file contains interfaces modeled after classes in | 8 // This file contains interfaces modeled after classes in |
| 9 // content/renderer/media/android for the purposes of letting clases in | 9 // content/renderer/media/android for the purposes of letting clases in |
| 10 // this directory implement and/or interact with those classes. | 10 // this directory implement and/or interact with those classes. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual void OnTimeUpdate(base::TimeDelta current_timestamp, | 44 virtual void OnTimeUpdate(base::TimeDelta current_timestamp, |
| 45 base::TimeTicks current_time_ticks) = 0; | 45 base::TimeTicks current_time_ticks) = 0; |
| 46 | 46 |
| 47 virtual void OnWaitingForDecryptionKey() = 0; | 47 virtual void OnWaitingForDecryptionKey() = 0; |
| 48 virtual void OnPlayerReleased() = 0; | 48 virtual void OnPlayerReleased() = 0; |
| 49 | 49 |
| 50 // Functions called when media player status changes. | 50 // Functions called when media player status changes. |
| 51 virtual void OnConnectedToRemoteDevice( | 51 virtual void OnConnectedToRemoteDevice( |
| 52 const std::string& remote_playback_message) = 0; | 52 const std::string& remote_playback_message) = 0; |
| 53 virtual void OnDisconnectedFromRemoteDevice() = 0; | 53 virtual void OnDisconnectedFromRemoteDevice() = 0; |
| 54 virtual void OnCancelledRemotePlaybackRequest() = 0; |
| 54 virtual void OnDidExitFullscreen() = 0; | 55 virtual void OnDidExitFullscreen() = 0; |
| 55 virtual void OnMediaPlayerPlay() = 0; | 56 virtual void OnMediaPlayerPlay() = 0; |
| 56 virtual void OnMediaPlayerPause() = 0; | 57 virtual void OnMediaPlayerPause() = 0; |
| 57 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0; | 58 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0; |
| 58 | 59 |
| 59 // Getters of playback state. | 60 // Getters of playback state. |
| 60 virtual bool paused() const = 0; | 61 virtual bool paused() const = 0; |
| 61 | 62 |
| 62 // True if the loaded media has a playable video track. | 63 // True if the loaded media has a playable video track. |
| 63 virtual bool hasVideo() const = 0; | 64 virtual bool hasVideo() const = 0; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual void RequestRemotePlaybackControl(int player_id) = 0; | 123 virtual void RequestRemotePlaybackControl(int player_id) = 0; |
| 123 | 124 |
| 124 // Registers and unregisters a RendererMediaPlayerInterface object. | 125 // Registers and unregisters a RendererMediaPlayerInterface object. |
| 125 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; | 126 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; |
| 126 virtual void UnregisterMediaPlayer(int player_id) = 0; | 127 virtual void UnregisterMediaPlayer(int player_id) = 0; |
| 127 }; | 128 }; |
| 128 | 129 |
| 129 } // namespace media | 130 } // namespace media |
| 130 | 131 |
| 131 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 132 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| OLD | NEW |