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