Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 1641633002: DevTools: Fix sorting method in network panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 timelineSorting.selectedIndex = 1; 615 timelineSorting.selectedIndex = 1;
616 timelineSorting.addEventListener("click", function(event) { event.consum e(); }, false); 616 timelineSorting.addEventListener("click", function(event) { event.consum e(); }, false);
617 timelineSorting.addEventListener("change", this._sortByTimeline.bind(thi s), false); 617 timelineSorting.addEventListener("change", this._sortByTimeline.bind(thi s), false);
618 this._timelineSortSelector = timelineSorting; 618 this._timelineSortSelector = timelineSorting;
619 }, 619 },
620 620
621 _createSortingFunctions: function() 621 _createSortingFunctions: function()
622 { 622 {
623 this._sortingFunctions = {}; 623 this._sortingFunctions = {};
624 this._sortingFunctions.name = WebInspector.NetworkDataGridNode.NameCompa rator; 624 this._sortingFunctions.name = WebInspector.NetworkDataGridNode.NameCompa rator;
625 this._sortingFunctions.method = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "method", false); 625 this._sortingFunctions.method = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "requestMethod", false);
626 this._sortingFunctions.status = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "statusCode", false); 626 this._sortingFunctions.status = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "statusCode", false);
627 this._sortingFunctions.protocol = WebInspector.NetworkDataGridNode.Reque stPropertyComparator.bind(null, "protocol", false); 627 this._sortingFunctions.protocol = WebInspector.NetworkDataGridNode.Reque stPropertyComparator.bind(null, "protocol", false);
628 this._sortingFunctions.scheme = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "scheme", false); 628 this._sortingFunctions.scheme = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "scheme", false);
629 this._sortingFunctions.domain = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "domain", false); 629 this._sortingFunctions.domain = WebInspector.NetworkDataGridNode.Request PropertyComparator.bind(null, "domain", false);
630 this._sortingFunctions.remoteAddress = WebInspector.NetworkDataGridNode. RemoteAddressComparator; 630 this._sortingFunctions.remoteAddress = WebInspector.NetworkDataGridNode. RemoteAddressComparator;
631 this._sortingFunctions.type = WebInspector.NetworkDataGridNode.RequestPr opertyComparator.bind(null, "mimeType", false); 631 this._sortingFunctions.type = WebInspector.NetworkDataGridNode.RequestPr opertyComparator.bind(null, "mimeType", false);
632 this._sortingFunctions.initiator = WebInspector.NetworkDataGridNode.Init iatorComparator; 632 this._sortingFunctions.initiator = WebInspector.NetworkDataGridNode.Init iatorComparator;
633 this._sortingFunctions.cookies = WebInspector.NetworkDataGridNode.Reques tCookiesCountComparator; 633 this._sortingFunctions.cookies = WebInspector.NetworkDataGridNode.Reques tCookiesCountComparator;
634 this._sortingFunctions.setCookies = WebInspector.NetworkDataGridNode.Res ponseCookiesCountComparator; 634 this._sortingFunctions.setCookies = WebInspector.NetworkDataGridNode.Res ponseCookiesCountComparator;
635 this._sortingFunctions.size = WebInspector.NetworkDataGridNode.SizeCompa rator; 635 this._sortingFunctions.size = WebInspector.NetworkDataGridNode.SizeCompa rator;
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 return false; 2167 return false;
2168 return true; 2168 return true;
2169 } 2169 }
2170 2170
2171 WebInspector.NetworkLogView.EventTypes = { 2171 WebInspector.NetworkLogView.EventTypes = {
2172 RequestSelected: "RequestSelected", 2172 RequestSelected: "RequestSelected",
2173 SearchCountUpdated: "SearchCountUpdated", 2173 SearchCountUpdated: "SearchCountUpdated",
2174 SearchIndexUpdated: "SearchIndexUpdated", 2174 SearchIndexUpdated: "SearchIndexUpdated",
2175 UpdateRequest: "UpdateRequest" 2175 UpdateRequest: "UpdateRequest"
2176 }; 2176 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698