| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void OnShown() override; | 188 void OnShown() override; |
| 189 void OnSuspendRequested(bool must_suspend) override; | 189 void OnSuspendRequested(bool must_suspend) override; |
| 190 void OnPlay() override; | 190 void OnPlay() override; |
| 191 void OnPause() override; | 191 void OnPause() override; |
| 192 void OnVolumeMultiplierUpdate(double multiplier) override; | 192 void OnVolumeMultiplierUpdate(double multiplier) override; |
| 193 | 193 |
| 194 #if defined(OS_ANDROID) // WMPI_CAST | 194 #if defined(OS_ANDROID) // WMPI_CAST |
| 195 bool isRemote() const override; | 195 bool isRemote() const override; |
| 196 void requestRemotePlayback() override; | 196 void requestRemotePlayback() override; |
| 197 void requestRemotePlaybackControl() override; | 197 void requestRemotePlaybackControl() override; |
| 198 void requestRemotePlaybackStop() override; |
| 198 | 199 |
| 199 void SetMediaPlayerManager( | 200 void SetMediaPlayerManager( |
| 200 RendererMediaPlayerManagerInterface* media_player_manager); | 201 RendererMediaPlayerManagerInterface* media_player_manager); |
| 201 void OnRemotePlaybackEnded(); | 202 void OnRemotePlaybackEnded(); |
| 202 void OnDisconnectedFromRemoteDevice(double t); | 203 void OnDisconnectedFromRemoteDevice(double t); |
| 203 void SuspendForRemote(); | 204 void SuspendForRemote(); |
| 204 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, | 205 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, |
| 205 PipelineStatus status); | 206 PipelineStatus status); |
| 206 gfx::Size GetCanvasSize() const; | 207 gfx::Size GetCanvasSize() const; |
| 207 void SetDeviceScaleFactor(float scale_factor); | 208 void SetDeviceScaleFactor(float scale_factor); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 | 569 |
| 569 // Whether the player is currently in autoplay muted state. | 570 // Whether the player is currently in autoplay muted state. |
| 570 bool autoplay_muted_ = false; | 571 bool autoplay_muted_ = false; |
| 571 | 572 |
| 572 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 573 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 573 }; | 574 }; |
| 574 | 575 |
| 575 } // namespace media | 576 } // namespace media |
| 576 | 577 |
| 577 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 578 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |