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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Created 3 years, 9 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
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 void OnDisconnectedFromRemoteDevice(double t); 211 void OnDisconnectedFromRemoteDevice(double t);
212 void SuspendForRemote(); 212 void SuspendForRemote();
213 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, 213 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
214 PipelineStatus status); 214 PipelineStatus status);
215 gfx::Size GetCanvasSize() const; 215 gfx::Size GetCanvasSize() const;
216 void SetDeviceScaleFactor(float scale_factor); 216 void SetDeviceScaleFactor(float scale_factor);
217 void SetUseFallbackPath(bool use_fallback_path); 217 void SetUseFallbackPath(bool use_fallback_path);
218 #endif 218 #endif
219 219
220 // MediaObserverClient implementation. 220 // MediaObserverClient implementation.
221 void SwitchRenderer(bool disable_pipeline_auto_suspend) override; 221 void SwitchRenderer(bool is_rendered_remotely) override;
222 void ActivateViewportIntersectionMonitoring(bool activate) override; 222 void ActivateViewportIntersectionMonitoring(bool activate) override;
223 223
224 // Called from WebMediaPlayerCast. 224 // Called from WebMediaPlayerCast.
225 // TODO(hubbe): WMPI_CAST make private. 225 // TODO(hubbe): WMPI_CAST make private.
226 void OnPipelineSeeked(bool time_updated); 226 void OnPipelineSeeked(bool time_updated);
227 227
228 // Distinct states that |delegate_| can be in. (Public for testing.) 228 // Distinct states that |delegate_| can be in. (Public for testing.)
229 enum class DelegateState { 229 enum class DelegateState {
230 GONE, 230 GONE,
231 PLAYING, 231 PLAYING,
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 710
711 // Whether embedded media experience is currently enabled. 711 // Whether embedded media experience is currently enabled.
712 bool embedded_media_experience_enabled_ = false; 712 bool embedded_media_experience_enabled_ = false;
713 713
714 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 714 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
715 }; 715 };
716 716
717 } // namespace media 717 } // namespace media
718 718
719 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 719 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698