Chromium Code Reviews| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 173 // The player needs new config data | 173 // The player needs new config data |
| 174 IPC_MESSAGE_CONTROL1(MediaPlayerMsg_MediaConfigRequest, | 174 IPC_MESSAGE_CONTROL1(MediaPlayerMsg_MediaConfigRequest, |
| 175 int /* demuxer_client_id */) | 175 int /* demuxer_client_id */) |
| 176 | 176 |
| 177 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_ConnectedToRemoteDevice, | 177 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_ConnectedToRemoteDevice, |
| 178 int /* player_id */) | 178 int /* player_id */) |
| 179 | 179 |
| 180 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice, | 180 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DisconnectedFromRemoteDevice, |
| 181 int /* player_id */) | 181 int /* player_id */) |
| 182 | 182 |
| 183 // Instructs the video element to enter fullscreen. | |
| 184 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_RequestFullscreen, | |
| 185 int /*player_id */) | |
| 186 | |
| 183 // Messages for controlling the media playback in browser process ---------- | 187 // Messages for controlling the media playback in browser process ---------- |
| 184 | 188 |
| 185 // Destroy the media player object. | 189 // Destroy the media player object. |
| 186 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 190 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
| 187 int /* player_id */) | 191 int /* player_id */) |
| 188 | 192 |
| 189 // Destroy all the players. | 193 // Destroy all the players. |
| 190 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) | 194 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) |
| 191 | 195 |
| 192 // Initialize a media player object with the given type and player_id. The other | 196 // Initialize a media player object with the given type and player_id. The other |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 // Sent when the data was read from the ChunkDemuxer. | 249 // Sent when the data was read from the ChunkDemuxer. |
| 246 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 250 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
| 247 int /* demuxer_client_id */, | 251 int /* demuxer_client_id */, |
| 248 media::DemuxerData) | 252 media::DemuxerData) |
| 249 | 253 |
| 250 // Inform the media source player of changed media duration from demuxer. | 254 // Inform the media source player of changed media duration from demuxer. |
| 251 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, | 255 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, |
| 252 int /* demuxer_client_id */, | 256 int /* demuxer_client_id */, |
| 253 base::TimeDelta /* duration */) | 257 base::TimeDelta /* duration */) |
| 254 | 258 |
| 259 | |
|
xhwang
2013/10/25 18:21:59
why extra line?
| |
| 255 #if defined(GOOGLE_TV) | 260 #if defined(GOOGLE_TV) |
| 256 // Notify the player about the external surface, requesting it if necessary. | 261 // Notify the player about the external surface, requesting it if necessary. |
| 257 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 262 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 258 int /* player_id */, | 263 int /* player_id */, |
| 259 bool /* is_request */, | 264 bool /* is_request */, |
| 260 gfx::RectF /* rect */) | 265 gfx::RectF /* rect */) |
| 261 | 266 |
| 262 #endif | 267 #endif |
| 263 | 268 |
| 264 // Messages for encrypted media extensions API ------------------------------ | 269 // Messages for encrypted media extensions API ------------------------------ |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 292 int /* media_keys_id */, | 297 int /* media_keys_id */, |
| 293 std::string /* session_id */, | 298 std::string /* session_id */, |
| 294 media::MediaKeys::KeyError /* error_code */, | 299 media::MediaKeys::KeyError /* error_code */, |
| 295 int /* system_code */) | 300 int /* system_code */) |
| 296 | 301 |
| 297 IPC_MESSAGE_ROUTED4(MediaKeysMsg_KeyMessage, | 302 IPC_MESSAGE_ROUTED4(MediaKeysMsg_KeyMessage, |
| 298 int /* media_keys_id */, | 303 int /* media_keys_id */, |
| 299 std::string /* session_id */, | 304 std::string /* session_id */, |
| 300 std::vector<uint8> /* message */, | 305 std::vector<uint8> /* message */, |
| 301 std::string /* destination_url */) | 306 std::string /* destination_url */) |
| OLD | NEW |