| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 should be executed immediately after InspectorBackend and InspectorBacke
ndCommands | 5 // This should be executed immediately after InspectorBackend and InspectorBacke
ndCommands |
| 6 | 6 |
| 7 WebInspector.InspectorBackendHostedMode = {}; | 7 WebInspector.InspectorBackendHostedMode = {}; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @param {string} jsonUrl | 10 * @param {string} jsonUrl |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 for (var k = 0; event.parameters && k < event.parameters.length; ++k
) { | 115 for (var k = 0; event.parameters && k < event.parameters.length; ++k
) { |
| 116 var parameter = event.parameters[k]; | 116 var parameter = event.parameters[k]; |
| 117 paramsText.push("\"" + parameter.name + "\""); | 117 paramsText.push("\"" + parameter.name + "\""); |
| 118 } | 118 } |
| 119 result.push("InspectorBackend.registerEvent(\"" + domain.domain + ".
" + event.name + "\", [" + paramsText.join(", ") + "]);"); | 119 result.push("InspectorBackend.registerEvent(\"" + domain.domain + ".
" + event.name + "\", [" + paramsText.join(", ") + "]);"); |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 return result.join("\n"); | 122 return result.join("\n"); |
| 123 } | 123 } |
| 124 | 124 |
| 125 WebInspector.InspectorBackendHostedMode.loadFromJSONIfNeeded("../protocol.json")
; | 125 WebInspector.InspectorBackendHostedMode.loadFromJSONIfNeeded("../inspector.json"
); |
| OLD | NEW |