| OLD | NEW |
| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, | 240 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, |
| 241 int /* player_id */, | 241 int /* player_id */, |
| 242 GURL /* poster url */) | 242 GURL /* poster url */) |
| 243 | 243 |
| 244 // Requests the player to enter fullscreen. | 244 // Requests the player to enter fullscreen. |
| 245 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) | 245 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) |
| 246 | 246 |
| 247 // Requests the player to exit fullscreen. | 247 // Requests the player to exit fullscreen. |
| 248 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) | 248 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) |
| 249 | 249 |
| 250 // Requests the player with |player_id| to use the CDM with |cdm_id|. |
| 251 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetCdm, |
| 252 int /* player_id */, |
| 253 int /* cdm_id */); |
| 254 |
| 250 // Sent after the renderer demuxer has seeked. | 255 // Sent after the renderer demuxer has seeked. |
| 251 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, | 256 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, |
| 252 int /* demuxer_client_id */, | 257 int /* demuxer_client_id */, |
| 253 base::TimeDelta /* actual_browser_seek_time */) | 258 base::TimeDelta /* actual_browser_seek_time */) |
| 254 | 259 |
| 255 // Inform the media source player that the demuxer is ready. | 260 // Inform the media source player that the demuxer is ready. |
| 256 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerReady, | 261 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerReady, |
| 257 int /* demuxer_client_id */, | 262 int /* demuxer_client_id */, |
| 258 media::DemuxerConfigs) | 263 media::DemuxerConfigs) |
| 259 | 264 |
| 260 // Sent when the data was read from the ChunkDemuxer. | 265 // Sent when the data was read from the ChunkDemuxer. |
| 261 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 266 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
| 262 int /* demuxer_client_id */, | 267 int /* demuxer_client_id */, |
| 263 media::DemuxerData) | 268 media::DemuxerData) |
| 264 | 269 |
| 265 // Inform the media source player of changed media duration from demuxer. | 270 // Inform the media source player of changed media duration from demuxer. |
| 266 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, | 271 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, |
| 267 int /* demuxer_client_id */, | 272 int /* demuxer_client_id */, |
| 268 base::TimeDelta /* duration */) | 273 base::TimeDelta /* duration */) |
| 269 | 274 |
| 270 #if defined(VIDEO_HOLE) | 275 #if defined(VIDEO_HOLE) |
| 271 // Notify the player about the external surface, requesting it if necessary. | 276 // Notify the player about the external surface, requesting it if necessary. |
| 272 // |is_request| true if the player is requesting the external surface. | 277 // |is_request| true if the player is requesting the external surface. |
| 273 // |rect| the boundary rectangle of the video element. | 278 // |rect| the boundary rectangle of the video element. |
| 274 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 279 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 275 int /* player_id */, | 280 int /* player_id */, |
| 276 bool /* is_request */, | 281 bool /* is_request */, |
| 277 gfx::RectF /* rect */) | 282 gfx::RectF /* rect */) |
| 278 #endif // defined(VIDEO_HOLE) | 283 #endif // defined(VIDEO_HOLE) |
| OLD | NEW |