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

Side by Side Diff: Source/devtools/front_end/ui_lazy/DataGrid.js

Issue 1116003002: [DevTools] Simplify getting back to default network order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/devtools/front_end/network/networkLogView.css ('k') | no next file » | 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 * @param {!WebInspector.DataGrid.Order} sortOrder 876 * @param {!WebInspector.DataGrid.Order} sortOrder
877 */ 877 */
878 markColumnAsSortedBy: function(columnIdentifier, sortOrder) 878 markColumnAsSortedBy: function(columnIdentifier, sortOrder)
879 { 879 {
880 if (this._sortColumnCell) 880 if (this._sortColumnCell)
881 this._sortColumnCell.classList.remove(WebInspector.DataGrid.Order.As cending, WebInspector.DataGrid.Order.Descending); 881 this._sortColumnCell.classList.remove(WebInspector.DataGrid.Order.As cending, WebInspector.DataGrid.Order.Descending);
882 this._sortColumnCell = this._headerTableHeaders[columnIdentifier]; 882 this._sortColumnCell = this._headerTableHeaders[columnIdentifier];
883 this._sortColumnCell.classList.add(sortOrder); 883 this._sortColumnCell.classList.add(sortOrder);
884 }, 884 },
885 885
886 /**
887 * @param {string} columnIdentifier
888 * @return {!Element}
889 */
890 headerTableHeader: function(columnIdentifier)
891 {
892 return this._headerTableHeaders[columnIdentifier];
893 },
894
895 _mouseDownInDataTable: function(event) 886 _mouseDownInDataTable: function(event)
896 { 887 {
897 var gridNode = this.dataGridNodeFromNode(event.target); 888 var gridNode = this.dataGridNodeFromNode(event.target);
898 if (!gridNode || !gridNode.selectable) 889 if (!gridNode || !gridNode.selectable)
899 return; 890 return;
900 891
901 if (gridNode.isEventWithinDisclosureTriangle(event)) 892 if (gridNode.isEventWithinDisclosureTriangle(event))
902 return; 893 return;
903 894
904 if (event.metaKey) { 895 if (event.metaKey) {
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 } 1761 }
1771 1762
1772 WebInspector.CreationDataGridNode.prototype = { 1763 WebInspector.CreationDataGridNode.prototype = {
1773 makeNormal: function() 1764 makeNormal: function()
1774 { 1765 {
1775 this.isCreationNode = false; 1766 this.isCreationNode = false;
1776 }, 1767 },
1777 1768
1778 __proto__: WebInspector.DataGridNode.prototype 1769 __proto__: WebInspector.DataGridNode.prototype
1779 } 1770 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/network/networkLogView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698