| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 // Clank has connected to the remote device. | 192 // Clank has connected to the remote device. |
| 193 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_ConnectedToRemoteDevice, | 193 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_ConnectedToRemoteDevice, |
| 194 int /* player_id */, | 194 int /* player_id */, |
| 195 std::string /* remote_playback_message */) | 195 std::string /* remote_playback_message */) |
| 196 | 196 |
| 197 // Clank has disconnected from the remote device. | 197 // Clank has disconnected from the remote device. |
| 198 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice, | 198 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice, |
| 199 int /* player_id */) | 199 int /* player_id */) |
| 200 | 200 |
| 201 // The availability of remote devices has changed |
| 202 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_RemoteRouteAvailabilityChanged, |
| 203 int /* player_id */, |
| 204 bool /* routes_available */) |
| 205 |
| 201 // Instructs the video element to enter fullscreen. | 206 // Instructs the video element to enter fullscreen. |
| 202 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RequestFullscreen, | 207 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RequestFullscreen, |
| 203 int /*player_id */) | 208 int /*player_id */) |
| 204 | 209 |
| 205 // Pauses all video playback. | 210 // Pauses all video playback. |
| 206 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo) | 211 IPC_MESSAGE_ROUTED0(MediaPlayerMsg_PauseVideo) |
| 207 | 212 |
| 208 // Messages for controlling the media playback in browser process ---------- | 213 // Messages for controlling the media playback in browser process ---------- |
| 209 | 214 |
| 210 // Destroy the media player object. | 215 // Destroy the media player object. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 241 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, | 246 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, |
| 242 int /* player_id */, | 247 int /* player_id */, |
| 243 GURL /* poster url */) | 248 GURL /* poster url */) |
| 244 | 249 |
| 245 // Requests the player to enter fullscreen. | 250 // Requests the player to enter fullscreen. |
| 246 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) | 251 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) |
| 247 | 252 |
| 248 // Requests the player to exit fullscreen. | 253 // Requests the player to exit fullscreen. |
| 249 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) | 254 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) |
| 250 | 255 |
| 256 // Play the media on a remote device, if possible. |
| 257 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlayback, |
| 258 int /* demuxer_client_id */) |
| 259 |
| 260 // Control media playing on a remote device. |
| 261 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_RequestRemotePlaybackControl, |
| 262 int /* demuxer_client_id */) |
| 263 |
| 251 // Requests the player with |player_id| to use the CDM with |cdm_id|. | 264 // Requests the player with |player_id| to use the CDM with |cdm_id|. |
| 252 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetCdm, | 265 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetCdm, |
| 253 int /* player_id */, | 266 int /* player_id */, |
| 254 int /* cdm_id */); | 267 int /* cdm_id */); |
| 255 | 268 |
| 256 // Sent after the renderer demuxer has seeked. | 269 // Sent after the renderer demuxer has seeked. |
| 257 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, | 270 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, |
| 258 int /* demuxer_client_id */, | 271 int /* demuxer_client_id */, |
| 259 base::TimeDelta /* actual_browser_seek_time */) | 272 base::TimeDelta /* actual_browser_seek_time */) |
| 260 | 273 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 275 | 288 |
| 276 #if defined(VIDEO_HOLE) | 289 #if defined(VIDEO_HOLE) |
| 277 // Notify the player about the external surface, requesting it if necessary. | 290 // Notify the player about the external surface, requesting it if necessary. |
| 278 // |is_request| true if the player is requesting the external surface. | 291 // |is_request| true if the player is requesting the external surface. |
| 279 // |rect| the boundary rectangle of the video element. | 292 // |rect| the boundary rectangle of the video element. |
| 280 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 293 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 281 int /* player_id */, | 294 int /* player_id */, |
| 282 bool /* is_request */, | 295 bool /* is_request */, |
| 283 gfx::RectF /* rect */) | 296 gfx::RectF /* rect */) |
| 284 #endif // defined(VIDEO_HOLE) | 297 #endif // defined(VIDEO_HOLE) |
| OLD | NEW |