| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 OnRemotePlaybackStarted() = 0; |
| 53 virtual void OnCancelledRemotePlaybackRequest() = 0; | 53 virtual void OnCancelledRemotePlaybackRequest() = 0; |
| 54 virtual void OnDidExitFullscreen() = 0; | 54 virtual void OnDidExitFullscreen() = 0; |
| 55 virtual void OnMediaPlayerPlay() = 0; | 55 virtual void OnMediaPlayerPlay() = 0; |
| 56 virtual void OnMediaPlayerPause() = 0; | 56 virtual void OnMediaPlayerPause() = 0; |
| 57 virtual void OnRemoteRouteAvailabilityChanged(bool routes_available) = 0; | 57 virtual void OnRemoteRouteAvailabilityChanged(bool is_route_available, |
| 58 bool is_source_compatible) = 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; |
| 64 | 65 |
| 65 // This function is called by the RendererMediaPlayerManager to pause the | 66 // This function is called by the RendererMediaPlayerManager to pause the |
| 66 // video and release the media player and surface texture when we switch tabs. | 67 // video and release the media player and surface texture when we switch tabs. |
| 67 // However, the actual GlTexture is not released to keep the video screenshot. | 68 // However, the actual GlTexture is not released to keep the video screenshot. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 virtual void RequestRemotePlaybackStop(int player_id) = 0; | 115 virtual void RequestRemotePlaybackStop(int player_id) = 0; |
| 115 | 116 |
| 116 // Registers and unregisters a RendererMediaPlayerInterface object. | 117 // Registers and unregisters a RendererMediaPlayerInterface object. |
| 117 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; | 118 virtual int RegisterMediaPlayer(RendererMediaPlayerInterface* player) = 0; |
| 118 virtual void UnregisterMediaPlayer(int player_id) = 0; | 119 virtual void UnregisterMediaPlayer(int player_id) = 0; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace media | 122 } // namespace media |
| 122 | 123 |
| 123 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ | 124 #endif // MEDIA_BLINK_RENDERER_MEDIA_PLAYER_INTERFACE_H_ |
| OLD | NEW |