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

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

Issue 1987373003: Implement setPoster for WMPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: declare WebURL Created 4 years, 7 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/blink/webmediaplayer_cast_android.cc ('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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 void SetMediaPlayerManager( 190 void SetMediaPlayerManager(
191 RendererMediaPlayerManagerInterface* media_player_manager); 191 RendererMediaPlayerManagerInterface* media_player_manager);
192 void OnRemotePlaybackEnded(); 192 void OnRemotePlaybackEnded();
193 void OnDisconnectedFromRemoteDevice(double t); 193 void OnDisconnectedFromRemoteDevice(double t);
194 void SuspendForRemote(); 194 void SuspendForRemote();
195 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, 195 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
196 PipelineStatus status); 196 PipelineStatus status);
197 gfx::Size GetCanvasSize() const; 197 gfx::Size GetCanvasSize() const;
198 void SetDeviceScaleFactor(float scale_factor); 198 void SetDeviceScaleFactor(float scale_factor);
199 void setPoster(const blink::WebURL& poster) override;
199 #endif 200 #endif
200 201
201 // Called from WebMediaPlayerCast. 202 // Called from WebMediaPlayerCast.
202 // TODO(hubbe): WMPI_CAST make private. 203 // TODO(hubbe): WMPI_CAST make private.
203 void OnPipelineSeeked(bool time_updated); 204 void OnPipelineSeeked(bool time_updated);
204 205
205 // Distinct states that |delegate_| can be in. 206 // Distinct states that |delegate_| can be in.
206 // TODO(sandersd): This should move into WebMediaPlayerDelegate. 207 // TODO(sandersd): This should move into WebMediaPlayerDelegate.
207 // (Public for testing.) 208 // (Public for testing.)
208 enum class DelegateState { 209 enum class DelegateState {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // state will be set to YES or NO respectively if a frame is available. 501 // state will be set to YES or NO respectively if a frame is available.
501 enum class CanSuspendState { UNKNOWN, YES, NO }; 502 enum class CanSuspendState { UNKNOWN, YES, NO };
502 CanSuspendState can_suspend_state_; 503 CanSuspendState can_suspend_state_;
503 504
504 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 505 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
505 }; 506 };
506 507
507 } // namespace media 508 } // namespace media
508 509
509 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 510 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_cast_android.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698