OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 | 870 |
871 _mouseDownInContentsGrid: function(event) | 871 _mouseDownInContentsGrid: function(event) |
872 { | 872 { |
873 if (event.detail < 2) | 873 if (event.detail < 2) |
874 return; | 874 return; |
875 | 875 |
876 var cell = event.target.enclosingNodeOrSelfWithNodeName("td"); | 876 var cell = event.target.enclosingNodeOrSelfWithNodeName("td"); |
877 if (!cell || (!cell.hasStyleClass("count-column") && !cell.hasStyleClass
("shallowSize-column") && !cell.hasStyleClass("retainedSize-column"))) | 877 if (!cell || (!cell.hasStyleClass("count-column") && !cell.hasStyleClass
("shallowSize-column") && !cell.hasStyleClass("retainedSize-column"))) |
878 return; | 878 return; |
879 | 879 |
880 event.consume(); | 880 event.consume(true); |
881 }, | 881 }, |
882 | 882 |
883 _mouseClickInRetainmentGrid: function(event) | 883 _mouseClickInRetainmentGrid: function(event) |
884 { | 884 { |
885 var cell = event.target.enclosingNodeOrSelfWithNodeName("td"); | 885 var cell = event.target.enclosingNodeOrSelfWithNodeName("td"); |
886 if (!cell || (!cell.hasStyleClass("path-column"))) | 886 if (!cell || (!cell.hasStyleClass("path-column"))) |
887 return; | 887 return; |
888 var row = event.target.enclosingNodeOrSelfWithNodeName("tr"); | 888 var row = event.target.enclosingNodeOrSelfWithNodeName("tr"); |
889 var nodeItem = row._dataGridNode; | 889 var nodeItem = row._dataGridNode; |
890 if (!nodeItem || !nodeItem.route) | 890 if (!nodeItem || !nodeItem.route) |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 this._previousDragPosition = event.pageY; | 1052 this._previousDragPosition = event.pageY; |
1053 event.consume(); | 1053 event.consume(); |
1054 }, | 1054 }, |
1055 | 1055 |
1056 _retainersHeaderDragging: function(event) | 1056 _retainersHeaderDragging: function(event) |
1057 { | 1057 { |
1058 var height = this.retainmentView.element.clientHeight; | 1058 var height = this.retainmentView.element.clientHeight; |
1059 height += this._previousDragPosition - event.pageY; | 1059 height += this._previousDragPosition - event.pageY; |
1060 this._previousDragPosition = event.pageY; | 1060 this._previousDragPosition = event.pageY; |
1061 this._updateRetainmentViewHeight(height); | 1061 this._updateRetainmentViewHeight(height); |
1062 event.consume(); | 1062 event.consume(true); |
1063 }, | 1063 }, |
1064 | 1064 |
1065 _endRetainersHeaderDragging: function(event) | 1065 _endRetainersHeaderDragging: function(event) |
1066 { | 1066 { |
1067 WebInspector.elementDragEnd(event); | 1067 WebInspector.elementDragEnd(event); |
1068 delete this._previousDragPosition; | 1068 delete this._previousDragPosition; |
1069 event.consume(); | 1069 event.consume(); |
1070 }, | 1070 }, |
1071 | 1071 |
1072 _updateRetainmentViewHeight: function(height) | 1072 _updateRetainmentViewHeight: function(height) |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 return new WebInspector.ProfileSidebarTreeElement(profile, WebInspector.
UIString("Snapshot %d"), "heap-snapshot-sidebar-tree-item"); | 1159 return new WebInspector.ProfileSidebarTreeElement(profile, WebInspector.
UIString("Snapshot %d"), "heap-snapshot-sidebar-tree-item"); |
1160 }, | 1160 }, |
1161 | 1161 |
1162 createView: function(profile) | 1162 createView: function(profile) |
1163 { | 1163 { |
1164 return new WebInspector.DetailedHeapshotView(WebInspector.panels.profile
s, profile); | 1164 return new WebInspector.DetailedHeapshotView(WebInspector.panels.profile
s, profile); |
1165 } | 1165 } |
1166 } | 1166 } |
1167 | 1167 |
1168 WebInspector.DetailedHeapshotProfileType.prototype.__proto__ = WebInspector.Prof
ileType.prototype; | 1168 WebInspector.DetailedHeapshotProfileType.prototype.__proto__ = WebInspector.Prof
ileType.prototype; |
OLD | NEW |