| 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 // Developer tools consist of the following parts: | 9 // Developer tools consist of the following parts: |
| 10 // | 10 // |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // v | 36 // v |
| 37 // --------------------------+-------- | 37 // --------------------------+-------- |
| 38 // | inspected page <--> DevToolsAgent | | 38 // | inspected page <--> DevToolsAgent | |
| 39 // | | | 39 // | | |
| 40 // | (inspected page renderer process) | | 40 // | (inspected page renderer process) | |
| 41 // ----------------------------------- | 41 // ----------------------------------- |
| 42 // | 42 // |
| 43 // This file describes developer tools message types. | 43 // This file describes developer tools message types. |
| 44 | 44 |
| 45 #include "ipc/ipc_message_macros.h" | 45 #include "ipc/ipc_message_macros.h" |
| 46 #include "webkit/glue/devtools_message_data.h" | |
| 47 | 46 |
| 48 // These are messages sent from DevToolsAgent to DevToolsClient through the | 47 // These are messages sent from DevToolsAgent to DevToolsClient through the |
| 49 // browser. | 48 // browser. |
| 50 IPC_BEGIN_MESSAGES(DevToolsClient) | 49 IPC_BEGIN_MESSAGES(DevToolsClient) |
| 51 | 50 |
| 52 // Sends glue-level Rpc message to the client. | 51 // WebKit-level transport. |
| 53 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_RpcMessage, | 52 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchOnInspectorFrontend, |
| 54 DevToolsMessageData /* message data */) | 53 std::string /* message */) |
| 54 |
| 55 // Legacy debugger output message. |
| 56 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DebuggerOutput, |
| 57 std::string /* message */) |
| 58 |
| 59 // Legacy APU dispatch message. |
| 60 IPC_MESSAGE_CONTROL1(DevToolsClientMsg_DispatchToAPU, |
| 61 std::string /* message */) |
| 55 | 62 |
| 56 IPC_END_MESSAGES(DevToolsClient) | 63 IPC_END_MESSAGES(DevToolsClient) |
| 57 | 64 |
| 58 | 65 |
| 59 //----------------------------------------------------------------------------- | 66 //----------------------------------------------------------------------------- |
| 60 // These are messages sent from DevToolsClient to DevToolsAgent through the | 67 // These are messages sent from DevToolsClient to DevToolsAgent through the |
| 61 // browser. | 68 // browser. |
| 62 IPC_BEGIN_MESSAGES(DevToolsAgent) | 69 IPC_BEGIN_MESSAGES(DevToolsAgent) |
| 63 | 70 |
| 64 // Tells agent that there is a client host connected to it. | 71 // Tells agent that there is a client host connected to it. |
| 65 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_Attach, | 72 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_Attach, |
| 66 std::vector<std::string> /* runtime_features */) | 73 std::vector<std::string> /* runtime_features */) |
| 67 | 74 |
| 68 // Tells agent that there is no longer a client host connected to it. | 75 // Tells agent that there is no longer a client host connected to it. |
| 69 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_Detach) | 76 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_Detach) |
| 70 | 77 |
| 71 // Sends glue-level Rpc message to the agent. | 78 // WebKit-level transport. |
| 72 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_RpcMessage, | 79 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DispatchOnInspectorBackend, |
| 73 DevToolsMessageData /* message data */) | 80 std::string /* message */) |
| 74 | 81 |
| 75 // Send debugger command to the debugger agent. Debugger commands should | 82 // Send debugger command to the debugger agent. Debugger commands should |
| 76 // be handled on IO thread(while all other devtools messages are handled in | 83 // be handled on IO thread(while all other devtools messages are handled in |
| 77 // the render thread) to allow executing the commands when v8 is on a | 84 // the render thread) to allow executing the commands when v8 is on a |
| 78 // breakpoint. | 85 // breakpoint. |
| 79 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebuggerCommand, | 86 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_DebuggerCommand, |
| 80 std::string /* command */) | 87 std::string /* command */) |
| 81 | 88 |
| 82 // This command is sent to debugger when user wants to pause script execution | 89 // This command is sent to debugger when user wants to pause script execution |
| 83 // immediately. This message should be processed on the IO thread so that it | 90 // immediately. This message should be processed on the IO thread so that it |
| 84 // can have effect even if the Renderer thread is busy with JavaScript | 91 // can have effect even if the Renderer thread is busy with JavaScript |
| 85 // execution. | 92 // execution. |
| 86 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_DebuggerPauseScript) | 93 IPC_MESSAGE_CONTROL0(DevToolsAgentMsg_DebuggerPauseScript) |
| 87 | 94 |
| 88 // Inspect element with the given coordinates. | 95 // Inspect element with the given coordinates. |
| 89 IPC_MESSAGE_CONTROL2(DevToolsAgentMsg_InspectElement, | 96 IPC_MESSAGE_CONTROL2(DevToolsAgentMsg_InspectElement, |
| 90 int /* x */, | 97 int /* x */, |
| 91 int /* y */) | 98 int /* y */) |
| 92 | 99 |
| 93 // Enables/disables the apu agent. | 100 // Enables/disables the apu agent. |
| 94 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_SetApuAgentEnabled, bool /* enabled */) | 101 IPC_MESSAGE_CONTROL1(DevToolsAgentMsg_SetApuAgentEnabled, bool /* enabled */) |
| 95 | 102 |
| 96 IPC_END_MESSAGES(DevToolsAgent) | 103 IPC_END_MESSAGES(DevToolsAgent) |
| OLD | NEW |