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

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

Issue 185713007: DevTools: Add timestamp support in the console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Up for review Created 6 years, 9 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 * @param {?WebInspector.ConsoleCommand} originatingCommand 1039 * @param {?WebInspector.ConsoleCommand} originatingCommand
1040 * @param {!WebInspector.Linkifier} linkifier 1040 * @param {!WebInspector.Linkifier} linkifier
1041 * @param {string=} url 1041 * @param {string=} url
1042 * @param {number=} lineNumber 1042 * @param {number=} lineNumber
1043 * @param {number=} columnNumber 1043 * @param {number=} columnNumber
1044 */ 1044 */
1045 WebInspector.ConsoleCommandResult = function(result, wasThrown, originatingComma nd, linkifier, url, lineNumber, columnNumber) 1045 WebInspector.ConsoleCommandResult = function(result, wasThrown, originatingComma nd, linkifier, url, lineNumber, columnNumber)
1046 { 1046 {
1047 this.originatingCommand = originatingCommand; 1047 this.originatingCommand = originatingCommand;
1048 var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error : Web Inspector.ConsoleMessage.MessageLevel.Log; 1048 var level = wasThrown ? WebInspector.ConsoleMessage.MessageLevel.Error : Web Inspector.ConsoleMessage.MessageLevel.Log;
1049 var message = new WebInspector.ConsoleMessage(WebInspector.ConsoleMessage.Me ssageSource.JS, level, "", WebInspector.ConsoleMessage.MessageType.Result, url, lineNumber, columnNumber, undefined, undefined, [result]); 1049 var message = new WebInspector.ConsoleMessage(WebInspector.ConsoleMessage.Me ssageSource.JS, level, "", WebInspector.ConsoleMessage.MessageType.Result, url, lineNumber, columnNumber, undefined, [result]);
1050 WebInspector.ConsoleViewMessage.call(this, message, linkifier); 1050 WebInspector.ConsoleViewMessage.call(this, message, linkifier);
1051 } 1051 }
1052 1052
1053 WebInspector.ConsoleCommandResult.prototype = { 1053 WebInspector.ConsoleCommandResult.prototype = {
1054 /** 1054 /**
1055 * @override 1055 * @override
1056 * @param {!WebInspector.RemoteObject} array 1056 * @param {!WebInspector.RemoteObject} array
1057 * @return {boolean} 1057 * @return {boolean}
1058 */ 1058 */
1059 useArrayPreviewInFormatter: function(array) 1059 useArrayPreviewInFormatter: function(array)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 var node = this.messagesElement.firstChild; 1145 var node = this.messagesElement.firstChild;
1146 while (node) { 1146 while (node) {
1147 if (node.classList.contains("console-message") && node.message) 1147 if (node.classList.contains("console-message") && node.message)
1148 node.message.wasShown(); 1148 node.message.wasShown();
1149 if (node.classList.contains("console-group") && node.group) 1149 if (node.classList.contains("console-group") && node.group)
1150 node.group.wasShown(); 1150 node.group.wasShown();
1151 node = node.nextSibling; 1151 node = node.nextSibling;
1152 } 1152 }
1153 } 1153 }
1154 } 1154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698