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 page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 2284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2295 // * id - (integer) the frame identifier in this RenderView | 2295 // * id - (integer) the frame identifier in this RenderView |
| 2296 // * name - (string) the name of the frame, if one has been assigned | 2296 // * name - (string) the name of the frame, if one has been assigned |
| 2297 // * subtree - an array of the same type of objects for each frame that is a | 2297 // * subtree - an array of the same type of objects for each frame that is a |
| 2298 // direct child of the current frame. This property can be omitted if | 2298 // direct child of the current frame. This property can be omitted if |
| 2299 // there are no direct child frames, so less data is transferred. | 2299 // there are no direct child frames, so less data is transferred. |
| 2300 // | 2300 // |
| 2301 // This message must be sent on any events that modify the tree structure or | 2301 // This message must be sent on any events that modify the tree structure or |
| 2302 // the names of any frames. | 2302 // the names of any frames. |
| 2303 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameTreeUpdated, | 2303 IPC_MESSAGE_ROUTED1(ViewHostMsg_FrameTreeUpdated, |
| 2304 std::string /* json encoded frame tree */) | 2304 std::string /* json encoded frame tree */) |
| 2305 | |
| 2306 #if defined(OS_ANDROID) | |
| 2307 // Mediaplayer related messages ---------------------------------------------- | |
|
scherkus (not reviewing)
2012/09/07 13:17:35
nit: "mediaplayer" is not a word and you should el
qinmin
2012/09/07 22:48:27
Done. Split the description into 2, one for contro
| |
| 2308 | |
| 2309 // Media buffering has updated. | |
| 2310 IPC_MESSAGE_ROUTED2(ViewMsg_MediaBufferingUpdate, | |
| 2311 int /* player_id */, | |
| 2312 int /* percent */) | |
| 2313 | |
| 2314 // A media playback error has occured. | |
| 2315 IPC_MESSAGE_ROUTED2(ViewMsg_MediaError, | |
| 2316 int /* player_id */, | |
| 2317 int /* error */) | |
| 2318 | |
| 2319 // Playback is completed. | |
| 2320 IPC_MESSAGE_ROUTED1(ViewMsg_MediaPlaybackCompleted, | |
| 2321 int /* player_id */) | |
| 2322 | |
| 2323 // Player is prepared. | |
| 2324 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPrepared, | |
| 2325 int /* player_id */, | |
| 2326 base::TimeDelta /* duration */) | |
| 2327 | |
| 2328 // Media seek is completed. | |
| 2329 IPC_MESSAGE_ROUTED2(ViewMsg_MediaSeekCompleted, | |
| 2330 int /* player_id */, | |
| 2331 base::TimeDelta /* current_time */) | |
| 2332 | |
| 2333 // Video size has changed. | |
| 2334 IPC_MESSAGE_ROUTED3(ViewMsg_MediaVideoSizeChanged, | |
| 2335 int /* player_id */, | |
| 2336 int /* width */, | |
| 2337 int /* height */) | |
| 2338 | |
| 2339 // The current play time has updated. | |
| 2340 IPC_MESSAGE_ROUTED2(ViewMsg_MediaTimeUpdate, | |
| 2341 int /* player_id */, | |
| 2342 base::TimeDelta /* current_time */) | |
| 2343 | |
| 2344 // Destroy the media player object. | |
| 2345 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyMediaPlayer, | |
| 2346 int /* player_id */) | |
| 2347 | |
| 2348 // Clean up all the players. | |
| 2349 IPC_MESSAGE_ROUTED0(ViewHostMsg_CleanUpAllPlayers) | |
|
scherkus (not reviewing)
2012/09/07 13:17:35
You have DestroyMediaPlayer but CleanUpAllPlayers?
qinmin
2012/09/07 22:48:27
Done.
| |
| 2350 | |
| 2351 // Initialize a media player object with the given player_id. | |
| 2352 IPC_MESSAGE_ROUTED2(ViewHostMsg_MediaPlayerInitialize, | |
| 2353 int /* player_id */, | |
| 2354 std::string /* url */) | |
| 2355 | |
| 2356 // Pause the player. | |
| 2357 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerPause, | |
| 2358 int /* player_id */) | |
| 2359 | |
| 2360 // Release player resources, but keep the object for future usage. | |
| 2361 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerRelease, | |
| 2362 int /* player_id */) | |
| 2363 | |
| 2364 // Perform a seek. | |
| 2365 IPC_MESSAGE_ROUTED2(ViewHostMsg_MediaPlayerSeek, | |
| 2366 int /* player_id */, | |
| 2367 base::TimeDelta /* time */) | |
| 2368 | |
| 2369 // Start the player for playback. | |
| 2370 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerStart, | |
| 2371 int /* player_id */) | |
| 2372 #endif | |
| OLD | NEW |