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

Side by Side Diff: Source/devtools/front_end/ScriptsPanel.js

Issue 23692002: DevTools: Dump function location when printing it in console and support inspect() for functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 * @param {WebInspector.UISourceCode} uiSourceCode 412 * @param {WebInspector.UISourceCode} uiSourceCode
413 * @param {number=} lineNumber 413 * @param {number=} lineNumber
414 * @param {number=} columnNumber 414 * @param {number=} columnNumber
415 */ 415 */
416 showUISourceCode: function(uiSourceCode, lineNumber, columnNumber) 416 showUISourceCode: function(uiSourceCode, lineNumber, columnNumber)
417 { 417 {
418 this._showSourceLocation(uiSourceCode, lineNumber, columnNumber); 418 this._showSourceLocation(uiSourceCode, lineNumber, columnNumber);
419 }, 419 },
420 420
421 /** 421 /**
422 * @param {WebInspector.UILocation} uiLocation
423 */
424 showUILocation: function(uiLocation)
425 {
426 this._showSourceLocation(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLocation.columnNumber);
427 },
428
429 /**
422 * @param {WebInspector.UISourceCode} uiSourceCode 430 * @param {WebInspector.UISourceCode} uiSourceCode
423 * @param {number=} lineNumber 431 * @param {number=} lineNumber
424 * @param {number=} columnNumber 432 * @param {number=} columnNumber
425 */ 433 */
426 _showSourceLocation: function(uiSourceCode, lineNumber, columnNumber) 434 _showSourceLocation: function(uiSourceCode, lineNumber, columnNumber)
427 { 435 {
428 var sourceFrame = this._showFile(uiSourceCode); 436 var sourceFrame = this._showFile(uiSourceCode);
429 if (typeof lineNumber === "number") 437 if (typeof lineNumber === "number")
430 sourceFrame.highlightPosition(lineNumber, columnNumber); 438 sourceFrame.highlightPosition(lineNumber, columnNumber);
431 sourceFrame.focus(); 439 sourceFrame.focus();
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 } else { 1448 } else {
1441 this._editorFooterElement.addStyleClass("hidden"); 1449 this._editorFooterElement.addStyleClass("hidden");
1442 this._editorFooterElement.removeChildren(); 1450 this._editorFooterElement.removeChildren();
1443 this._editorContentsElement.style.bottom = 0; 1451 this._editorContentsElement.style.bottom = 0;
1444 } 1452 }
1445 this.doResize(); 1453 this.doResize();
1446 }, 1454 },
1447 1455
1448 __proto__: WebInspector.Panel.prototype 1456 __proto__: WebInspector.Panel.prototype
1449 } 1457 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ConsoleView.js ('k') | Source/devtools/front_end/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698