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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 921333006: DevTools: Merge main thread strips on timeline overview into a single one. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Put background activities onto their own strips. Created 5 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 | Annotate | Revision Log
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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 durationOptions.push(durationOption); 375 durationOptions.push(durationOption);
376 } 376 }
377 this._filters._durationFilterUI = new WebInspector.ComboBoxFilterUI(dura tionOptions); 377 this._filters._durationFilterUI = new WebInspector.ComboBoxFilterUI(dura tionOptions);
378 this._filters._durationFilterUI.addEventListener(WebInspector.FilterUI.E vents.FilterChanged, this._durationFilterChanged, this); 378 this._filters._durationFilterUI.addEventListener(WebInspector.FilterUI.E vents.FilterChanged, this._durationFilterChanged, this);
379 this._filterBar.addFilter(this._filters._durationFilterUI); 379 this._filterBar.addFilter(this._filters._durationFilterUI);
380 380
381 this._filters._categoryFiltersUI = {}; 381 this._filters._categoryFiltersUI = {};
382 var categories = WebInspector.TimelineUIUtils.categories(); 382 var categories = WebInspector.TimelineUIUtils.categories();
383 for (var categoryName in categories) { 383 for (var categoryName in categories) {
384 var category = categories[categoryName]; 384 var category = categories[categoryName];
385 if (category.overviewStripGroupIndex < 0) 385 if (!category.visible)
386 continue; 386 continue;
387 var filter = new WebInspector.CheckboxFilterUI(category.name, catego ry.title); 387 var filter = new WebInspector.CheckboxFilterUI(category.name, catego ry.title);
388 this._filters._categoryFiltersUI[category.name] = filter; 388 this._filters._categoryFiltersUI[category.name] = filter;
389 filter.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._categoriesFilterChanged.bind(this, categoryName), this); 389 filter.addEventListener(WebInspector.FilterUI.Events.FilterChanged, this._categoriesFilterChanged.bind(this, categoryName), this);
390 this._filterBar.addFilter(filter); 390 this._filterBar.addFilter(filter);
391 } 391 }
392 return this._filterBar; 392 return this._filterBar;
393 }, 393 },
394 394
395 _textFilterChanged: function(event) 395 _textFilterChanged: function(event)
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 WebInspector.TimelinePanelFactory.prototype = { 1604 WebInspector.TimelinePanelFactory.prototype = {
1605 /** 1605 /**
1606 * @override 1606 * @override
1607 * @return {!WebInspector.Panel} 1607 * @return {!WebInspector.Panel}
1608 */ 1608 */
1609 createPanel: function() 1609 createPanel: function()
1610 { 1610 {
1611 return WebInspector.TimelinePanel.instance(); 1611 return WebInspector.TimelinePanel.instance();
1612 } 1612 }
1613 } 1613 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineEventOverview.js ('k') | Source/devtools/front_end/timeline/TimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698