| 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 goog.require('devtools.InspectorController'); | |
| 9 | 8 |
| 10 goog.provide('devtools.InspectorControllerImpl'); | 9 goog.provide('devtools.InspectorControllerImpl'); |
| 11 | 10 |
| 12 devtools.InspectorControllerImpl = function() { | 11 devtools.InspectorControllerImpl = function() { |
| 13 WebInspector.InspectorControllerStub.call(this); | 12 WebInspector.InspectorControllerStub.call(this); |
| 14 this.frame_element_id_ = 1; | 13 this.frame_element_id_ = 1; |
| 15 | 14 |
| 16 this.installInspectorControllerDelegate_('clearMessages'); | 15 this.installInspectorControllerDelegate_('clearMessages'); |
| 17 this.installInspectorControllerDelegate_('copyNode'); | 16 this.installInspectorControllerDelegate_('copyNode'); |
| 18 this.installInspectorControllerDelegate_('deleteCookie'); | 17 this.installInspectorControllerDelegate_('deleteCookie'); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 */ | 86 */ |
| 88 devtools.InspectorControllerImpl.prototype.search = function(sourceRow, query) { | 87 devtools.InspectorControllerImpl.prototype.search = function(sourceRow, query) { |
| 89 return DevToolsHost.search(sourceRow, query); | 88 return DevToolsHost.search(sourceRow, query); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 | 91 |
| 93 /** | 92 /** |
| 94 * {@inheritDoc}. | 93 * {@inheritDoc}. |
| 95 */ | 94 */ |
| 96 devtools.InspectorControllerImpl.prototype.toggleNodeSearch = function() { | 95 devtools.InspectorControllerImpl.prototype.toggleNodeSearch = function() { |
| 97 devtools.InspectorController.prototype.toggleNodeSearch.call(this); | 96 WebInspector.InspectorControllerStub.prototype.toggleNodeSearch.call(this); |
| 98 this.callInspectorController_.call(this, 'toggleNodeSearch'); | 97 this.callInspectorController_.call(this, 'toggleNodeSearch'); |
| 99 if (!this.searchingForNode()) { | 98 if (!this.searchingForNode()) { |
| 100 // This is called from ElementsPanel treeOutline's focusNodeChanged(). | 99 // This is called from ElementsPanel treeOutline's focusNodeChanged(). |
| 101 DevToolsHost.activateWindow(); | 100 DevToolsHost.activateWindow(); |
| 102 } | 101 } |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 | 104 |
| 106 /** | 105 /** |
| 107 * {@inheritDoc}. | 106 * {@inheritDoc}. |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 function(methodName, var_arg) { | 329 function(methodName, var_arg) { |
| 331 var args = Array.prototype.slice.call(arguments, 1); | 330 var args = Array.prototype.slice.call(arguments, 1); |
| 332 RemoteToolsAgent.DispatchOnInspectorController( | 331 RemoteToolsAgent.DispatchOnInspectorController( |
| 333 WebInspector.Callback.wrap(function(){}), | 332 WebInspector.Callback.wrap(function(){}), |
| 334 methodName, | 333 methodName, |
| 335 JSON.stringify(args)); | 334 JSON.stringify(args)); |
| 336 }; | 335 }; |
| 337 | 336 |
| 338 | 337 |
| 339 InspectorController = new devtools.InspectorControllerImpl(); | 338 InspectorController = new devtools.InspectorControllerImpl(); |
| OLD | NEW |