| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |