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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2012033002: DevTools: more previews when formatting logged arrays/objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code cleanup Created 4 years, 6 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
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 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 * @param {number} nestingLevel 1214 * @param {number} nestingLevel
1215 */ 1215 */
1216 WebInspector.ConsoleCommandResult = function(message, linkifier, nestingLevel) 1216 WebInspector.ConsoleCommandResult = function(message, linkifier, nestingLevel)
1217 { 1217 {
1218 WebInspector.ConsoleViewMessage.call(this, message, linkifier, nestingLevel) ; 1218 WebInspector.ConsoleViewMessage.call(this, message, linkifier, nestingLevel) ;
1219 } 1219 }
1220 1220
1221 WebInspector.ConsoleCommandResult.prototype = { 1221 WebInspector.ConsoleCommandResult.prototype = {
1222 /** 1222 /**
1223 * @override 1223 * @override
1224 * @param {!WebInspector.RemoteObject} array
1225 * @return {boolean}
1226 */
1227 useArrayPreviewInFormatter: function(array)
1228 {
1229 return false;
1230 },
1231
1232 /**
1233 * @override
1234 * @return {!Element} 1224 * @return {!Element}
1235 */ 1225 */
1236 contentElement: function() 1226 contentElement: function()
1237 { 1227 {
1238 var element = WebInspector.ConsoleViewMessage.prototype.contentElement.c all(this); 1228 var element = WebInspector.ConsoleViewMessage.prototype.contentElement.c all(this);
1239 element.classList.add("console-user-command-result"); 1229 element.classList.add("console-user-command-result");
1240 this.updateTimestamp(false); 1230 this.updateTimestamp(false);
1241 return element; 1231 return element;
1242 }, 1232 },
1243 1233
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 return true; 1319 return true;
1330 } 1320 }
1331 return false; 1321 return false;
1332 } 1322 }
1333 } 1323 }
1334 1324
1335 /** 1325 /**
1336 * @typedef {{messageIndex: number, matchIndex: number}} 1326 * @typedef {{messageIndex: number, matchIndex: number}}
1337 */ 1327 */
1338 WebInspector.ConsoleView.RegexMatchRange; 1328 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698