| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 * @implements {WebInspector.TargetManager.Observer} | 46 * @implements {WebInspector.TargetManager.Observer} |
| 47 * @extends {WebInspector.VBox} | 47 * @extends {WebInspector.VBox} |
| 48 * @param {!WebInspector.FilterBar} filterBar | 48 * @param {!WebInspector.FilterBar} filterBar |
| 49 * @param {!WebInspector.Setting} coulmnsVisibilitySetting | 49 * @param {!WebInspector.Setting} coulmnsVisibilitySetting |
| 50 */ | 50 */ |
| 51 WebInspector.NetworkLogView = function(filterBar, coulmnsVisibilitySetting) | 51 WebInspector.NetworkLogView = function(filterBar, coulmnsVisibilitySetting) |
| 52 { | 52 { |
| 53 WebInspector.VBox.call(this); | 53 WebInspector.VBox.call(this); |
| 54 this.registerRequiredCSS("networkLogView.css"); | 54 this.registerRequiredCSS("networkLogView.css"); |
| 55 this.registerRequiredCSS("filter.css"); | 55 this.registerRequiredCSS("filter.css"); |
| 56 this.registerRequiredCSS("suggestBox.css"); | |
| 57 | 56 |
| 58 this._filterBar = filterBar; | 57 this._filterBar = filterBar; |
| 59 this._coulmnsVisibilitySetting = coulmnsVisibilitySetting; | 58 this._coulmnsVisibilitySetting = coulmnsVisibilitySetting; |
| 60 this._allowRequestSelection = false; | 59 this._allowRequestSelection = false; |
| 61 this._requests = []; | 60 this._requests = []; |
| 62 this._requestsById = {}; | 61 this._requestsById = {}; |
| 63 /** @type {!Object.<string, boolean>} */ | 62 /** @type {!Object.<string, boolean>} */ |
| 64 this._staleRequestIds = {}; | 63 this._staleRequestIds = {}; |
| 65 this._requestGridNodes = {}; | 64 this._requestGridNodes = {}; |
| 66 this._lastRequestGridNodeId = 0; | 65 this._lastRequestGridNodeId = 0; |
| (...skipping 3000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3067 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) | 3066 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa
me, revert, a, b) |
| 3068 { | 3067 { |
| 3069 var aValue = a._request[propertyName]; | 3068 var aValue = a._request[propertyName]; |
| 3070 var bValue = b._request[propertyName]; | 3069 var bValue = b._request[propertyName]; |
| 3071 if (aValue > bValue) | 3070 if (aValue > bValue) |
| 3072 return revert ? -1 : 1; | 3071 return revert ? -1 : 1; |
| 3073 if (bValue > aValue) | 3072 if (bValue > aValue) |
| 3074 return revert ? 1 : -1; | 3073 return revert ? 1 : -1; |
| 3075 return a._request.indentityCompare(b._request); | 3074 return a._request.indentityCompare(b._request); |
| 3076 } | 3075 } |
| OLD | NEW |