| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 this._recordButton.addEventListener("click", this._onRecordButtonClicked
, this); | 643 this._recordButton.addEventListener("click", this._onRecordButtonClicked
, this); |
| 644 | 644 |
| 645 this._clearButton = new WebInspector.StatusBarButton(WebInspector.UIStri
ng("Clear"), "clear-status-bar-item"); | 645 this._clearButton = new WebInspector.StatusBarButton(WebInspector.UIStri
ng("Clear"), "clear-status-bar-item"); |
| 646 this._clearButton.addEventListener("click", this._reset, this); | 646 this._clearButton.addEventListener("click", this._reset, this); |
| 647 | 647 |
| 648 this._largerRequestsButton = new WebInspector.StatusBarButton(WebInspect
or.UIString("Use small resource rows."), "network-larger-resources-status-bar-it
em"); | 648 this._largerRequestsButton = new WebInspector.StatusBarButton(WebInspect
or.UIString("Use small resource rows."), "network-larger-resources-status-bar-it
em"); |
| 649 this._largerRequestsButton.toggled = WebInspector.settings.resourcesLarg
eRows.get(); | 649 this._largerRequestsButton.toggled = WebInspector.settings.resourcesLarg
eRows.get(); |
| 650 this._largerRequestsButton.addEventListener("click", this._toggleLargerR
equests, this); | 650 this._largerRequestsButton.addEventListener("click", this._toggleLargerR
equests, this); |
| 651 | 651 |
| 652 this._preserveLogCheckbox = new WebInspector.StatusBarCheckbox(WebInspec
tor.UIString("Preserve log")); | 652 this._preserveLogCheckbox = new WebInspector.StatusBarCheckbox(WebInspec
tor.UIString("Preserve log")); |
| 653 this._preserveLogCheckbox.element.title = WebInspector.UIString("Do not
clear log on page reload / navigation."); |
| 653 }, | 654 }, |
| 654 | 655 |
| 655 _loadEventFired: function(event) | 656 _loadEventFired: function(event) |
| 656 { | 657 { |
| 657 if (!this._recordButton.toggled) | 658 if (!this._recordButton.toggled) |
| 658 return; | 659 return; |
| 659 | 660 |
| 660 this._mainRequestLoadTime = event.data || -1; | 661 this._mainRequestLoadTime = event.data || -1; |
| 661 // Schedule refresh to update boundaries and draw the new line. | 662 // Schedule refresh to update boundaries and draw the new line. |
| 662 this._scheduleRefresh(); | 663 this._scheduleRefresh(); |
| (...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2891 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) | 2892 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) |
| 2892 { | 2893 { |
| 2893 var aValue = a._request[propertyName]; | 2894 var aValue = a._request[propertyName]; |
| 2894 var bValue = b._request[propertyName]; | 2895 var bValue = b._request[propertyName]; |
| 2895 if (aValue > bValue) | 2896 if (aValue > bValue) |
| 2896 return revert ? -1 : 1; | 2897 return revert ? -1 : 1; |
| 2897 if (bValue > aValue) | 2898 if (bValue > aValue) |
| 2898 return revert ? 1 : -1; | 2899 return revert ? 1 : -1; |
| 2899 return 0; | 2900 return 0; |
| 2900 } | 2901 } |
| OLD | NEW |