| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) | 102 IPC_MESSAGE_ROUTED0(ViewMsg_MouseCaptureLost) |
| 103 | 103 |
| 104 // TODO(darin): figure out how this meshes with RestoreFocus | 104 // TODO(darin): figure out how this meshes with RestoreFocus |
| 105 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) | 105 IPC_MESSAGE_ROUTED1(ViewMsg_SetFocus, bool /* enable */) |
| 106 | 106 |
| 107 // Tells the renderer to focus the first (last if reverse is true) focusable | 107 // Tells the renderer to focus the first (last if reverse is true) focusable |
| 108 // node. | 108 // node. |
| 109 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) | 109 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */) |
| 110 | 110 |
| 111 // Ask the renderer to send us the selection text via the SetSelectionText |
| 112 // message. |
| 113 IPC_MESSAGE_ROUTED0(ViewMsg_RequestSelectionText) |
| 114 |
| 111 // Tells the renderer to perform the specified navigation, interrupting any | 115 // Tells the renderer to perform the specified navigation, interrupting any |
| 112 // existing navigation. | 116 // existing navigation. |
| 113 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) | 117 IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params) |
| 114 | 118 |
| 115 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) | 119 IPC_MESSAGE_ROUTED0(ViewMsg_Stop) |
| 116 | 120 |
| 117 // Tells the renderer to load the specified html text and report a navigation | 121 // Tells the renderer to load the specified html text and report a navigation |
| 118 // to display_url if passing true for new navigation. | 122 // to display_url if passing true for new navigation. |
| 119 IPC_MESSAGE_ROUTED4(ViewMsg_LoadAlternateHTMLText, | 123 IPC_MESSAGE_ROUTED4(ViewMsg_LoadAlternateHTMLText, |
| 120 std::string /* utf8 html text */, | 124 std::string /* utf8 html text */, |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 // TODO(darin): Change this to be a routed message so we don't need to pass | 897 // TODO(darin): Change this to be a routed message so we don't need to pass |
| 894 // the view id. | 898 // the view id. |
| 895 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo, | 899 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetScreenInfo, |
| 896 gfx::NativeViewId /* native view id */, | 900 gfx::NativeViewId /* native view id */, |
| 897 WebKit::WebScreenInfo /* results */) | 901 WebKit::WebScreenInfo /* results */) |
| 898 | 902 |
| 899 // Send the tooltip text for the current mouse position to the browser. | 903 // Send the tooltip text for the current mouse position to the browser. |
| 900 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, | 904 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetTooltipText, |
| 901 std::wstring /* tooltip text string */) | 905 std::wstring /* tooltip text string */) |
| 902 | 906 |
| 907 // Notification that the text selection has changed. |
| 908 IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectionChanged) |
| 909 |
| 910 // Send the current text selection. |
| 911 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetSelectionText, |
| 912 std::string /* currently selected text */) |
| 913 |
| 903 // Asks the browser to display the file chooser. The result is returned in a | 914 // Asks the browser to display the file chooser. The result is returned in a |
| 904 // ViewHost_RunFileChooserResponse message. | 915 // ViewHost_RunFileChooserResponse message. |
| 905 IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser, | 916 IPC_MESSAGE_ROUTED4(ViewHostMsg_RunFileChooser, |
| 906 bool /* multiple_files */, | 917 bool /* multiple_files */, |
| 907 std::wstring /* title */, | 918 std::wstring /* title */, |
| 908 std::wstring /* Default file name */, | 919 std::wstring /* Default file name */, |
| 909 std::wstring /* filter */) | 920 std::wstring /* filter */) |
| 910 | 921 |
| 911 // Notification that password forms have been seen that are candidates for | 922 // Notification that password forms have been seen that are candidates for |
| 912 // filling/submitting by the password manager | 923 // filling/submitting by the password manager |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 | 1067 |
| 1057 // Notifies when default plugin updates status of the missing plugin. | 1068 // Notifies when default plugin updates status of the missing plugin. |
| 1058 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus, | 1069 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus, |
| 1059 int /* status */) | 1070 int /* status */) |
| 1060 | 1071 |
| 1061 // Sent by the renderer process to indicate that a plugin instance has | 1072 // Sent by the renderer process to indicate that a plugin instance has |
| 1062 // crashed. | 1073 // crashed. |
| 1063 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, | 1074 IPC_MESSAGE_ROUTED1(ViewHostMsg_CrashedPlugin, |
| 1064 FilePath /* plugin_path */) | 1075 FilePath /* plugin_path */) |
| 1065 | 1076 |
| 1066 // Dsiplays a JavaScript out-of-memory message in the infobar. | 1077 // Displays a JavaScript out-of-memory message in the infobar. |
| 1067 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) | 1078 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory) |
| 1068 | 1079 |
| 1069 // Displays a box to confirm that the user wants to navigate away from the | 1080 // Displays a box to confirm that the user wants to navigate away from the |
| 1070 // page. Replies true if yes, false otherwise, the reply string is ignored, | 1081 // page. Replies true if yes, false otherwise, the reply string is ignored, |
| 1071 // but is included so that we can use OnJavaScriptMessageBoxClosed. | 1082 // but is included so that we can use OnJavaScriptMessageBoxClosed. |
| 1072 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, | 1083 IPC_SYNC_MESSAGE_ROUTED2_2(ViewHostMsg_RunBeforeUnloadConfirm, |
| 1073 GURL, /* in - originating frame URL */ | 1084 GURL, /* in - originating frame URL */ |
| 1074 std::wstring /* in - alert message */, | 1085 std::wstring /* in - alert message */, |
| 1075 bool /* out - success */, | 1086 bool /* out - success */, |
| 1076 std::wstring /* out - This is ignored.*/) | 1087 std::wstring /* out - This is ignored.*/) |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, | 1286 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_OpenChannelToExtension, |
| 1276 std::string /* extension_id */, | 1287 std::string /* extension_id */, |
| 1277 int /* channel_id */) | 1288 int /* channel_id */) |
| 1278 | 1289 |
| 1279 // Send a message to an extension process. The handle is the value returned | 1290 // Send a message to an extension process. The handle is the value returned |
| 1280 // by ViewHostMsg_OpenChannelToExtension. | 1291 // by ViewHostMsg_OpenChannelToExtension. |
| 1281 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, | 1292 IPC_MESSAGE_CONTROL2(ViewHostMsg_ExtensionPostMessage, |
| 1282 int /* channel_id */, | 1293 int /* channel_id */, |
| 1283 std::string /* message */) | 1294 std::string /* message */) |
| 1284 IPC_END_MESSAGES(ViewHost) | 1295 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |