| 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 // Messages for notifying the render process of media playback status ------- |
| 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 // The player has been released. |
| 2345 IPC_MESSAGE_ROUTED1(ViewMsg_MediaPlayerReleased, |
| 2346 int /* player_id */) |
| 2347 |
| 2348 // Messages for controllering the media playback in browser process ---------- |
| 2349 |
| 2350 // Destroy the media player object. |
| 2351 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyMediaPlayer, |
| 2352 int /* player_id */) |
| 2353 |
| 2354 // Destroy all the players. |
| 2355 IPC_MESSAGE_ROUTED0(ViewHostMsg_DestroyAllMediaPlayers) |
| 2356 |
| 2357 // Initialize a media player object with the given player_id. |
| 2358 IPC_MESSAGE_ROUTED2(ViewHostMsg_MediaPlayerInitialize, |
| 2359 int /* player_id */, |
| 2360 std::string /* url */) |
| 2361 |
| 2362 // Pause the player. |
| 2363 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerPause, |
| 2364 int /* player_id */) |
| 2365 |
| 2366 // Release player resources, but keep the object for future usage. |
| 2367 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerRelease, |
| 2368 int /* player_id */) |
| 2369 |
| 2370 // Perform a seek. |
| 2371 IPC_MESSAGE_ROUTED2(ViewHostMsg_MediaPlayerSeek, |
| 2372 int /* player_id */, |
| 2373 base::TimeDelta /* time */) |
| 2374 |
| 2375 // Start the player for playback. |
| 2376 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerStart, |
| 2377 int /* player_id */) |
| 2378 #endif |
| OLD | NEW |