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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 this._currentMatchedRequestNode = null; | 72 this._currentMatchedRequestNode = null; |
73 this._currentMatchedRequestIndex = -1; | 73 this._currentMatchedRequestIndex = -1; |
74 | 74 |
75 this._createStatusbarButtons(); | 75 this._createStatusbarButtons(); |
76 this._createStatusBarItems(); | 76 this._createStatusBarItems(); |
77 this._linkifier = new WebInspector.Linkifier(); | 77 this._linkifier = new WebInspector.Linkifier(); |
78 | 78 |
79 this._allowPopover = true; | 79 this._allowPopover = true; |
80 | 80 |
| 81 /** @type {number} */ |
| 82 this._rowHeight = 0; |
| 83 |
81 this._addFilters(); | 84 this._addFilters(); |
82 this._resetSuggestionBuilder(); | 85 this._resetSuggestionBuilder(); |
83 this._initializeView(); | 86 this._initializeView(); |
84 this._recordButton.toggled = true; | 87 this._recordButton.toggled = true; |
85 | 88 |
86 /** @type {number} */ | |
87 this._rowHeight = 0; | |
88 | |
89 WebInspector.targetManager.observeTargets(this); | 89 WebInspector.targetManager.observeTargets(this); |
90 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.EventTypes.RequestStarted, this._onRequestStarted, this
); | 90 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.EventTypes.RequestStarted, this._onRequestStarted, this
); |
91 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this
); | 91 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this
); |
92 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.EventTypes.RequestFinished, this._onRequestUpdated, thi
s); | 92 WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, Web
Inspector.NetworkManager.EventTypes.RequestFinished, this._onRequestUpdated, thi
s); |
93 | 93 |
94 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.WillReloadPage, this._willReloadPage,
this); | 94 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.WillReloadPage, this._willReloadPage,
this); |
95 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._mainFrameNav
igated, this); | 95 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.MainFrameNavigated, this._mainFrameNav
igated, this); |
96 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.Load, this._loadEventFired, this); | 96 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.Load, this._loadEventFired, this); |
97 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._domContentLoad
edEventFired, this); | 97 WebInspector.targetManager.addModelListener(WebInspector.ResourceTreeModel,
WebInspector.ResourceTreeModel.EventTypes.DOMContentLoaded, this._domContentLoad
edEventFired, this); |
98 } | 98 } |
(...skipping 2951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3050 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) | 3050 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) |
3051 { | 3051 { |
3052 var aValue = a._request[propertyName]; | 3052 var aValue = a._request[propertyName]; |
3053 var bValue = b._request[propertyName]; | 3053 var bValue = b._request[propertyName]; |
3054 if (aValue > bValue) | 3054 if (aValue > bValue) |
3055 return revert ? -1 : 1; | 3055 return revert ? -1 : 1; |
3056 if (bValue > aValue) | 3056 if (bValue > aValue) |
3057 return revert ? 1 : -1; | 3057 return revert ? 1 : -1; |
3058 return a._request.indentityCompare(b._request); | 3058 return a._request.indentityCompare(b._request); |
3059 } | 3059 } |
OLD | NEW |