| 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 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 // your locally cached rects should still be valid). The rect coords will be | 2364 // your locally cached rects should still be valid). The rect coords will be |
| 2365 // custom normalized fractions of the document size. The rects will be sorted by | 2365 // custom normalized fractions of the document size. The rects will be sorted by |
| 2366 // frame traversal order starting in the main frame, then by dom order. | 2366 // frame traversal order starting in the main frame, then by dom order. |
| 2367 // | 2367 // |
| 2368 // |active_rect| will contain the bounding box of the active find-in-page match | 2368 // |active_rect| will contain the bounding box of the active find-in-page match |
| 2369 // marker, in similarly normalized coords (or an empty rect if there isn't one). | 2369 // marker, in similarly normalized coords (or an empty rect if there isn't one). |
| 2370 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply, | 2370 IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply, |
| 2371 int /* version */, | 2371 int /* version */, |
| 2372 std::vector<gfx::RectF> /* rects */, | 2372 std::vector<gfx::RectF> /* rects */, |
| 2373 gfx::RectF /* active_rect */) | 2373 gfx::RectF /* active_rect */) |
| 2374 |
| 2375 // Messages for notifying the render process of media playback status ------- |
| 2376 |
| 2377 // Media buffering has updated. |
| 2378 IPC_MESSAGE_ROUTED2(ViewMsg_MediaBufferingUpdate, |
| 2379 int /* player_id */, |
| 2380 int /* percent */) |
| 2381 |
| 2382 // A media playback error has occured. |
| 2383 IPC_MESSAGE_ROUTED2(ViewMsg_MediaError, |
| 2384 int /* player_id */, |
| 2385 int /* error */) |
| 2386 |
| 2387 // Playback is completed. |
| 2388 IPC_MESSAGE_ROUTED1(ViewMsg_MediaPlaybackCompleted, |
| 2389 int /* player_id */) |
| 2390 |
| 2391 // Player is prepared. |
| 2392 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPrepared, |
| 2393 int /* player_id */, |
| 2394 base::TimeDelta /* duration */) |
| 2395 |
| 2396 // Media seek is completed. |
| 2397 IPC_MESSAGE_ROUTED2(ViewMsg_MediaSeekCompleted, |
| 2398 int /* player_id */, |
| 2399 base::TimeDelta /* current_time */) |
| 2400 |
| 2401 // Video size has changed. |
| 2402 IPC_MESSAGE_ROUTED3(ViewMsg_MediaVideoSizeChanged, |
| 2403 int /* player_id */, |
| 2404 int /* width */, |
| 2405 int /* height */) |
| 2406 |
| 2407 // The current play time has updated. |
| 2408 IPC_MESSAGE_ROUTED2(ViewMsg_MediaTimeUpdate, |
| 2409 int /* player_id */, |
| 2410 base::TimeDelta /* current_time */) |
| 2411 |
| 2412 // The player has been released. |
| 2413 IPC_MESSAGE_ROUTED1(ViewMsg_MediaPlayerReleased, |
| 2414 int /* player_id */) |
| 2415 |
| 2416 // Messages for controllering the media playback in browser process ---------- |
| 2417 |
| 2418 // Destroy the media player object. |
| 2419 IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyMediaPlayer, |
| 2420 int /* player_id */) |
| 2421 |
| 2422 // Destroy all the players. |
| 2423 IPC_MESSAGE_ROUTED0(ViewHostMsg_DestroyAllMediaPlayers) |
| 2424 |
| 2425 // Initialize a media player object with the given player_id. |
| 2426 IPC_MESSAGE_ROUTED3(ViewHostMsg_MediaPlayerInitialize, |
| 2427 int /* player_id */, |
| 2428 std::string /* url */, |
| 2429 std::string /* first_party_for_cookies */) |
| 2430 |
| 2431 // Pause the player. |
| 2432 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerPause, |
| 2433 int /* player_id */) |
| 2434 |
| 2435 // Release player resources, but keep the object for future usage. |
| 2436 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerRelease, |
| 2437 int /* player_id */) |
| 2438 |
| 2439 // Perform a seek. |
| 2440 IPC_MESSAGE_ROUTED2(ViewHostMsg_MediaPlayerSeek, |
| 2441 int /* player_id */, |
| 2442 base::TimeDelta /* time */) |
| 2443 |
| 2444 // Start the player for playback. |
| 2445 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerStart, |
| 2446 int /* player_id */) |
| 2374 #endif | 2447 #endif |
| OLD | NEW |