| 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'); | 8 goog.require('devtools.InspectorController'); |
| 9 | 9 |
| 10 goog.provide('devtools.InspectorControllerImpl'); | 10 goog.provide('devtools.InspectorControllerImpl'); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 devtools.InspectorControllerImpl.prototype.search = function(sourceRow, query) { | 88 devtools.InspectorControllerImpl.prototype.search = function(sourceRow, query) { |
| 89 return DevToolsHost.search(sourceRow, query); | 89 return DevToolsHost.search(sourceRow, query); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 | 92 |
| 93 /** | 93 /** |
| 94 * {@inheritDoc}. | 94 * {@inheritDoc}. |
| 95 */ | 95 */ |
| 96 devtools.InspectorControllerImpl.prototype.toggleNodeSearch = function() { | 96 devtools.InspectorControllerImpl.prototype.toggleNodeSearch = function() { |
| 97 devtools.InspectorController.prototype.toggleNodeSearch.call(this); | 97 devtools.InspectorController.prototype.toggleNodeSearch.call(this); |
| 98 DevToolsHost.toggleInspectElementMode(this.searchingForNode()); | 98 this.callInspectorController_.call(this, 'toggleNodeSearch'); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * {@inheritDoc}. | 103 * {@inheritDoc}. |
| 104 */ | 104 */ |
| 105 devtools.InspectorControllerImpl.prototype.localizedStringsURL = | 105 devtools.InspectorControllerImpl.prototype.localizedStringsURL = |
| 106 function(opt_prefix) { | 106 function(opt_prefix) { |
| 107 // l10n is turned off in test mode because delayed loading of strings | 107 // l10n is turned off in test mode because delayed loading of strings |
| 108 // causes test failures. | 108 // causes test failures. |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 function(methodName, var_arg) { | 290 function(methodName, var_arg) { |
| 291 var args = Array.prototype.slice.call(arguments, 1); | 291 var args = Array.prototype.slice.call(arguments, 1); |
| 292 RemoteToolsAgent.DispatchOnInspectorController( | 292 RemoteToolsAgent.DispatchOnInspectorController( |
| 293 WebInspector.Callback.wrap(function(){}), | 293 WebInspector.Callback.wrap(function(){}), |
| 294 methodName, | 294 methodName, |
| 295 JSON.stringify(args)); | 295 JSON.stringify(args)); |
| 296 }; | 296 }; |
| 297 | 297 |
| 298 | 298 |
| 299 InspectorController = new devtools.InspectorControllerImpl(); | 299 InspectorController = new devtools.InspectorControllerImpl(); |
| OLD | NEW |