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

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

Issue 560015: Merge 37506 - DevTools: fix console autocomplete against global object (while... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/307/src/
Patch Set: Created 10 years, 10 months 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 | Annotate | Revision Log
« 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 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // TODO(yurys): get rid of the if once WebKit change is rolled. 473 // TODO(yurys): get rid of the if once WebKit change is rolled.
474 var accessor; 474 var accessor;
475 if (InjectedScriptAccess.getDefault) 475 if (InjectedScriptAccess.getDefault)
476 accessor = InjectedScriptAccess.prototype; 476 accessor = InjectedScriptAccess.prototype;
477 else 477 else
478 accessor = InjectedScriptAccess; 478 accessor = InjectedScriptAccess;
479 479
480 var orig = accessor.getCompletions; 480 var orig = accessor.getCompletions;
481 accessor.getCompletions = function(expressionString, 481 accessor.getCompletions = function(expressionString,
482 includeInspectorCommandLineAPI, callFrameId, reportCompletions) { 482 includeInspectorCommandLineAPI, callFrameId, reportCompletions) {
483 if (goog.isDef(callFrameId)) { 483 if (typeof callFrameId === "number") {
484 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame( 484 devtools.tools.getDebuggerAgent().resolveCompletionsOnFrame(
485 expressionString, callFrameId, reportCompletions); 485 expressionString, callFrameId, reportCompletions);
486 } else { 486 } else {
487 return orig.apply(this, arguments); 487 return orig.apply(this, arguments);
488 } 488 }
489 }; 489 };
490 })(); 490 })();
491 491
492 492
493 (function() { 493 (function() {
(...skipping 30 matching lines...) Expand all
524 return; 524 return;
525 } 525 }
526 originalAddToFrame.call(this, identifier, resource.mimeType, element); 526 originalAddToFrame.call(this, identifier, resource.mimeType, element);
527 }; 527 };
528 })(); 528 })();
529 529
530 WebInspector.pausedScript = function(callFrames) 530 WebInspector.pausedScript = function(callFrames)
531 { 531 {
532 this.panels.scripts.debuggerPaused(callFrames); 532 this.panels.scripts.debuggerPaused(callFrames);
533 }; 533 };
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