| 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 // Delete this file when WMPI_CAST is no longer needed. | 5 // Delete this file when WMPI_CAST is no longer needed. |
| 6 | 6 |
| 7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ | 7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ |
| 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ | 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Functions called when media player status changes. | 74 // Functions called when media player status changes. |
| 75 void OnConnectedToRemoteDevice( | 75 void OnConnectedToRemoteDevice( |
| 76 const std::string& remote_playback_message) override; | 76 const std::string& remote_playback_message) override; |
| 77 void OnDisconnectedFromRemoteDevice() override; | 77 void OnDisconnectedFromRemoteDevice() override; |
| 78 void OnCancelledRemotePlaybackRequest() override; | 78 void OnCancelledRemotePlaybackRequest() override; |
| 79 void OnRemotePlaybackStarted() override; | 79 void OnRemotePlaybackStarted() override; |
| 80 void OnDidExitFullscreen() override; | 80 void OnDidExitFullscreen() override; |
| 81 void OnMediaPlayerPlay() override; | 81 void OnMediaPlayerPlay() override; |
| 82 void OnMediaPlayerPause() override; | 82 void OnMediaPlayerPause() override; |
| 83 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; | 83 void OnRemoteRouteAvailabilityChanged( |
| 84 blink::WebRemotePlaybackAvailability availability) override; |
| 84 | 85 |
| 85 // Getters of playback state. | 86 // Getters of playback state. |
| 86 // bool paused() const override; | 87 // bool paused() const override; |
| 87 | 88 |
| 88 // True if the loaded media has a playable video track. | 89 // True if the loaded media has a playable video track. |
| 89 // bool hasVideo() const override; | 90 // bool hasVideo() const override; |
| 90 | 91 |
| 91 // This function is called by the RendererMediaPlayerManager to pause the | 92 // This function is called by the RendererMediaPlayerManager to pause the |
| 92 // video and release the media player and surface texture when we switch tabs. | 93 // video and release the media player and surface texture when we switch tabs. |
| 93 // However, the actual GlTexture is not released to keep the video screenshot. | 94 // However, the actual GlTexture is not released to keep the video screenshot. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Make a texture-backed video of the given size containing the given message. | 138 // Make a texture-backed video of the given size containing the given message. |
| 138 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( | 139 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( |
| 139 const std::string& remote_playback_message, | 140 const std::string& remote_playback_message, |
| 140 gfx::Size canvas_size, | 141 gfx::Size canvas_size, |
| 141 gfx::Size natural_size, | 142 gfx::Size natural_size, |
| 142 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); | 143 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); |
| 143 | 144 |
| 144 } // namespace media | 145 } // namespace media |
| 145 | 146 |
| 146 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ | 147 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ |
| OLD | NEW |