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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 this._
captureLayersAndPicturesSetting, | 386 this._
captureLayersAndPicturesSetting, |
387 WebIns
pector.UIString("Capture graphics layer positions and painted pictures"))); | 387 WebIns
pector.UIString("Capture graphics layer positions and painted pictures"))); |
388 } | 388 } |
389 | 389 |
390 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta
tus-bar-item"); | 390 this._miscStatusBarItems = panelStatusBarElement.createChild("div", "sta
tus-bar-item"); |
391 | 391 |
392 this._filtersContainer = this.element.createChild("div", "timeline-filte
rs-header hidden"); | 392 this._filtersContainer = this.element.createChild("div", "timeline-filte
rs-header hidden"); |
393 this._filtersContainer.appendChild(this._filterBar.filtersElement()); | 393 this._filtersContainer.appendChild(this._filterBar.filtersElement()); |
394 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersTo
ggled, this._onFiltersToggled, this); | 394 this._filterBar.addEventListener(WebInspector.FilterBar.Events.FiltersTo
ggled, this._onFiltersToggled, this); |
395 this._filterBar.setName("timelinePanel"); | 395 this._filterBar.setName("timelinePanel"); |
| 396 if (!WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled())
{ |
| 397 var targetsComboBox = new WebInspector.StatusBarComboBox(null); |
| 398 panelStatusBarElement.appendChild(targetsComboBox.element); |
| 399 new WebInspector.TargetsComboBoxController(targetsComboBox.selectEle
ment(), targetsComboBox.element); |
| 400 } |
396 }, | 401 }, |
397 | 402 |
398 /** | 403 /** |
399 * @return {!WebInspector.FilterBar} | 404 * @return {!WebInspector.FilterBar} |
400 */ | 405 */ |
401 _createFilterBar: function() | 406 _createFilterBar: function() |
402 { | 407 { |
403 this._filterBar = new WebInspector.FilterBar(); | 408 this._filterBar = new WebInspector.FilterBar(); |
404 this._filters = {}; | 409 this._filters = {}; |
405 this._filters._textFilterUI = new WebInspector.TextFilterUI(); | 410 this._filters._textFilterUI = new WebInspector.TextFilterUI(); |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 * @param {!WebInspector.TimelineModel.Record} record | 1426 * @param {!WebInspector.TimelineModel.Record} record |
1422 * @return {boolean} | 1427 * @return {boolean} |
1423 */ | 1428 */ |
1424 accept: function(record) | 1429 accept: function(record) |
1425 { | 1430 { |
1426 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); | 1431 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); |
1427 }, | 1432 }, |
1428 | 1433 |
1429 __proto__: WebInspector.TimelineModel.Filter.prototype | 1434 __proto__: WebInspector.TimelineModel.Filter.prototype |
1430 } | 1435 } |
OLD | NEW |