| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |