| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 int64 /* cloned_session_storage_namespace_id */) | 1015 int64 /* cloned_session_storage_namespace_id */) |
| 1016 | 1016 |
| 1017 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like | 1017 // Similar to ViewHostMsg_CreateWindow, except used for sub-widgets, like |
| 1018 // <select> dropdowns. This message is sent to the TabContents that | 1018 // <select> dropdowns. This message is sent to the TabContents that |
| 1019 // contains the widget being created. | 1019 // contains the widget being created. |
| 1020 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, | 1020 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateWidget, |
| 1021 int /* opener_id */, | 1021 int /* opener_id */, |
| 1022 WebKit::WebPopupType /* popup type */, | 1022 WebKit::WebPopupType /* popup type */, |
| 1023 int /* route_id */) | 1023 int /* route_id */) |
| 1024 | 1024 |
| 1025 // These two messages are sent to the parent RenderViewHost to display the | 1025 // Similar to ViewHostMsg_CreateWidget except the widget is a full screen |
| 1026 // page/widget that was created by CreateWindow/CreateWidget. routing_id | 1026 // window. |
| 1027 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateFullscreenWidget, |
| 1028 int /* opener_id */, |
| 1029 WebKit::WebPopupType /* popup type */, |
| 1030 int /* route_id */) |
| 1031 |
| 1032 // These three messages are sent to the parent RenderViewHost to display the |
| 1033 // page/widget that was created by |
| 1034 // CreateWindow/CreateWidget/CreateFullscreenWidget. routing_id |
| 1027 // refers to the id that was returned from the Create message above. | 1035 // refers to the id that was returned from the Create message above. |
| 1028 // The initial_position parameter is a rectangle in screen coordinates. | 1036 // The initial_position parameter is a rectangle in screen coordinates. |
| 1029 // | 1037 // |
| 1030 // FUTURE: there will probably be flags here to control if the result is | 1038 // FUTURE: there will probably be flags here to control if the result is |
| 1031 // in a new window. | 1039 // in a new window. |
| 1032 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, | 1040 IPC_MESSAGE_ROUTED4(ViewHostMsg_ShowView, |
| 1033 int /* route_id */, | 1041 int /* route_id */, |
| 1034 WindowOpenDisposition /* disposition */, | 1042 WindowOpenDisposition /* disposition */, |
| 1035 gfx::Rect /* initial_pos */, | 1043 gfx::Rect /* initial_pos */, |
| 1036 bool /* opened_by_user_gesture */) | 1044 bool /* opened_by_user_gesture */) |
| 1037 | 1045 |
| 1038 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, | 1046 IPC_MESSAGE_ROUTED2(ViewHostMsg_ShowWidget, |
| 1039 int /* route_id */, | 1047 int /* route_id */, |
| 1040 gfx::Rect /* initial_pos */) | 1048 gfx::Rect /* initial_pos */) |
| 1041 | 1049 |
| 1050 // Message to show a full screen widget. |
| 1051 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowFullscreenWidget, |
| 1052 int /* route_id */) |
| 1053 |
| 1042 // Message to show a popup menu using native cocoa controls (Mac only). | 1054 // Message to show a popup menu using native cocoa controls (Mac only). |
| 1043 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, | 1055 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowPopup, |
| 1044 ViewHostMsg_ShowPopup_Params) | 1056 ViewHostMsg_ShowPopup_Params) |
| 1045 | 1057 |
| 1046 // This message is sent after ViewHostMsg_ShowView to cause the RenderView | 1058 // This message is sent after ViewHostMsg_ShowView to cause the RenderView |
| 1047 // to run in a modal fashion until it is closed. | 1059 // to run in a modal fashion until it is closed. |
| 1048 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) | 1060 IPC_SYNC_MESSAGE_ROUTED0_0(ViewHostMsg_RunModal) |
| 1049 | 1061 |
| 1050 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats, | 1062 IPC_MESSAGE_CONTROL1(ViewHostMsg_UpdatedCacheStats, |
| 1051 WebKit::WebCache::UsageStats /* stats */) | 1063 WebKit::WebCache::UsageStats /* stats */) |
| (...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2616 | 2628 |
| 2617 // A RenderView requests to start receiving device orientation updates. | 2629 // A RenderView requests to start receiving device orientation updates. |
| 2618 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, | 2630 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, |
| 2619 int /* render_view_id */) | 2631 int /* render_view_id */) |
| 2620 | 2632 |
| 2621 // A RenderView requests to stop receiving device orientation updates. | 2633 // A RenderView requests to stop receiving device orientation updates. |
| 2622 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, | 2634 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, |
| 2623 int /* render_view_id */) | 2635 int /* render_view_id */) |
| 2624 | 2636 |
| 2625 IPC_END_MESSAGES(ViewHost) | 2637 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |