Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: webkit/glue/devtools/js/inspector_controller_impl.js

Issue 372050: DevTools: fix 'super' call, route it to new InspectorControllerStub. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698