| 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 // 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // These are messages sent from DevToolsAgent to DevToolsClient through the | 45 // These are messages sent from DevToolsAgent to DevToolsClient through the |
| 46 // browser. | 46 // browser. |
| 47 // WebKit-level transport. | 47 // WebKit-level transport. |
| 48 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchOnInspectorFrontend, | 48 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchOnInspectorFrontend, |
| 49 std::string /* message */) | 49 std::string /* message */) |
| 50 | 50 |
| 51 // Legacy debugger output message. | 51 // Legacy debugger output message. |
| 52 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DebuggerOutput, | 52 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DebuggerOutput, |
| 53 std::string /* message */) | 53 std::string /* message */) |
| 54 | 54 |
| 55 // Legacy APU dispatch message. | |
| 56 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchToAPU, | |
| 57 std::string /* message */) | |
| 58 | |
| 59 | |
| 60 //----------------------------------------------------------------------------- | 55 //----------------------------------------------------------------------------- |
| 61 // These are messages sent from DevToolsClient to DevToolsAgent through the | 56 // These are messages sent from DevToolsClient to DevToolsAgent through the |
| 62 // browser. | 57 // browser. |
| 63 // Tells agent that there is a client host connected to it. | 58 // Tells agent that there is a client host connected to it. |
| 64 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_Attach, | 59 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_Attach, |
| 65 DevToolsRuntimeProperties /* properties */) | 60 DevToolsRuntimeProperties /* properties */) |
| 66 | 61 |
| 67 // Tells agent that there is no longer a client host connected to it. | 62 // Tells agent that there is no longer a client host connected to it. |
| 68 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_Detach) | 63 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_Detach) |
| 69 | 64 |
| 70 // Tells agent that the front-end has been loaded | 65 // Tells agent that the front-end has been loaded |
| 71 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_FrontendLoaded) | 66 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_FrontendLoaded) |
| 72 | 67 |
| 73 // WebKit-level transport. | 68 // WebKit-level transport. |
| 74 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DispatchOnInspectorBackend, | 69 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DispatchOnInspectorBackend, |
| 75 std::string /* message */) | 70 std::string /* message */) |
| 76 | 71 |
| 77 // Send debugger command to the debugger agent. Debugger commands should | 72 // Send debugger command to the debugger agent. Debugger commands should |
| 78 // be handled on IO thread(while all other devtools messages are handled in | 73 // be handled on IO thread(while all other devtools messages are handled in |
| 79 // the render thread) to allow executing the commands when v8 is on a | 74 // the render thread) to allow executing the commands when v8 is on a |
| 80 // breakpoint. | 75 // breakpoint. |
| 81 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebuggerCommand, | 76 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebuggerCommand, |
| 82 std::string /* command */) | 77 std::string /* command */) |
| 83 | 78 |
| 84 // Inspect element with the given coordinates. | 79 // Inspect element with the given coordinates. |
| 85 IPC_MESSAGE_CONTROL2(DevToolsAgentMsg_InspectElement, | 80 IPC_MESSAGE_CONTROL2(DevToolsAgentMsg_InspectElement, |
| 86 int /* x */, | 81 int /* x */, |
| 87 int /* y */) | 82 int /* y */) |
| 88 | |
| 89 // Enables/disables the apu agent. | |
| 90 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_SetApuAgentEnabled, bool /* enabled */) | |
| OLD | NEW |