| 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_H_ | 7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ |
| 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ | 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void OnTimeUpdate(base::TimeDelta current_timestamp, | 66 void OnTimeUpdate(base::TimeDelta current_timestamp, |
| 67 base::TimeTicks current_time_ticks) override; | 67 base::TimeTicks current_time_ticks) override; |
| 68 | 68 |
| 69 // void OnWaitingForDecryptionKey() override; | 69 // void OnWaitingForDecryptionKey() override; |
| 70 void OnPlayerReleased() override; | 70 void OnPlayerReleased() override; |
| 71 | 71 |
| 72 // Functions called when media player status changes. | 72 // Functions called when media player status changes. |
| 73 void OnConnectedToRemoteDevice( | 73 void OnConnectedToRemoteDevice( |
| 74 const std::string& remote_playback_message) override; | 74 const std::string& remote_playback_message) override; |
| 75 void OnDisconnectedFromRemoteDevice() override; | 75 void OnDisconnectedFromRemoteDevice() override; |
| 76 void OnCancelledRemotePlaybackRequest() override; |
| 76 void OnDidExitFullscreen() override; | 77 void OnDidExitFullscreen() override; |
| 77 void OnMediaPlayerPlay() override; | 78 void OnMediaPlayerPlay() override; |
| 78 void OnMediaPlayerPause() override; | 79 void OnMediaPlayerPause() override; |
| 79 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; | 80 void OnRemoteRouteAvailabilityChanged(bool routes_available) override; |
| 80 | 81 |
| 81 // Getters of playback state. | 82 // Getters of playback state. |
| 82 // bool paused() const override; | 83 // bool paused() const override; |
| 83 | 84 |
| 84 // True if the loaded media has a playable video track. | 85 // True if the loaded media has a playable video track. |
| 85 // bool hasVideo() const override; | 86 // bool hasVideo() const override; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Make a texture-backed video of the given size containing the given message. | 144 // Make a texture-backed video of the given size containing the given message. |
| 144 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( | 145 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( |
| 145 const std::string& remote_playback_message, | 146 const std::string& remote_playback_message, |
| 146 gfx::Size canvas_size, | 147 gfx::Size canvas_size, |
| 147 gfx::Size natural_size, | 148 gfx::Size natural_size, |
| 148 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); | 149 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); |
| 149 | 150 |
| 150 } // namespace media | 151 } // namespace media |
| 151 | 152 |
| 152 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ | 153 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ |
| OLD | NEW |