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

Side by Side Diff: Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 694753002: DevTools: Show preview for ES6 MapIterator, SetIterator in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 /** @type {!Map.<!WebInspector.DataGrid, ?Element>} */ 48 /** @type {!Map.<!WebInspector.DataGrid, ?Element>} */
49 this._dataGridParents = new Map(); 49 this._dataGridParents = new Map();
50 50
51 /** @type {!Object.<string, function(!WebInspector.RemoteObject, !Element, b oolean=)>} */ 51 /** @type {!Object.<string, function(!WebInspector.RemoteObject, !Element, b oolean=)>} */
52 this._customFormatters = { 52 this._customFormatters = {
53 "object": this._formatParameterAsObject, 53 "object": this._formatParameterAsObject,
54 "array": this._formatParameterAsArray, 54 "array": this._formatParameterAsArray,
55 "node": this._formatParameterAsNode, 55 "node": this._formatParameterAsNode,
56 "map": this._formatParameterAsObject, 56 "map": this._formatParameterAsObject,
57 "set": this._formatParameterAsObject, 57 "set": this._formatParameterAsObject,
58 "iterator": this._formatParameterAsObject,
58 "string": this._formatParameterAsString 59 "string": this._formatParameterAsString
59 }; 60 };
60 } 61 }
61 62
62 WebInspector.ConsoleViewMessage.prototype = { 63 WebInspector.ConsoleViewMessage.prototype = {
63 /** 64 /**
64 * @return {?WebInspector.Target} 65 * @return {?WebInspector.Target}
65 */ 66 */
66 _target: function() 67 _target: function()
67 { 68 {
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 { 1381 {
1381 if (!this._wrapperElement) { 1382 if (!this._wrapperElement) {
1382 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this ); 1383 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this );
1383 this._wrapperElement.classList.toggle("collapsed", this._collapsed); 1384 this._wrapperElement.classList.toggle("collapsed", this._collapsed);
1384 } 1385 }
1385 return this._wrapperElement; 1386 return this._wrapperElement;
1386 }, 1387 },
1387 1388
1388 __proto__: WebInspector.ConsoleViewMessage.prototype 1389 __proto__: WebInspector.ConsoleViewMessage.prototype
1389 } 1390 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698