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

Side by Side Diff: media/blink/webmediaplayer_cast_android.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 | « no previous file | media/blink/webmediaplayer_cast_android.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Delete this file when WMPI_CAST is no longer needed. 5 // Delete this file when WMPI_CAST is no longer needed.
6 6
7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ 7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_
8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "media/blink/media_blink_export.h" 11 #include "media/blink/media_blink_export.h"
12 #include "media/blink/renderer_media_player_interface.h" 12 #include "media/blink/renderer_media_player_interface.h"
13 #include "media/blink/webmediaplayer_params.h" 13 #include "media/blink/webmediaplayer_params.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebLocalFrame; 17 class WebLocalFrame;
18 class WebMediaPlayerClient; 18 class WebMediaPlayerClient;
19 class WebURL;
19 } 20 }
20 21
21 namespace media { 22 namespace media {
22 23
23 class VideoFrame; 24 class VideoFrame;
24 class WebMediaPlayerDelegate; 25 class WebMediaPlayerDelegate;
25 class WebMediaPlayerImpl; 26 class WebMediaPlayerImpl;
26 27
27 // This shim allows WebMediaPlayer to act sufficiently similar to 28 // This shim allows WebMediaPlayer to act sufficiently similar to
28 // WebMediaPlayerAndroid (by extending RendererMediaPlayerInterface) 29 // WebMediaPlayerAndroid (by extending RendererMediaPlayerInterface)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const gfx::RectF GetBoundaryRectangle() override; 100 const gfx::RectF GetBoundaryRectangle() override;
100 #endif 101 #endif
101 102
102 void OnWaitingForDecryptionKey() override; 103 void OnWaitingForDecryptionKey() override;
103 104
104 bool paused() const override; 105 bool paused() const override;
105 bool hasVideo() const override; 106 bool hasVideo() const override;
106 107
107 void SetDeviceScaleFactor(float scale_factor); 108 void SetDeviceScaleFactor(float scale_factor);
108 scoped_refptr<VideoFrame> GetCastingBanner(); 109 scoped_refptr<VideoFrame> GetCastingBanner();
110 void setPoster(const blink::WebURL& poster);
109 111
110 private: 112 private:
111 WebMediaPlayerImpl* webmediaplayer_; 113 WebMediaPlayerImpl* webmediaplayer_;
112 blink::WebMediaPlayerClient* client_; 114 blink::WebMediaPlayerClient* client_;
113 WebMediaPlayerParams::Context3DCB context_3d_cb_; 115 WebMediaPlayerParams::Context3DCB context_3d_cb_;
114 116
115 // Manages this object and delegates player calls to the browser process. 117 // Manages this object and delegates player calls to the browser process.
116 // Owned by RenderFrameImpl. 118 // Owned by RenderFrameImpl.
117 RendererMediaPlayerManagerInterface* player_manager_ = nullptr; 119 RendererMediaPlayerManagerInterface* player_manager_ = nullptr;
118 120
(...skipping 25 matching lines...) Expand all
144 // Make a texture-backed video of the given size containing the given message. 146 // Make a texture-backed video of the given size containing the given message.
145 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( 147 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast(
146 const std::string& remote_playback_message, 148 const std::string& remote_playback_message,
147 gfx::Size canvas_size, 149 gfx::Size canvas_size,
148 gfx::Size natural_size, 150 gfx::Size natural_size,
149 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); 151 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb);
150 152
151 } // namespace media 153 } // namespace media
152 154
153 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_ 155 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698