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

Side by Side Diff: content/common/media/media_player_messages_android.h

Issue 349923007: Implement media Cast button in Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // IPC messages for android media player. 5 // IPC messages for android media player.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Clank has connected to the remote device. 190 // Clank has connected to the remote device.
191 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_ConnectedToRemoteDevice, 191 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_ConnectedToRemoteDevice,
192 int /* player_id */, 192 int /* player_id */,
193 std::string /* remote_playback_message */) 193 std::string /* remote_playback_message */)
194 194
195 // Clank has disconnected from the remote device. 195 // Clank has disconnected from the remote device.
196 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice, 196 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice,
197 int /* player_id */) 197 int /* player_id */)
198 198
199 // The availability of remote devices has changed
200 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_RemoteRouteAvailabilityChanged,
201 int /* player_id */,
202 bool /* routes_available */)
203
199 // Instructs the video element to enter fullscreen. 204 // Instructs the video element to enter fullscreen.
200 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RequestFullscreen, 205 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RequestFullscreen,
201 int /*player_id */) 206 int /*player_id */)
202 207
203 // Pauses all video playback. 208 // Pauses all video playback.
204 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo) 209 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo)
205 210
206 // Messages for controlling the media playback in browser process ---------- 211 // Messages for controlling the media playback in browser process ----------
207 212
208 // Destroy the media player object. 213 // Destroy the media player object.
(...skipping 30 matching lines...) Expand all
239 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, 244 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster,
240 int /* player_id */, 245 int /* player_id */,
241 GURL /* poster url */) 246 GURL /* poster url */)
242 247
243 // Requests the player to enter fullscreen. 248 // Requests the player to enter fullscreen.
244 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) 249 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */)
245 250
246 // Requests the player to exit fullscreen. 251 // Requests the player to exit fullscreen.
247 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) 252 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */)
248 253
254 // Play the media on a remote device, if possible.
255 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlayback,
256 int /* demuxer_client_id */)
257
258 // Control media playing on a remote device.
259 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackControl,
260 int /* demuxer_client_id */)
261
249 // Requests the player with |player_id| to use the CDM with |cdm_id|. 262 // Requests the player with |player_id| to use the CDM with |cdm_id|.
250 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetCdm, 263 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetCdm,
251 int /* player_id */, 264 int /* player_id */,
252 int /* cdm_id */); 265 int /* cdm_id */);
253 266
254 // Sent after the renderer demuxer has seeked. 267 // Sent after the renderer demuxer has seeked.
255 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, 268 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone,
256 int /* demuxer_client_id */, 269 int /* demuxer_client_id */,
257 base::TimeDelta /* actual_browser_seek_time */) 270 base::TimeDelta /* actual_browser_seek_time */)
258 271
(...skipping 14 matching lines...) Expand all
273 286
274 #if defined(VIDEO_HOLE) 287 #if defined(VIDEO_HOLE)
275 // Notify the player about the external surface, requesting it if necessary. 288 // Notify the player about the external surface, requesting it if necessary.
276 // |is_request| true if the player is requesting the external surface. 289 // |is_request| true if the player is requesting the external surface.
277 // |rect| the boundary rectangle of the video element. 290 // |rect| the boundary rectangle of the video element.
278 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, 291 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface,
279 int /* player_id */, 292 int /* player_id */,
280 bool /* is_request */, 293 bool /* is_request */,
281 gfx::RectF /* rect */) 294 gfx::RectF /* rect */)
282 #endif // defined(VIDEO_HOLE) 295 #endif // defined(VIDEO_HOLE)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698