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

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

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Updated with new UX design. Created 3 years, 8 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void OnDisconnectedFromRemoteDevice(double t); 213 void OnDisconnectedFromRemoteDevice(double t);
214 void SuspendForRemote(); 214 void SuspendForRemote();
215 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame, 215 void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
216 PipelineStatus status); 216 PipelineStatus status);
217 gfx::Size GetCanvasSize() const; 217 gfx::Size GetCanvasSize() const;
218 void SetDeviceScaleFactor(float scale_factor); 218 void SetDeviceScaleFactor(float scale_factor);
219 void SetUseFallbackPath(bool use_fallback_path); 219 void SetUseFallbackPath(bool use_fallback_path);
220 #endif 220 #endif
221 221
222 // MediaObserverClient implementation. 222 // MediaObserverClient implementation.
223 void SwitchRenderer(bool disable_pipeline_auto_suspend) override; 223 void SwitchRenderer(bool is_rendered_remotely) override;
224 void ActivateViewportIntersectionMonitoring(bool activate) override; 224 void ActivateViewportIntersectionMonitoring(bool activate) override;
225 225
226 // Called from WebMediaPlayerCast. 226 // Called from WebMediaPlayerCast.
227 // TODO(hubbe): WMPI_CAST make private. 227 // TODO(hubbe): WMPI_CAST make private.
228 void OnPipelineSeeked(bool time_updated); 228 void OnPipelineSeeked(bool time_updated);
229 229
230 // Distinct states that |delegate_| can be in. (Public for testing.) 230 // Distinct states that |delegate_| can be in. (Public for testing.)
231 enum class DelegateState { 231 enum class DelegateState {
232 GONE, 232 GONE,
233 PLAYING, 233 PLAYING,
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 base::TimeDelta last_uploaded_frame_timestamp_; 713 base::TimeDelta last_uploaded_frame_timestamp_;
714 714
715 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_; 715 base::CancelableCallback<void(base::TimeTicks)> frame_time_report_cb_;
716 716
717 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 717 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
718 }; 718 };
719 719
720 } // namespace media 720 } // namespace media
721 721
722 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 722 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698