Chromium Code Reviews| 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 Tools is a main class that wires all components of the | 6 * @fileoverview Tools is a main class that wires all components of the |
| 7 * DevTools frontend together. It is also responsible for overriding existing | 7 * DevTools frontend together. It is also responsible for overriding existing |
| 8 * WebInspector functionality while it is getting upstreamed into WebCore. | 8 * WebInspector functionality while it is getting upstreamed into WebCore. |
| 9 */ | 9 */ |
| 10 goog.provide('devtools.Tools'); | 10 goog.provide('devtools.Tools'); |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 413 } | 413 } |
| 414 orig.call(this, args); | 414 orig.call(this, args); |
| 415 }; | 415 }; |
| 416 })(); | 416 })(); |
| 417 | 417 |
| 418 | 418 |
| 419 (function() { | 419 (function() { |
| 420 var orig = InjectedScriptAccess.prototype.getCompletions; | 420 var orig = InjectedScriptAccess.prototype.getCompletions; |
| 421 InjectedScriptAccess.prototype.getCompletions = function(expressionString, | 421 InjectedScriptAccess.prototype.getCompletions = function(expressionString, |
| 422 includeInspectorCommandLineAPI, callFrameId, reportCompletions) { | 422 includeInspectorCommandLineAPI, callFrameId, reportCompletions) { |
| 423 if (goog.isDef(callFrameId)) { | 423 if (typeof callFrameId === "number") { |
|
yurys
2010/01/28 21:20:25
Could you explain why the old code didn't work?
| |
| 424 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame( | 424 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame( |
| 425 expressionString, callFrameId, reportCompletions); | 425 expressionString, callFrameId, reportCompletions); |
| 426 } else { | 426 } else { |
| 427 return orig.apply(this, arguments); | 427 return orig.apply(this, arguments); |
| 428 } | 428 } |
| 429 }; | 429 }; |
| 430 })(); | 430 })(); |
| 431 | 431 |
| 432 | 432 |
| 433 (function() { | 433 (function() { |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 464 return; | 464 return; |
| 465 } | 465 } |
| 466 originalAddToFrame.call(this, identifier, resource.mimeType, element); | 466 originalAddToFrame.call(this, identifier, resource.mimeType, element); |
| 467 }; | 467 }; |
| 468 })(); | 468 })(); |
| 469 | 469 |
| 470 WebInspector.pausedScript = function(callFrames) | 470 WebInspector.pausedScript = function(callFrames) |
| 471 { | 471 { |
| 472 this.panels.scripts.debuggerPaused(callFrames); | 472 this.panels.scripts.debuggerPaused(callFrames); |
| 473 }; | 473 }; |
| OLD | NEW |