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 "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 // This passes a set of webkit preferences down to the renderer. | 797 // This passes a set of webkit preferences down to the renderer. |
798 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, | 798 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateWebPreferences, |
799 WebPreferences) | 799 WebPreferences) |
800 | 800 |
801 // Informs the renderer that the timezone has changed. | 801 // Informs the renderer that the timezone has changed. |
802 IPC_MESSAGE_ROUTED0(ViewMsg_TimezoneChange) | 802 IPC_MESSAGE_ROUTED0(ViewMsg_TimezoneChange) |
803 | 803 |
804 // Tells the render view to close. | 804 // Tells the render view to close. |
805 IPC_MESSAGE_ROUTED0(ViewMsg_Close) | 805 IPC_MESSAGE_ROUTED0(ViewMsg_Close) |
806 | 806 |
807 // Tells the render view to change its size. A ViewHostMsg_PaintRect message | 807 IPC_STRUCT_BEGIN(ViewMsg_Resize_Params) |
| 808 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
| 809 IPC_STRUCT_MEMBER(gfx::Size, new_size) |
| 810 IPC_STRUCT_MEMBER(gfx::Size, physical_backing_size) |
| 811 IPC_STRUCT_MEMBER(float, overdraw_bottom_height) |
| 812 IPC_STRUCT_MEMBER(gfx::Rect, resizer_rect) |
| 813 IPC_STRUCT_MEMBER(bool, is_fullscreen) |
| 814 IPC_STRUCT_END() |
| 815 |
| 816 // Tells the render view to change its size. A ViewHostMsg_UpdateRect message |
808 // is generated in response provided new_size is not empty and not equal to | 817 // is generated in response provided new_size is not empty and not equal to |
809 // the view's current size. The generated ViewHostMsg_PaintRect message will | 818 // the view's current size. The generated ViewHostMsg_UpdateRect message will |
810 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that | 819 // have the IS_RESIZE_ACK flag set. It also receives the resizer rect so that |
811 // we don't have to fetch it every time WebKit asks for it. | 820 // we don't have to fetch it every time WebKit asks for it. |
812 IPC_MESSAGE_ROUTED5(ViewMsg_Resize, | 821 IPC_MESSAGE_ROUTED1(ViewMsg_Resize, |
813 gfx::Size /* new_size */, | 822 ViewMsg_Resize_Params /* params */) |
814 gfx::Size /* physical_backing_size */, | |
815 float /* overdraw_bottom_height */, | |
816 gfx::Rect /* resizer_rect */, | |
817 bool /* is_fullscreen */) | |
818 | 823 |
819 // Tells the render view that the resize rect has changed. | 824 // Tells the render view that the resize rect has changed. |
820 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect, | 825 IPC_MESSAGE_ROUTED1(ViewMsg_ChangeResizeRect, |
821 gfx::Rect /* resizer_rect */) | 826 gfx::Rect /* resizer_rect */) |
822 | 827 |
823 // Sent to inform the view that it was hidden. This allows it to reduce its | 828 // Sent to inform the view that it was hidden. This allows it to reduce its |
824 // resource utilization. | 829 // resource utilization. |
825 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) | 830 IPC_MESSAGE_ROUTED0(ViewMsg_WasHidden) |
826 | 831 |
827 // Tells the render view that it is no longer hidden (see WasHidden), and the | 832 // Tells the render view that it is no longer hidden (see WasHidden), and the |
828 // render view is expected to respond with a full repaint if needs_repainting | 833 // render view is expected to respond with a full repaint if needs_repainting |
829 // is true. In that case, the generated ViewHostMsg_PaintRect message will | 834 // is true. In that case, the generated ViewHostMsg_UpdateRect message will |
830 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this | 835 // have the IS_RESTORE_ACK flag set. If needs_repainting is false, then this |
831 // message does not trigger a message in response. | 836 // message does not trigger a message in response. |
832 IPC_MESSAGE_ROUTED1(ViewMsg_WasShown, | 837 IPC_MESSAGE_ROUTED1(ViewMsg_WasShown, |
833 bool /* needs_repainting */) | 838 bool /* needs_repainting */) |
834 | 839 |
835 // Sent to inform the view that it was swapped out. This allows the process to | 840 // Sent to inform the view that it was swapped out. This allows the process to |
836 // exit if no other views are using it. | 841 // exit if no other views are using it. |
837 IPC_MESSAGE_ROUTED0(ViewMsg_WasSwappedOut) | 842 IPC_MESSAGE_ROUTED0(ViewMsg_WasSwappedOut) |
838 | 843 |
839 // Sent to render the view into the supplied transport DIB, resize | 844 // Sent to render the view into the supplied transport DIB, resize |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 | 1123 |
1119 // Notifies the renderer that a paint is to be generated for the rectangle | 1124 // Notifies the renderer that a paint is to be generated for the rectangle |
1120 // passed in. | 1125 // passed in. |
1121 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint, | 1126 IPC_MESSAGE_ROUTED1(ViewMsg_Repaint, |
1122 gfx::Size /* The view size to be repainted */) | 1127 gfx::Size /* The view size to be repainted */) |
1123 | 1128 |
1124 // Notification that a move or resize renderer's containing window has | 1129 // Notification that a move or resize renderer's containing window has |
1125 // started. | 1130 // started. |
1126 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) | 1131 IPC_MESSAGE_ROUTED0(ViewMsg_MoveOrResizeStarted) |
1127 | 1132 |
1128 IPC_MESSAGE_ROUTED1(ViewMsg_ScreenInfoChanged, | |
1129 WebKit::WebScreenInfo /* screen_info */) | |
1130 | |
1131 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects, | 1133 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateScreenRects, |
1132 gfx::Rect /* view_screen_rect */, | 1134 gfx::Rect /* view_screen_rect */, |
1133 gfx::Rect /* window_screen_rect */) | 1135 gfx::Rect /* window_screen_rect */) |
1134 | 1136 |
1135 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and | 1137 // Reply to ViewHostMsg_RequestMove, ViewHostMsg_ShowView, and |
1136 // ViewHostMsg_ShowWidget to inform the renderer that the browser has | 1138 // ViewHostMsg_ShowWidget to inform the renderer that the browser has |
1137 // processed the move. The browser may have ignored the move, but it finished | 1139 // processed the move. The browser may have ignored the move, but it finished |
1138 // processing. This is used because the renderer keeps a temporary cache of | 1140 // processing. This is used because the renderer keeps a temporary cache of |
1139 // the widget position while these asynchronous operations are in progress. | 1141 // the widget position while these asynchronous operations are in progress. |
1140 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) | 1142 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 // Since the browser keeps handles to the allocated transport DIBs, this | 2310 // Since the browser keeps handles to the allocated transport DIBs, this |
2309 // message is sent to tell the browser that it may release them when the | 2311 // message is sent to tell the browser that it may release them when the |
2310 // renderer is finished with them. | 2312 // renderer is finished with them. |
2311 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 2313 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
2312 TransportDIB::Id /* DIB id */) | 2314 TransportDIB::Id /* DIB id */) |
2313 #endif | 2315 #endif |
2314 | 2316 |
2315 // Adding a new message? Stick to the sort order above: first platform | 2317 // Adding a new message? Stick to the sort order above: first platform |
2316 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2318 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2317 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2319 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |