| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // RenderViewHostDelegate::RenderViewCreated method sends this message to a | 100 // RenderViewHostDelegate::RenderViewCreated method sends this message to a |
| 101 // new renderer to notify it that it will host developer tools UI and should | 101 // new renderer to notify it that it will host developer tools UI and should |
| 102 // set up all neccessary bindings and create DevToolsClient instance that | 102 // set up all neccessary bindings and create DevToolsClient instance that |
| 103 // will handle communication with inspected page DevToolsAgent. | 103 // will handle communication with inspected page DevToolsAgent. |
| 104 IPC_MESSAGE_ROUTED0(DevToolsMsg_SetupDevToolsClient) | 104 IPC_MESSAGE_ROUTED0(DevToolsMsg_SetupDevToolsClient) |
| 105 | 105 |
| 106 | 106 |
| 107 //----------------------------------------------------------------------------- | 107 //----------------------------------------------------------------------------- |
| 108 // These are messages sent from the renderer to the browser. | 108 // These are messages sent from the renderer to the browser. |
| 109 | 109 |
| 110 // Activates (brings to the front) corresponding dev tools window. | 110 // Transport from Inspector frontend to frontend host. |
| 111 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ActivateWindow) | 111 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_DispatchOnFrontendHost, |
| 112 | 112 std::string /* message */) |
| 113 // Sets the height of corresponding dev tools window. | |
| 114 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_ChangeAttachedWindowHeight, | |
| 115 unsigned /* height */) | |
| 116 | |
| 117 // Closes dev tools window that is inspecting current render_view_host. | |
| 118 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_CloseWindow) | |
| 119 | |
| 120 // Moves the corresponding dev tools window by the specified offset. | |
| 121 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_MoveWindow, | |
| 122 int /* x */, | |
| 123 int /* y */) | |
| 124 | |
| 125 // Specifies side for devtools to dock to. | |
| 126 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_RequestSetDockSide, | |
| 127 std::string /* side */) | |
| 128 | |
| 129 // Opens given URL in the new tab. | |
| 130 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_OpenInNewTab, | |
| 131 std::string /* url */) | |
| 132 | |
| 133 // Shows Save As dialog for content. | |
| 134 IPC_MESSAGE_ROUTED3(DevToolsHostMsg_Save, | |
| 135 std::string /* url */, | |
| 136 std::string /* content */, | |
| 137 bool /* save_as */) | |
| 138 | |
| 139 // Appends given |content| to the file that has been associated with the | |
| 140 // given |url| by Save message handler. | |
| 141 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_Append, | |
| 142 std::string /* url */, | |
| 143 std::string /* content */) | |
| 144 | |
| 145 // Requests the list of filesystems previously added for devtools. | |
| 146 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_RequestFileSystems) | |
| 147 | |
| 148 // Shows a dialog to select a folder to which an isolated filesystem is added. | |
| 149 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_AddFileSystem) | |
| 150 | |
| 151 // Removes a previously added devtools filesystem given by |file_system_path|. | |
| 152 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_RemoveFileSystem, | |
| 153 std::string /* file_system_path */) | |
| 154 | |
| 155 // Performs file system indexing for given |file_system_path| and sends progress | |
| 156 // callbacks. | |
| 157 IPC_MESSAGE_ROUTED2(DevToolsHostMsg_IndexPath, | |
| 158 int /* request_id */, | |
| 159 std::string /* file_system_path */) | |
| 160 | |
| 161 // Stops file system indexing. | |
| 162 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_StopIndexing, int /* request_id */) | |
| 163 | |
| 164 // Performs trigram search for given |query| in |file_system_path|. | |
| 165 IPC_MESSAGE_ROUTED3(DevToolsHostMsg_SearchInPath, | |
| 166 int /* request_id */, | |
| 167 std::string /* file_system_path */, | |
| 168 std::string /* query */) | |
| 169 | 113 |
| 170 // Updates agent runtime state stored in devtools manager in order to support | 114 // Updates agent runtime state stored in devtools manager in order to support |
| 171 // cross-navigation instrumentation. | 115 // cross-navigation instrumentation. |
| 172 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, | 116 IPC_MESSAGE_ROUTED1(DevToolsHostMsg_SaveAgentRuntimeState, |
| 173 std::string /* state */) | 117 std::string /* state */) |
| 174 | 118 |
| 175 // Clears browser cache. | 119 // Clears browser cache. |
| 176 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) | 120 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCache) |
| 177 | 121 |
| 178 // Clears browser cookies. | 122 // Clears browser cookies. |
| 179 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) | 123 IPC_MESSAGE_ROUTED0(DevToolsHostMsg_ClearBrowserCookies) |
| 180 | 124 |
| 181 | 125 |
| 182 //----------------------------------------------------------------------------- | 126 //----------------------------------------------------------------------------- |
| 183 // These are messages sent from the inspected page renderer to the worker | 127 // These are messages sent from the inspected page renderer to the worker |
| 184 // renderer. | 128 // renderer. |
| OLD | NEW |