| 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 // Developer tools consist of the following parts: | 5 // Developer tools consist of the following parts: |
| 6 // | 6 // |
| 7 // DevToolsAgent lives in the renderer of an inspected page and provides access | 7 // DevToolsAgent lives in the renderer of an inspected page and provides access |
| 8 // to the pages resources, DOM, v8 etc. by means of IPC messages. | 8 // to the pages resources, DOM, v8 etc. by means of IPC messages. |
| 9 // | 9 // |
| 10 // DevToolsClient is a thin delegate that lives in the tools front-end | 10 // DevToolsClient is a thin delegate that lives in the tools front-end |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 std::string /* agent_state */) | 87 std::string /* agent_state */) |
| 88 | 88 |
| 89 // Tells agent that there is no longer a client host connected to it. | 89 // Tells agent that there is no longer a client host connected to it. |
| 90 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) | 90 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_Detach) |
| 91 | 91 |
| 92 // WebKit-level transport. | 92 // WebKit-level transport. |
| 93 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend, | 93 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnInspectorBackend, |
| 94 std::string /* message */) | 94 std::string /* message */) |
| 95 | 95 |
| 96 // Inspect element with the given coordinates. | 96 // Inspect element with the given coordinates. |
| 97 IPC_MESSAGE_ROUTED3(DevToolsAgentMsg_InspectElement, | 97 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_InspectElement, |
| 98 std::string /* host_id */, | |
| 99 int /* x */, | 98 int /* x */, |
| 100 int /* y */) | 99 int /* y */) |
| 101 | 100 |
| 102 //----------------------------------------------------------------------------- | 101 //----------------------------------------------------------------------------- |
| 103 // These are messages sent from the browser to the renderer. | 102 // These are messages sent from the browser to the renderer. |
| 104 | 103 |
| 105 // RenderViewHostDelegate::RenderViewCreated method sends this message to a | 104 // RenderViewHostDelegate::RenderViewCreated method sends this message to a |
| 106 // new renderer to notify it that it will host developer tools UI and should | 105 // new renderer to notify it that it will host developer tools UI and should |
| 107 // set up all neccessary bindings and create DevToolsClient instance that | 106 // set up all neccessary bindings and create DevToolsClient instance that |
| 108 // will handle communication with inspected page DevToolsAgent. | 107 // will handle communication with inspected page DevToolsAgent. |
| 109 IPC_MESSAGE_ROUTED1(DevToolsMsg_SetupDevToolsClient, | 108 IPC_MESSAGE_ROUTED1(DevToolsMsg_SetupDevToolsClient, |
| 110 std::string /* compatibility script */) | 109 std::string /* compatibility script */) |
| 111 | 110 |
| 112 | 111 |
| 113 //----------------------------------------------------------------------------- | 112 //----------------------------------------------------------------------------- |
| 114 // These are messages sent from the renderer to the browser. | 113 // These are messages sent from the renderer to the browser. |
| 115 | 114 |
| 116 // Transport from Inspector frontend to frontend host. | 115 // Transport from Inspector frontend to frontend host. |
| 117 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder, | 116 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_DispatchOnEmbedder, |
| 118 std::string /* message */) | 117 std::string /* message */) |
| OLD | NEW |