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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 IPC_MESSAGE_ROUTED0(ViewMsg_DebugDetach) | 233 IPC_MESSAGE_ROUTED0(ViewMsg_DebugDetach) |
234 | 234 |
235 // Break V8 execution. | 235 // Break V8 execution. |
236 IPC_MESSAGE_ROUTED1(ViewMsg_DebugBreak, | 236 IPC_MESSAGE_ROUTED1(ViewMsg_DebugBreak, |
237 bool /* force */) | 237 bool /* force */) |
238 | 238 |
239 // Send a command to the V8 debugger. | 239 // Send a command to the V8 debugger. |
240 IPC_MESSAGE_ROUTED1(ViewMsg_DebugCommand, | 240 IPC_MESSAGE_ROUTED1(ViewMsg_DebugCommand, |
241 std::wstring /* cmd */) | 241 std::wstring /* cmd */) |
242 | 242 |
243 // Message addressed to ToolsClient. It results from forwarding | 243 // RenderViewHostDelegate::RenderViewCreated method sends this message to a |
244 // ViewHostMsg_ToolsClientMsg by the browser. | |
245 IPC_MESSAGE_ROUTED2(ViewMsg_ToolsClientMsg, | |
246 int, /* tools msg type */ | |
247 std::wstring /* body */) | |
248 | |
249 // Message addressed to ToolsAgent. It results from forwarding | |
250 // ViewHostMsg_ToolsAgentMsg by the browser. | |
251 IPC_MESSAGE_ROUTED2(ViewMsg_ToolsAgentMsg, | |
252 int, /* tools msg type */ | |
253 std::wstring /* body */) | |
254 | |
255 // RenderViewHostDelegate::RendererViewCreated method sends this message to a | |
256 // new renderer to notify it that it will host developer tools UI and should | 244 // new renderer to notify it that it will host developer tools UI and should |
257 // set up all neccessary bindings and create ToolsClient instance that will | 245 // set up all neccessary bindings and create DevToolsClient instance that |
258 // handle communication with inspected page ToolsAgent. | 246 // will handle communication with inspected page DevToolsAgent. |
259 IPC_MESSAGE_ROUTED0(ViewMsg_SetUpToolsClient) | 247 IPC_MESSAGE_ROUTED0(ViewMsg_SetupDevToolsClient) |
260 | 248 |
261 // Change the zoom level in the renderer. | 249 // Change the zoom level in the renderer. |
262 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, | 250 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, |
263 int /* One of PageZoom::Function */) | 251 int /* One of PageZoom::Function */) |
264 | 252 |
265 // Change encoding of page in the renderer. | 253 // Change encoding of page in the renderer. |
266 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, | 254 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, |
267 std::wstring /*new encoding name*/) | 255 std::wstring /*new encoding name*/) |
268 | 256 |
269 // Inspect the element at the specified coordinates | 257 // Inspect the element at the specified coordinates |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 std::wstring /* source id */) | 993 std::wstring /* source id */) |
1006 | 994 |
1007 // Response message for ViewMsg_DebugAttach. | 995 // Response message for ViewMsg_DebugAttach. |
1008 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDebugAttach) | 996 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidDebugAttach) |
1009 | 997 |
1010 // WebKit and JavaScript error messages to log to the console | 998 // WebKit and JavaScript error messages to log to the console |
1011 // or debugger UI. | 999 // or debugger UI. |
1012 IPC_MESSAGE_ROUTED1(ViewHostMsg_DebuggerOutput, | 1000 IPC_MESSAGE_ROUTED1(ViewHostMsg_DebuggerOutput, |
1013 std::wstring /* msg */) | 1001 std::wstring /* msg */) |
1014 | 1002 |
1015 // Message addressed to ToolsClient sent by ToolsAgent to browser so that the | 1003 // Wraps an IPC message that's destined to the DevToolsClient on |
1016 // latter can forward it. | 1004 // DevToolsAgent->browser hop. |
1017 IPC_MESSAGE_ROUTED2(ViewHostMsg_ToolsClientMsg, | 1005 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsClient, |
1018 int, /* tools msg type */ | 1006 IPC::Message /* one of DevToolsClientMsg_XXX types */) |
1019 std::wstring /* body */) | |
1020 | 1007 |
1021 // Message addressed to ToolsAgent sent by ToolsClient to browser so that the | 1008 // Wraps an IPC message that's destined to the DevToolsAgent on |
1022 // latter can forward it. | 1009 // DevToolsClient->browser hop. |
| 1010 IPC_MESSAGE_ROUTED1(ViewHostMsg_ForwardToDevToolsAgent, |
| 1011 IPC::Message /* one of DevToolsAgentMsg_XXX types */) |
| 1012 |
1023 IPC_MESSAGE_ROUTED2(ViewHostMsg_ToolsAgentMsg, | 1013 IPC_MESSAGE_ROUTED2(ViewHostMsg_ToolsAgentMsg, |
1024 int, /* tools msg type */ | 1014 int, /* tools msg type */ |
1025 std::wstring /* body */) | 1015 std::wstring /* body */) |
1026 | 1016 |
1027 // Send back a string to be recorded by UserMetrics. | 1017 // Send back a string to be recorded by UserMetrics. |
1028 IPC_MESSAGE_ROUTED1(ViewHostMsg_UserMetricsRecordAction, | 1018 IPC_MESSAGE_ROUTED1(ViewHostMsg_UserMetricsRecordAction, |
1029 std::wstring /* action */) | 1019 std::wstring /* action */) |
1030 | 1020 |
1031 // Send back histograms as vector of pickled-histogram strings. | 1021 // Send back histograms as vector of pickled-histogram strings. |
1032 IPC_MESSAGE_CONTROL1(ViewHostMsg_RendererHistograms, std::vector<std::string>) | 1022 IPC_MESSAGE_CONTROL1(ViewHostMsg_RendererHistograms, std::vector<std::string>) |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 IPC::Maybe<TransportDIB::Handle> /* DIB */) | 1198 IPC::Maybe<TransportDIB::Handle> /* DIB */) |
1209 | 1199 |
1210 // Since the browser keeps handles to the allocated transport DIBs, this | 1200 // Since the browser keeps handles to the allocated transport DIBs, this |
1211 // message is sent to tell the browser that it may release them when the | 1201 // message is sent to tell the browser that it may release them when the |
1212 // renderer is finished with them. | 1202 // renderer is finished with them. |
1213 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1203 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1214 TransportDIB::Id /* DIB id */) | 1204 TransportDIB::Id /* DIB id */) |
1215 #endif | 1205 #endif |
1216 | 1206 |
1217 IPC_END_MESSAGES(ViewHost) | 1207 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |