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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, | 546 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, |
547 bool /* succeeded */) | 547 bool /* succeeded */) |
548 // Tells the render side that the mouse has been unlocked. | 548 // Tells the render side that the mouse has been unlocked. |
549 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) | 549 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) |
550 | 550 |
551 // Sent by the browser when the parameters for vsync alignment have changed. | 551 // Sent by the browser when the parameters for vsync alignment have changed. |
552 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, | 552 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, |
553 base::TimeTicks /* timebase */, | 553 base::TimeTicks /* timebase */, |
554 base::TimeDelta /* interval */) | 554 base::TimeDelta /* interval */) |
555 | 555 |
556 // Sent to the RenderView when a new tab is swapped into an existing | 556 // Sent when the history is altered outside of navigation. The history list was |
557 // tab and the histories need to be merged. The existing tab has a history of | 557 // reset to |history_length| length, and the offset was reset to be |
558 // |merged_history_length| which precedes the history of the new tab. All | 558 // |history_offset|. |
559 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 559 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryOffsetAndLength, |
560 // | 560 int /* history_offset */, |
561 // For example, suppose the history of page_ids in the new tab's RenderView | 561 int /* history_length */) |
562 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | |
563 // all pages in the new tab with page_id >= 7 are to be preserved. | |
564 // The resulting page history is [-1 -1 -1 7 8]. | |
565 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, | |
566 int, /* merge_history_length */ | |
567 int32 /* minimum_page_id */) | |
568 | 562 |
569 // Tells the renderer to create a new view. | 563 // Tells the renderer to create a new view. |
570 // This message is slightly different, the view it takes (via | 564 // This message is slightly different, the view it takes (via |
571 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 565 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
572 // non-view control message. | 566 // non-view control message. |
573 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 567 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
574 ViewMsg_New_Params) | 568 ViewMsg_New_Params) |
575 | 569 |
576 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 570 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
577 // similar to the new command, but used when the renderer created a view | 571 // similar to the new command, but used when the renderer created a view |
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 // Since the browser keeps handles to the allocated transport DIBs, this | 1657 // Since the browser keeps handles to the allocated transport DIBs, this |
1664 // message is sent to tell the browser that it may release them when the | 1658 // message is sent to tell the browser that it may release them when the |
1665 // renderer is finished with them. | 1659 // renderer is finished with them. |
1666 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1660 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1667 TransportDIB::Id /* DIB id */) | 1661 TransportDIB::Id /* DIB id */) |
1668 #endif | 1662 #endif |
1669 | 1663 |
1670 // Adding a new message? Stick to the sort order above: first platform | 1664 // Adding a new message? Stick to the sort order above: first platform |
1671 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1665 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1672 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1666 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |