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