OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // RenderViewHostDelegate::RenderViewCreated method sends this message to a | 93 // RenderViewHostDelegate::RenderViewCreated method sends this message to a |
94 // new renderer to notify it that it will host developer tools UI and should | 94 // new renderer to notify it that it will host developer tools UI and should |
95 // set up all neccessary bindings and create DevToolsClient instance that | 95 // set up all neccessary bindings and create DevToolsClient instance that |
96 // will handle communication with inspected page DevToolsAgent. | 96 // will handle communication with inspected page DevToolsAgent. |
97 IPC_MESSAGE_ROUTED0(DevToolsMsg_SetupDevToolsClient) | 97 IPC_MESSAGE_ROUTED0(DevToolsMsg_SetupDevToolsClient) |
98 | 98 |
99 | 99 |
100 //----------------------------------------------------------------------------- | 100 //----------------------------------------------------------------------------- |
101 // These are messages sent from the renderer to the browser. | 101 // These are messages sent from the renderer to the browser. |
102 | 102 |
103 // Wraps an IPC message that's destined to the DevToolsClient on | |
104 // DevToolsAgent->browser hop. | |
105 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_ForwardToClient, | |
106 IPC::Message /* one of DevToolsClientMsg_XXX types */) | |
107 | |
108 // Wraps an IPC message that's destined to the DevToolsAgent on | |
109 // DevToolsClient->browser hop. | |
110 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_ForwardToAgent, | |
111 IPC::Message /* one of DevToolsAgentMsg_XXX types */) | |
112 | |
113 // Activates (brings to the front) corresponding dev tools window. | 103 // Activates (brings to the front) corresponding dev tools window. |
114 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ActivateWindow) | 104 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ActivateWindow) |
115 | 105 |
116 // Closes dev tools window that is inspecting current render_view_host. | 106 // Closes dev tools window that is inspecting current render_view_host. |
117 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_CloseWindow) | 107 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_CloseWindow) |
118 | 108 |
119 // Moves the corresponding dev tools window by the specified offset. | 109 // Moves the corresponding dev tools window by the specified offset. |
120 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_MoveWindow, | 110 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_MoveWindow, |
121 int /* x */, | 111 int /* x */, |
122 int /* y */) | 112 int /* y */) |
(...skipping 17 matching lines...) Expand all Loading... |
140 // Clears browser cache. | 130 // Clears browser cache. |
141 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) | 131 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) |
142 | 132 |
143 // Clears browser cookies. | 133 // Clears browser cookies. |
144 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) | 134 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) |
145 | 135 |
146 | 136 |
147 //----------------------------------------------------------------------------- | 137 //----------------------------------------------------------------------------- |
148 // These are messages sent from the inspected page renderer to the worker | 138 // These are messages sent from the inspected page renderer to the worker |
149 // renderer. | 139 // renderer. |
OLD | NEW |