| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Inspect element with the given coordinates. | 79 // Inspect element with the given coordinates. |
| 80 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_InspectElement, | 80 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_InspectElement, |
| 81 int /* x */, | 81 int /* x */, |
| 82 int /* y */) | 82 int /* y */) |
| 83 | 83 |
| 84 // Add message to the devtools console. | 84 // Add message to the devtools console. |
| 85 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_AddMessageToConsole, | 85 IPC_MESSAGE_ROUTED2(DevToolsAgentMsg_AddMessageToConsole, |
| 86 content::ConsoleMessageLevel /* level */, | 86 content::ConsoleMessageLevel /* level */, |
| 87 std::string /* message */) | 87 std::string /* message */) |
| 88 | 88 |
| 89 // Notifies worker devtools agent that it should pause worker context | |
| 90 // when it starts and wait until either DevTools client is attached or | |
| 91 // explicit resume notification is received. | |
| 92 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_PauseWorkerContextOnStart) | |
| 93 | |
| 94 // Worker DevTools agent should resume worker execution. | 89 // Worker DevTools agent should resume worker execution. |
| 95 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_ResumeWorkerContext) | 90 IPC_MESSAGE_ROUTED0(DevToolsAgentMsg_ResumeWorkerContext) |
| 96 | 91 |
| 97 //----------------------------------------------------------------------------- | 92 //----------------------------------------------------------------------------- |
| 98 // These are messages sent from the browser to the renderer. | 93 // These are messages sent from the browser to the renderer. |
| 99 | 94 |
| 100 // RenderViewHostDelegate::RenderViewCreated method sends this message to a | 95 // RenderViewHostDelegate::RenderViewCreated method sends this message to a |
| 101 // new renderer to notify it that it will host developer tools UI and should | 96 // 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 | 97 // set up all neccessary bindings and create DevToolsClient instance that |
| 103 // will handle communication with inspected page DevToolsAgent. | 98 // will handle communication with inspected page DevToolsAgent. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 132 IPC_STRUCT_MEMBER(uint64, used_gpu_memory_bytes) | 127 IPC_STRUCT_MEMBER(uint64, used_gpu_memory_bytes) |
| 133 IPC_STRUCT_END() | 128 IPC_STRUCT_END() |
| 134 | 129 |
| 135 // Recorded events are passed in chunks to the renderer process. | 130 // Recorded events are passed in chunks to the renderer process. |
| 136 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, | 131 IPC_MESSAGE_ROUTED1(DevToolsAgentMsg_GpuTasksChunk, |
| 137 std::vector<GpuTaskInfo> /* gpu_tasks */) | 132 std::vector<GpuTaskInfo> /* gpu_tasks */) |
| 138 | 133 |
| 139 //----------------------------------------------------------------------------- | 134 //----------------------------------------------------------------------------- |
| 140 // These are messages sent from the inspected page renderer to the worker | 135 // These are messages sent from the inspected page renderer to the worker |
| 141 // renderer. | 136 // renderer. |
| OLD | NEW |