Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 2538853002: Media Remoting: Draw remoting interstitial on poster image. (Closed)
Patch Set: Addressed nasko's comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/media_observer.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void setContentDecryptionModule( 177 void setContentDecryptionModule(
178 blink::WebContentDecryptionModule* cdm, 178 blink::WebContentDecryptionModule* cdm,
179 blink::WebContentDecryptionModuleResult result) override; 179 blink::WebContentDecryptionModuleResult result) override;
180 180
181 void SetEnableFullscreenOverlays(bool enable_overlays); 181 void SetEnableFullscreenOverlays(bool enable_overlays);
182 bool supportsOverlayFullscreenVideo() override; 182 bool supportsOverlayFullscreenVideo() override;
183 void enteredFullscreen() override; 183 void enteredFullscreen() override;
184 void exitedFullscreen() override; 184 void exitedFullscreen() override;
185 void becameDominantVisibleContent(bool isDominant) override; 185 void becameDominantVisibleContent(bool isDominant) override;
186 186
187 void setPoster(const blink::WebURL& poster) override;
188
187 // WebMediaPlayerDelegate::Observer implementation. 189 // WebMediaPlayerDelegate::Observer implementation.
188 void OnHidden() override; 190 void OnHidden() override;
189 void OnShown() override; 191 void OnShown() override;
190 bool OnSuspendRequested(bool must_suspend) override; 192 bool OnSuspendRequested(bool must_suspend) override;
191 void OnPlay() override; 193 void OnPlay() override;
192 void OnPause() override; 194 void OnPause() override;
193 void OnVolumeMultiplierUpdate(double multiplier) override; 195 void OnVolumeMultiplierUpdate(double multiplier) override;
194 196
195 void requestRemotePlaybackDisabled(bool disabled) override; 197 void requestRemotePlaybackDisabled(bool disabled) override;
196 #if defined(OS_ANDROID) // WMPI_CAST 198 #if defined(OS_ANDROID) // WMPI_CAST
197 bool isRemote() const override; 199 bool isRemote() const override;
198 void requestRemotePlayback() override; 200 void requestRemotePlayback() override;
199 void requestRemotePlaybackControl() override; 201 void requestRemotePlaybackControl() override;
200 void requestRemotePlaybackStop() override; 202 void requestRemotePlaybackStop() override;
201 203
202 void SetMediaPlayerManager( 204 void SetMediaPlayerManager(
203 RendererMediaPlayerManagerInterface* media_player_manager); 205 RendererMediaPlayerManagerInterface* media_player_manager);
204 void OnRemotePlaybackEnded(); 206 void OnRemotePlaybackEnded();
205 void OnDisconnectedFromRemoteDevice(double t); 207 void OnDisconnectedFromRemoteDevice(double t);
206 void SuspendForRemote(); 208 void SuspendForRemote();
207 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, 209 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
208 PipelineStatus status); 210 PipelineStatus status);
209 gfx::Size GetCanvasSize() const; 211 gfx::Size GetCanvasSize() const;
210 void SetDeviceScaleFactor(float scale_factor); 212 void SetDeviceScaleFactor(float scale_factor);
211 void setPoster(const blink::WebURL& poster) override;
212 void SetUseFallbackPath(bool use_fallback_path); 213 void SetUseFallbackPath(bool use_fallback_path);
213 #endif 214 #endif
214 215
215 // Called from WebMediaPlayerCast. 216 // Called from WebMediaPlayerCast.
216 // TODO(hubbe): WMPI_CAST make private. 217 // TODO(hubbe): WMPI_CAST make private.
217 void OnPipelineSeeked(bool time_updated); 218 void OnPipelineSeeked(bool time_updated);
218 219
219 // Restart the player/pipeline as soon as possible. This will destroy the 220 // Restart the player/pipeline as soon as possible. This will destroy the
220 // current renderer, if any, and create a new one via the RendererFactory; and 221 // current renderer, if any, and create a new one via the RendererFactory; and
221 // then seek to resume playback at the current position. 222 // then seek to resume playback at the current position.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 587
587 // Whether the player is currently in autoplay muted state. 588 // Whether the player is currently in autoplay muted state.
588 bool autoplay_muted_ = false; 589 bool autoplay_muted_ = false;
589 590
590 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 591 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
591 }; 592 };
592 593
593 } // namespace media 594 } // namespace media
594 595
595 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 596 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/media_observer.h ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698