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

Side by Side Diff: Source/devtools/front_end/TimelinePanel.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/NetworkPanel.js ('k') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingC heckbox(WebInspector.UIString("Capture stacks"), 336 panelStatusBarElement.appendChild(WebInspector.SettingsUI.createSettingC heckbox(WebInspector.UIString("Capture stacks"),
337 WebInspector.settings.timelineCaptureS tacks, true, undefined, 337 WebInspector.settings.timelineCaptureS tacks, true, undefined,
338 WebInspector.UIString("Capture JavaScr ipt stack on every timeline event"))); 338 WebInspector.UIString("Capture JavaScr ipt stack on every timeline event")));
339 339
340 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta tus-bar-item"); 340 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta tus-bar-item");
341 341
342 this._filtersContainer = this.element.createChild("div", "timeline-filte rs-header hidden"); 342 this._filtersContainer = this.element.createChild("div", "timeline-filte rs-header hidden");
343 this._filtersContainer.appendChild(this._filterBar.filtersElement()); 343 this._filtersContainer.appendChild(this._filterBar.filtersElement());
344 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersTo ggled, this._onFiltersToggled, this); 344 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersTo ggled, this._onFiltersToggled, this);
345 this._filterBar.setName("timelinePanel");
345 }, 346 },
346 347
347 /** 348 /**
348 * @return {!WebInspector.FilterBar} 349 * @return {!WebInspector.FilterBar}
349 */ 350 */
350 _createFilterBar: function() 351 _createFilterBar: function()
351 { 352 {
352 this._filterBar = new WebInspector.FilterBar(); 353 this._filterBar = new WebInspector.FilterBar();
353 this._filters = {}; 354 this._filters = {};
354 this._filters._textFilterUI = new WebInspector.TextFilterUI(); 355 this._filters._textFilterUI = new WebInspector.TextFilterUI();
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 * @param {!WebInspector.TimelineModel.Record} record 1123 * @param {!WebInspector.TimelineModel.Record} record
1123 * @return {boolean} 1124 * @return {boolean}
1124 */ 1125 */
1125 accept: function(record) 1126 accept: function(record)
1126 { 1127 {
1127 return !this._hiddenRecords[record.type]; 1128 return !this._hiddenRecords[record.type];
1128 }, 1129 },
1129 1130
1130 __proto__: WebInspector.TimelineModel.Filter.prototype 1131 __proto__: WebInspector.TimelineModel.Filter.prototype
1131 } 1132 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/NetworkPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698