| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Called to update the current time. | 42 // Called to update the current time. |
| 43 virtual void OnTimeUpdate(base::TimeDelta current_timestamp, | 43 virtual void OnTimeUpdate(base::TimeDelta current_timestamp, |
| 44 base::TimeTicks current_time_ticks) = 0; | 44 base::TimeTicks current_time_ticks) = 0; |
| 45 | 45 |
| 46 virtual void OnPlayerReleased() = 0; | 46 virtual void OnPlayerReleased() = 0; |
| 47 | 47 |
| 48 // Functions called when media player status changes. | 48 // Functions called when media player status changes. |
| 49 virtual void OnConnectedToRemoteDevice( | 49 virtual void OnConnectedToRemoteDevice( |
| 50 const std::string& remote_playback_message) = 0; | 50 const std::string& remote_playback_message) = 0; |
| 51 virtual void OnDisconnectedFromRemoteDevice() = 0; | 51 virtual void OnDisconnectedFromRemoteDevice() = 0; |
| 52 virtual void OnRemotePlaybackStarted() = 0; |
| 52 virtual void OnCancelledRemotePlaybackRequest() = 0; | 53 virtual void OnCancelledRemotePlaybackRequest() = 0; |
| 53 virtual void OnDidExitFullscreen() = 0; | 54 virtual void OnDidExitFullscreen() = 0; |
| 54 virtual void OnMediaPlayerPlay() = 0; | 55 virtual void OnMediaPlayerPlay() = 0; |
| 55 virtual void OnMediaPlayerPause() = 0; | 56 virtual void OnMediaPlayerPause() = 0; |
| 56 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0; | 57 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0; |
| 57 | 58 |
| 58 // Getters of playback state. | 59 // Getters of playback state. |
| 59 virtual bool paused() const = 0; | 60 virtual bool paused() const = 0; |
| 60 | 61 |
| 61 // True if the loaded media has a playable video track. | 62 // True if the loaded media has a playable video track. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void RequestRemotePlaybackStop(int player_id) = 0; | 114 virtual void RequestRemotePlaybackStop(int player_id) = 0; |
| 114 | 115 |
| 115 // Registers and unregisters a RendererMediaPlayerInterface object. | 116 // Registers and unregisters a RendererMediaPlayerInterface object. |
| 116 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; | 117 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; |
| 117 virtual void UnregisterMediaPlayer(int player_id) = 0; | 118 virtual void UnregisterMediaPlayer(int player_id) = 0; |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace media | 121 } // namespace media |
| 121 | 122 |
| 122 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 123 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| OLD | NEW |