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

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

Issue 411263003: DevTools: Extract SortableDataGrid. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/inspector.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 } 637 }
638 638
639 var dataGridContainer = element.createChild("span"); 639 var dataGridContainer = element.createChild("span");
640 if (!preview.lossless || !flatValues.length) { 640 if (!preview.lossless || !flatValues.length) {
641 element.appendChild(this._formatParameter(table, true, false)); 641 element.appendChild(this._formatParameter(table, true, false));
642 if (!flatValues.length) 642 if (!flatValues.length)
643 return element; 643 return element;
644 } 644 }
645 645
646 columnNames.unshift(WebInspector.UIString("(index)")); 646 columnNames.unshift(WebInspector.UIString("(index)"));
647 var dataGrid = WebInspector.DataGrid.createSortableDataGrid(columnNames, flatValues); 647 var dataGrid = WebInspector.SortableDataGrid.create(columnNames, flatVal ues);
648 dataGrid.renderInline(); 648 dataGrid.renderInline();
649 this._dataGrids.push(dataGrid); 649 this._dataGrids.push(dataGrid);
650 this._dataGridParents.put(dataGrid, dataGridContainer); 650 this._dataGridParents.put(dataGrid, dataGridContainer);
651 return element; 651 return element;
652 }, 652 },
653 653
654 /** 654 /**
655 * @param {!WebInspector.RemoteObject} output 655 * @param {!WebInspector.RemoteObject} output
656 * @param {!Element} elem 656 * @param {!Element} elem
657 */ 657 */
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 { 1258 {
1259 if (!this._wrapperElement) { 1259 if (!this._wrapperElement) {
1260 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this ); 1260 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this );
1261 this._wrapperElement.classList.toggle("collapsed", this._collapsed); 1261 this._wrapperElement.classList.toggle("collapsed", this._collapsed);
1262 } 1262 }
1263 return this._wrapperElement; 1263 return this._wrapperElement;
1264 }, 1264 },
1265 1265
1266 __proto__: WebInspector.ConsoleViewMessage.prototype 1266 __proto__: WebInspector.ConsoleViewMessage.prototype
1267 } 1267 }
OLDNEW
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/inspector.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698