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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, | 522 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, |
523 bool /* succeeded */) | 523 bool /* succeeded */) |
524 // Tells the render side that the mouse has been unlocked. | 524 // Tells the render side that the mouse has been unlocked. |
525 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) | 525 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) |
526 | 526 |
527 // Sent by the browser when the parameters for vsync alignment have changed. | 527 // Sent by the browser when the parameters for vsync alignment have changed. |
528 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, | 528 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, |
529 base::TimeTicks /* timebase */, | 529 base::TimeTicks /* timebase */, |
530 base::TimeDelta /* interval */) | 530 base::TimeDelta /* interval */) |
531 | 531 |
532 // Set the top-level frame to the provided name. | |
533 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, | |
534 std::string /* frame_name */) | |
535 | |
536 // Sent to the RenderView when a new tab is swapped into an existing | 532 // Sent to the RenderView when a new tab is swapped into an existing |
537 // tab and the histories need to be merged. The existing tab has a history of | 533 // tab and the histories need to be merged. The existing tab has a history of |
538 // |merged_history_length| which precedes the history of the new tab. All | 534 // |merged_history_length| which precedes the history of the new tab. All |
539 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 535 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
540 // | 536 // |
541 // For example, suppose the history of page_ids in the new tab's RenderView | 537 // For example, suppose the history of page_ids in the new tab's RenderView |
542 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | 538 // is [4 7 8]. This is merged into an existing tab with 3 history items, and |
543 // all pages in the new tab with page_id >= 7 are to be preserved. | 539 // all pages in the new tab with page_id >= 7 are to be preserved. |
544 // The resulting page history is [-1 -1 -1 7 8]. | 540 // The resulting page history is [-1 -1 -1 7 8]. |
545 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, | 541 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, |
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 1457 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
1462 int /* minimum_percent */, | 1458 int /* minimum_percent */, |
1463 int /* maximum_percent */, | 1459 int /* maximum_percent */, |
1464 bool /* remember */) | 1460 bool /* remember */) |
1465 | 1461 |
1466 // Notify the browser that this render process can or can't be suddenly | 1462 // Notify the browser that this render process can or can't be suddenly |
1467 // terminated. | 1463 // terminated. |
1468 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 1464 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
1469 bool /* enabled */) | 1465 bool /* enabled */) |
1470 | 1466 |
1471 // Informs the browser of updated frame names. | |
1472 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, | |
1473 int /* frame_id */, | |
1474 bool /* is_top_level */, | |
1475 std::string /* name */) | |
1476 | |
1477 | |
1478 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) | 1467 IPC_STRUCT_BEGIN(ViewHostMsg_CompositorSurfaceBuffersSwapped_Params) |
1479 IPC_STRUCT_MEMBER(int32, surface_id) | 1468 IPC_STRUCT_MEMBER(int32, surface_id) |
1480 IPC_STRUCT_MEMBER(uint64, surface_handle) | 1469 IPC_STRUCT_MEMBER(uint64, surface_handle) |
1481 IPC_STRUCT_MEMBER(int32, route_id) | 1470 IPC_STRUCT_MEMBER(int32, route_id) |
1482 IPC_STRUCT_MEMBER(gfx::Size, size) | 1471 IPC_STRUCT_MEMBER(gfx::Size, size) |
1483 IPC_STRUCT_MEMBER(float, scale_factor) | 1472 IPC_STRUCT_MEMBER(float, scale_factor) |
1484 IPC_STRUCT_MEMBER(int32, gpu_process_host_id) | 1473 IPC_STRUCT_MEMBER(int32, gpu_process_host_id) |
1485 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) | 1474 IPC_STRUCT_MEMBER(std::vector<ui::LatencyInfo>, latency_info) |
1486 IPC_STRUCT_END() | 1475 IPC_STRUCT_END() |
1487 | 1476 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 // synchronously (see crbug.com/120597). This IPC message sends the character | 1736 // synchronously (see crbug.com/120597). This IPC message sends the character |
1748 // bounds after every composition change to always have correct bound info. | 1737 // bounds after every composition change to always have correct bound info. |
1749 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1738 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1750 gfx::Range /* composition range */, | 1739 gfx::Range /* composition range */, |
1751 std::vector<gfx::Rect> /* character bounds */) | 1740 std::vector<gfx::Rect> /* character bounds */) |
1752 #endif | 1741 #endif |
1753 | 1742 |
1754 // Adding a new message? Stick to the sort order above: first platform | 1743 // Adding a new message? Stick to the sort order above: first platform |
1755 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1744 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1756 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1745 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |