| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |