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

Side by Side Diff: Source/devtools/front_end/NetworkPanel.js

Issue 214523004: Persist filter bar state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « Source/devtools/front_end/FilterBar.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | 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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 { 1666 {
1667 WebInspector.Panel.call(this, "network"); 1667 WebInspector.Panel.call(this, "network");
1668 this.registerRequiredCSS("networkPanel.css"); 1668 this.registerRequiredCSS("networkPanel.css");
1669 this._injectStyles(); 1669 this._injectStyles();
1670 1670
1671 this._panelStatusBarElement = this.element.createChild("div", "panel-status- bar"); 1671 this._panelStatusBarElement = this.element.createChild("div", "panel-status- bar");
1672 this._filterBar = new WebInspector.FilterBar(); 1672 this._filterBar = new WebInspector.FilterBar();
1673 this._filtersContainer = this.element.createChild("div", "network-filters-he ader hidden"); 1673 this._filtersContainer = this.element.createChild("div", "network-filters-he ader hidden");
1674 this._filtersContainer.appendChild(this._filterBar.filtersElement()); 1674 this._filtersContainer.appendChild(this._filterBar.filtersElement());
1675 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggle d, this._onFiltersToggled, this); 1675 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersToggle d, this._onFiltersToggled, this);
1676 this._filterBar.setName("networkPanel");
1676 1677
1677 this._searchableView = new WebInspector.SearchableView(this); 1678 this._searchableView = new WebInspector.SearchableView(this);
1678 this._searchableView.show(this.element); 1679 this._searchableView.show(this.element);
1679 this._contentsElement = this._searchableView.element; 1680 this._contentsElement = this._searchableView.element;
1680 1681
1681 this._splitView = new WebInspector.SplitView(true, false, "networkPanelSplit ViewState"); 1682 this._splitView = new WebInspector.SplitView(true, false, "networkPanelSplit ViewState");
1682 this._splitView.show(this._contentsElement); 1683 this._splitView.show(this._contentsElement);
1683 this._splitView.hideMain(); 1684 this._splitView.hideMain();
1684 1685
1685 var defaultColumnsVisibility = WebInspector.NetworkLogView._defaultColumnsVi sibility; 1686 var defaultColumnsVisibility = WebInspector.NetworkLogView._defaultColumnsVi sibility;
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2874 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b) 2875 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b)
2875 { 2876 {
2876 var aValue = a._request[propertyName]; 2877 var aValue = a._request[propertyName];
2877 var bValue = b._request[propertyName]; 2878 var bValue = b._request[propertyName];
2878 if (aValue > bValue) 2879 if (aValue > bValue)
2879 return revert ? -1 : 1; 2880 return revert ? -1 : 1;
2880 if (bValue > aValue) 2881 if (bValue > aValue)
2881 return revert ? 1 : -1; 2882 return revert ? 1 : -1;
2882 return 0; 2883 return 0;
2883 } 2884 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/FilterBar.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698