| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 int /* player_id */) | 114 int /* player_id */) |
| 115 | 115 |
| 116 // The player started playing. | 116 // The player started playing. |
| 117 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPlay, | 117 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPlay, |
| 118 int /* player_id */) | 118 int /* player_id */) |
| 119 | 119 |
| 120 // The player was paused. | 120 // The player was paused. |
| 121 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, | 121 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, |
| 122 int /* player_id */) | 122 int /* player_id */) |
| 123 | 123 |
| 124 // Media seek is requested. |
| 125 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest, |
| 126 int /* player_id */, |
| 127 base::TimeDelta /* time_to_seek */, |
| 128 bool /* request_texture_peer */) |
| 129 |
| 124 // The media source player reads data from demuxer | 130 // The media source player reads data from demuxer |
| 125 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, | 131 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, |
| 126 int /* player_id */, | 132 int /* player_id */, |
| 127 media::DemuxerStream::Type /* type */, | 133 media::DemuxerStream::Type /* type */, |
| 128 bool /* seek_done */) | 134 bool /* seek_done */) |
| 129 | 135 |
| 130 // Messages for controllering the media playback in browser process ---------- | 136 // Messages for controllering the media playback in browser process ---------- |
| 131 | 137 |
| 132 // Destroy the media player object. | 138 // Destroy the media player object. |
| 133 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 139 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 161 int /* player_id */) | 167 int /* player_id */) |
| 162 | 168 |
| 163 // Request the player to enter fullscreen. | 169 // Request the player to enter fullscreen. |
| 164 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, | 170 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, |
| 165 int /* player_id */) | 171 int /* player_id */) |
| 166 | 172 |
| 167 // Request the player to exit fullscreen. | 173 // Request the player to exit fullscreen. |
| 168 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, | 174 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, |
| 169 int /* player_id */) | 175 int /* player_id */) |
| 170 | 176 |
| 177 // Sent when the seek request is received by the WebMediaPlayerAndroid. |
| 178 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaSeekRequestAck, |
| 179 int /* player_id */) |
| 180 |
| 171 // Inform the media source player that the demuxer is ready. | 181 // Inform the media source player that the demuxer is ready. |
| 172 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, | 182 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, |
| 173 int /* player_id */, | 183 int /* player_id */, |
| 174 media::MediaPlayerHostMsg_DemuxerReady_Params) | 184 media::MediaPlayerHostMsg_DemuxerReady_Params) |
| 175 | 185 |
| 176 // Sent when the data was read from the ChunkDemuxer. | 186 // Sent when the data was read from the ChunkDemuxer. |
| 177 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 187 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
| 178 int /* player_id */, | 188 int /* player_id */, |
| 179 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) | 189 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) |
| 180 | 190 |
| 181 #if defined(GOOGLE_TV) | 191 #if defined(GOOGLE_TV) |
| 182 // Notify the player about the external surface, requesting it if necessary. | 192 // Notify the player about the external surface, requesting it if necessary. |
| 183 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 193 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 184 int /* player_id */, | 194 int /* player_id */, |
| 185 bool /* is_request */, | 195 bool /* is_request */, |
| 186 gfx::RectF /* rect */) | 196 gfx::RectF /* rect */) |
| 187 | 197 |
| 188 #endif | 198 #endif |
| OLD | NEW |