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

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

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Rebase, addressed comments Created 4 years, 1 month 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 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_ANDROID_H_ 7 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_
8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ 8 #define MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 23 matching lines...) Expand all
34 blink::WebMediaPlayerClient* client, 34 blink::WebMediaPlayerClient* client,
35 const WebMediaPlayerParams::Context3DCB& context_3d_cb); 35 const WebMediaPlayerParams::Context3DCB& context_3d_cb);
36 ~WebMediaPlayerCast(); 36 ~WebMediaPlayerCast();
37 37
38 void Initialize(const GURL& url, 38 void Initialize(const GURL& url,
39 blink::WebLocalFrame* frame, 39 blink::WebLocalFrame* frame,
40 int delegate_id); 40 int delegate_id);
41 41
42 void requestRemotePlayback(); 42 void requestRemotePlayback();
43 void requestRemotePlaybackControl(); 43 void requestRemotePlaybackControl();
44 void requestRemotePlaybackStop();
44 45
45 void SetMediaPlayerManager( 46 void SetMediaPlayerManager(
46 RendererMediaPlayerManagerInterface* media_player_manager); 47 RendererMediaPlayerManagerInterface* media_player_manager);
47 bool isRemote() const { return is_remote_; } 48 bool isRemote() const { return is_remote_; }
48 49
49 double currentTime() const; 50 double currentTime() const;
50 void play(); 51 void play();
51 void pause(); 52 void pause();
52 void seek(base::TimeDelta t); 53 void seek(base::TimeDelta t);
53 54
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Make a texture-backed video of the given size containing the given message. 136 // Make a texture-backed video of the given size containing the given message.
136 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast( 137 MEDIA_BLINK_EXPORT scoped_refptr<VideoFrame> MakeTextFrameForCast(
137 const std::string& remote_playback_message, 138 const std::string& remote_playback_message,
138 gfx::Size canvas_size, 139 gfx::Size canvas_size,
139 gfx::Size natural_size, 140 gfx::Size natural_size,
140 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb); 141 const base::Callback<gpu::gles2::GLES2Interface*()>& context_3d_cb);
141 142
142 } // namespace media 143 } // namespace media
143 144
144 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_ 145 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_CAST_ANDROID_H_
OLDNEW
« no previous file with comments | « media/blink/renderer_media_player_interface.h ('k') | media/blink/webmediaplayer_cast_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698