| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // handle is valid in the context of the renderer. | 246 // handle is valid in the context of the renderer. |
| 247 IPC_MESSAGE_CONTROL1(ViewMsg_UserScripts_UpdatedScripts, | 247 IPC_MESSAGE_CONTROL1(ViewMsg_UserScripts_UpdatedScripts, |
| 248 base::SharedMemoryHandle) | 248 base::SharedMemoryHandle) |
| 249 | 249 |
| 250 // Sent when the user wants to search for a word on the page (find in page). | 250 // Sent when the user wants to search for a word on the page (find in page). |
| 251 IPC_MESSAGE_ROUTED3(ViewMsg_Find, | 251 IPC_MESSAGE_ROUTED3(ViewMsg_Find, |
| 252 int /* request_id */, | 252 int /* request_id */, |
| 253 string16 /* search_text */, | 253 string16 /* search_text */, |
| 254 WebKit::WebFindOptions) | 254 WebKit::WebFindOptions) |
| 255 | 255 |
| 256 // Send from the browser to the rendered to get the text content of the page. |
| 257 IPC_MESSAGE_ROUTED0(ViewMsg_DeterminePageText) |
| 258 |
| 259 // Send from the renderer to the browser to return the text content of the |
| 260 // page. |
| 261 IPC_MESSAGE_ROUTED1(ViewMsg_DeterminePageText_Reply, |
| 262 std::wstring /* the language */) |
| 263 |
| 256 // Send from the renderer to the browser to return the script running result. | 264 // Send from the renderer to the browser to return the script running result. |
| 257 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, | 265 IPC_MESSAGE_ROUTED2(ViewMsg_ExecuteCodeFinished, |
| 258 int, /* request id */ | 266 int, /* request id */ |
| 259 bool /* whether the script ran successfully */) | 267 bool /* whether the script ran successfully */) |
| 260 | 268 |
| 261 // Sent when the headers are available for a resource request. | 269 // Sent when the headers are available for a resource request. |
| 262 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, | 270 IPC_MESSAGE_ROUTED2(ViewMsg_Resource_ReceivedResponse, |
| 263 int /* request_id */, | 271 int /* request_id */, |
| 264 ResourceResponseHead) | 272 ResourceResponseHead) |
| 265 | 273 |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 int /* the tag */) | 1098 int /* the tag */) |
| 1091 | 1099 |
| 1092 // Tells the browser to display or not display the SpellingPanel | 1100 // Tells the browser to display or not display the SpellingPanel |
| 1093 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel, | 1101 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShowSpellingPanel, |
| 1094 bool /* if true, then show it, otherwise hide it*/) | 1102 bool /* if true, then show it, otherwise hide it*/) |
| 1095 | 1103 |
| 1096 // Tells the browser to update the spelling panel with the given word. | 1104 // Tells the browser to update the spelling panel with the given word. |
| 1097 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, | 1105 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateSpellingPanelWithMisspelledWord, |
| 1098 string16 /* the word to update the panel with */) | 1106 string16 /* the word to update the panel with */) |
| 1099 | 1107 |
| 1100 // Initiates a download based on user actions like 'ALT+click'. | 1108 // Initiate a download based on user actions like 'ALT+click'. |
| 1101 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, | 1109 IPC_MESSAGE_ROUTED2(ViewHostMsg_DownloadUrl, |
| 1102 GURL /* url */, | 1110 GURL /* url */, |
| 1103 GURL /* referrer */) | 1111 GURL /* referrer */) |
| 1104 | 1112 |
| 1105 // Used to go to the session history entry at the given offset (ie, -1 will | 1113 // Used to go to the session history entry at the given offset (ie, -1 will |
| 1106 // return the "back" item). | 1114 // return the "back" item). |
| 1107 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 1115 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
| 1108 int /* offset (from current) of history item to get */) | 1116 int /* offset (from current) of history item to get */) |
| 1109 | 1117 |
| 1110 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, | 1118 IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage, |
| 1111 std::wstring /* in - alert message */, | 1119 std::wstring /* in - alert message */, |
| 1112 std::wstring /* in - default prompt */, | 1120 std::wstring /* in - default prompt */, |
| 1113 GURL /* in - originating page URL */, | 1121 GURL /* in - originating page URL */, |
| 1114 int /* in - dialog flags */, | 1122 int /* in - dialog flags */, |
| 1115 bool /* out - success */, | 1123 bool /* out - success */, |
| 1116 std::wstring /* out - prompt field */) | 1124 std::wstring /* out - prompt field */) |
| 1117 | 1125 |
| 1118 // Provides the contents for the given page that was loaded recently. | 1126 // Sets the contents for the given page (URL and page ID are the first two |
| 1119 IPC_MESSAGE_ROUTED3(ViewHostMsg_PageContents, | 1127 // arguments) given the contents that is the 3rd. |
| 1120 GURL /* URL of the page */, | 1128 IPC_MESSAGE_CONTROL3(ViewHostMsg_PageContents, GURL, int32, std::wstring) |
| 1121 int32 /* page id */, | |
| 1122 std::wstring /*page contents */) | |
| 1123 | 1129 |
| 1124 // Used to get the extension message bundle. | 1130 // Used to get the extension message bundle. |
| 1125 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, | 1131 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetExtensionMessageBundle, |
| 1126 std::string /* extension id */, | 1132 std::string /* extension id */, |
| 1127 SubstitutionMap /* message bundle */) | 1133 SubstitutionMap /* message bundle */) |
| 1128 | 1134 |
| 1129 // Specifies the URL as the first parameter (a wstring) and thumbnail as | 1135 // Specifies the URL as the first parameter (a wstring) and thumbnail as |
| 1130 // binary data as the second parameter. | 1136 // binary data as the second parameter. |
| 1131 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail, | 1137 IPC_MESSAGE_ROUTED3(ViewHostMsg_Thumbnail, |
| 1132 GURL /* url */, | 1138 GURL /* url */, |
| 1133 ThumbnailScore /* score */, | 1139 ThumbnailScore /* score */, |
| 1134 SkBitmap /* bitmap */) | 1140 SkBitmap /* bitmap */) |
| 1135 | 1141 |
| 1136 // Notification that the url for the favicon of a site has been determined. | 1142 // Notification that the url for the favicon of a site has been determined. |
| 1137 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL, | 1143 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateFavIconURL, |
| 1138 int32 /* page_id */, | 1144 int32 /* page_id */, |
| 1139 GURL /* url of the favicon */) | 1145 GURL /* url of the favicon */) |
| 1140 | 1146 |
| 1141 // Used to tell the parent that the user right clicked on an area of the | 1147 // Used to tell the parent that the user right clicked on an area of the |
| 1142 // content area, and a context menu should be shown for it. The params | 1148 // content area, and a context menu should be shown for it. The params |
| 1143 // object contains information about the node(s) that were selected when the | 1149 // object contains information about the node(s) that were selected when the |
| 1144 // user right clicked. | 1150 // user right clicked. |
| 1145 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams) | 1151 IPC_MESSAGE_ROUTED1(ViewHostMsg_ContextMenu, ContextMenuParams) |
| 1146 | 1152 |
| 1147 // Requests that the given URL be opened in the specified manner. | 1153 // Request that the given URL be opened in the specified manner. |
| 1148 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL, | 1154 IPC_MESSAGE_ROUTED3(ViewHostMsg_OpenURL, |
| 1149 GURL /* url */, | 1155 GURL /* url */, |
| 1150 GURL /* referrer */, | 1156 GURL /* referrer */, |
| 1151 WindowOpenDisposition /* disposition */) | 1157 WindowOpenDisposition /* disposition */) |
| 1152 | 1158 |
| 1153 // Notifies that the preferred size of the content changed. | 1159 // Notify that the preferred size of the content changed. |
| 1154 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1160 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
| 1155 gfx::Size /* pref_size */) | 1161 gfx::Size /* pref_size */) |
| 1156 | 1162 |
| 1157 // Following message is used to communicate the values received by the | 1163 // Following message is used to communicate the values received by the |
| 1158 // callback binding the JS to Cpp. | 1164 // callback binding the JS to Cpp. |
| 1159 // An instance of browser that has an automation host listening to it can | 1165 // An instance of browser that has an automation host listening to it can |
| 1160 // have a javascript send a native value (string, number, boolean) to the | 1166 // have a javascript send a native value (string, number, boolean) to the |
| 1161 // listener in Cpp. (DomAutomationController) | 1167 // listener in Cpp. (DomAutomationController) |
| 1162 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, | 1168 IPC_MESSAGE_ROUTED2(ViewHostMsg_DomOperationResponse, |
| 1163 std::string /* json_string */, | 1169 std::string /* json_string */, |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1981 string16 /* word */, | 1987 string16 /* word */, |
| 1982 int /* document tag */, | 1988 int /* document tag */, |
| 1983 bool /* correct */) | 1989 bool /* correct */) |
| 1984 | 1990 |
| 1985 IPC_SYNC_MESSAGE_CONTROL1_1( | 1991 IPC_SYNC_MESSAGE_CONTROL1_1( |
| 1986 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 1992 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
| 1987 string16 /* word */, | 1993 string16 /* word */, |
| 1988 std::vector<string16> /* suggestions */) | 1994 std::vector<string16> /* suggestions */) |
| 1989 | 1995 |
| 1990 IPC_END_MESSAGES(ViewHost) | 1996 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |