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 /** | 5 /** |
6 * @fileoverview DevTools' implementation of the InspectorController API. | 6 * @fileoverview DevTools' implementation of the InspectorController API. |
7 */ | 7 */ |
8 | 8 |
9 goog.provide('devtools.InspectorBackendImpl'); | 9 goog.provide('devtools.InspectorBackendImpl'); |
10 goog.provide('devtools.InspectorFrontendHostImpl'); | 10 goog.provide('devtools.InspectorFrontendHostImpl'); |
11 | 11 |
12 devtools.InspectorBackendImpl = function() { | 12 devtools.InspectorBackendImpl = function() { |
13 WebInspector.InspectorBackendStub.call(this); | 13 WebInspector.InspectorBackendStub.call(this); |
14 this.installInspectorControllerDelegate_('clearMessages'); | 14 this.installInspectorControllerDelegate_('clearMessages'); |
15 this.installInspectorControllerDelegate_('copyNode'); | 15 this.installInspectorControllerDelegate_('copyNode'); |
16 this.installInspectorControllerDelegate_('deleteCookie'); | 16 this.installInspectorControllerDelegate_('deleteCookie'); |
| 17 this.installInspectorControllerDelegate_('didEvaluateForTestInFrontend'); |
17 this.installInspectorControllerDelegate_('disableResourceTracking'); | 18 this.installInspectorControllerDelegate_('disableResourceTracking'); |
18 this.installInspectorControllerDelegate_('disableTimeline'); | 19 this.installInspectorControllerDelegate_('disableTimeline'); |
19 this.installInspectorControllerDelegate_('enableResourceTracking'); | 20 this.installInspectorControllerDelegate_('enableResourceTracking'); |
20 this.installInspectorControllerDelegate_('enableTimeline'); | 21 this.installInspectorControllerDelegate_('enableTimeline'); |
21 this.installInspectorControllerDelegate_('getChildNodes'); | 22 this.installInspectorControllerDelegate_('getChildNodes'); |
22 this.installInspectorControllerDelegate_('getCookies'); | 23 this.installInspectorControllerDelegate_('getCookies'); |
23 this.installInspectorControllerDelegate_('getDatabaseTableNames'); | 24 this.installInspectorControllerDelegate_('getDatabaseTableNames'); |
24 this.installInspectorControllerDelegate_('getDOMStorageEntries'); | 25 this.installInspectorControllerDelegate_('getDOMStorageEntries'); |
25 this.installInspectorControllerDelegate_('getEventListenersForNode'); | 26 this.installInspectorControllerDelegate_('getEventListenersForNode'); |
26 this.installInspectorControllerDelegate_('highlightDOMNode'); | 27 this.installInspectorControllerDelegate_('highlightDOMNode'); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 function(methodName, var_arg) { | 223 function(methodName, var_arg) { |
223 var args = Array.prototype.slice.call(arguments, 1); | 224 var args = Array.prototype.slice.call(arguments, 1); |
224 RemoteToolsAgent.DispatchOnInspectorController( | 225 RemoteToolsAgent.DispatchOnInspectorController( |
225 WebInspector.Callback.wrap(function(){}), | 226 WebInspector.Callback.wrap(function(){}), |
226 methodName, | 227 methodName, |
227 JSON.stringify(args)); | 228 JSON.stringify(args)); |
228 }; | 229 }; |
229 | 230 |
230 | 231 |
231 InspectorBackend = new devtools.InspectorBackendImpl(); | 232 InspectorBackend = new devtools.InspectorBackendImpl(); |
OLD | NEW |