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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 { | 1028 { |
1029 if (!this._selection) { | 1029 if (!this._selection) { |
1030 this._updateSelectedRangeStats(); | 1030 this._updateSelectedRangeStats(); |
1031 return; | 1031 return; |
1032 } | 1032 } |
1033 switch (this._selection.type()) { | 1033 switch (this._selection.type()) { |
1034 case WebInspector.TimelineSelection.Type.Record: | 1034 case WebInspector.TimelineSelection.Type.Record: |
1035 var record = /** @type {!WebInspector.TimelineModel.Record} */ (this
._selection.object()); | 1035 var record = /** @type {!WebInspector.TimelineModel.Record} */ (this
._selection.object()); |
1036 if (this._tracingTimelineModel) { | 1036 if (this._tracingTimelineModel) { |
1037 var event = record.traceEvent(); | 1037 var event = record.traceEvent(); |
1038 this._uiUtils.generateDetailsContent(record, this._model, this._
detailsLinkifier, this._appendDetailsTabsForTraceEventAndShowDetails.bind(this,
event), this._model.loadedFromFile()); | 1038 this._uiUtils.generateDetailsContent(record, this._model, this._
detailsLinkifier, this._appendDetailsTabsForTraceEventAndShowDetails.bind(this,
event)); |
1039 break; | 1039 break; |
1040 } | 1040 } |
1041 var title = this._uiUtils.titleForRecord(record); | 1041 var title = this._uiUtils.titleForRecord(record); |
1042 this._uiUtils.generateDetailsContent(record, this._model, this._deta
ilsLinkifier, this.showInDetails.bind(this, title), this._model.loadedFromFile()
); | 1042 this._uiUtils.generateDetailsContent(record, this._model, this._deta
ilsLinkifier, this.showInDetails.bind(this, title), this._model.loadedFromFile()
); |
1043 break; | 1043 break; |
1044 case WebInspector.TimelineSelection.Type.TraceEvent: | 1044 case WebInspector.TimelineSelection.Type.TraceEvent: |
1045 var event = /** @type {!WebInspector.TracingModel.Event} */ (this._s
election.object()); | 1045 var event = /** @type {!WebInspector.TracingModel.Event} */ (this._s
election.object()); |
1046 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, th
is._tracingTimelineModel, this._detailsLinkifier, this._appendDetailsTabsForTrac
eEventAndShowDetails.bind(this, event), false); | 1046 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, th
is._tracingTimelineModel, this._detailsLinkifier, this._appendDetailsTabsForTrac
eEventAndShowDetails.bind(this, event)); |
1047 break; | 1047 break; |
1048 case WebInspector.TimelineSelection.Type.Frame: | 1048 case WebInspector.TimelineSelection.Type.Frame: |
1049 var frame = /** @type {!WebInspector.TimelineFrame} */ (this._select
ion.object()); | 1049 var frame = /** @type {!WebInspector.TimelineFrame} */ (this._select
ion.object()); |
1050 this.showInDetails(WebInspector.UIString("Frame Statistics"), WebIns
pector.TimelineUIUtils.generateDetailsContentForFrame(this._lazyFrameModel, fram
e)); | 1050 this.showInDetails(WebInspector.UIString("Frame Statistics"), WebIns
pector.TimelineUIUtils.generateDetailsContentForFrame(this._lazyFrameModel, fram
e)); |
1051 if (frame.layerTree) { | 1051 if (frame.layerTree) { |
1052 var layersView = this._layersView(); | 1052 var layersView = this._layersView(); |
1053 layersView.showLayerTree(frame.layerTree, frame.paints); | 1053 layersView.showLayerTree(frame.layerTree, frame.paints); |
1054 this._detailsView.appendTab("layers", WebInspector.UIString("Lay
ers"), layersView); | 1054 this._detailsView.appendTab("layers", WebInspector.UIString("Lay
ers"), layersView); |
1055 } | 1055 } |
1056 break; | 1056 break; |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 * @param {!WebInspector.TimelineModel.Record} record | 1480 * @param {!WebInspector.TimelineModel.Record} record |
1481 * @return {boolean} | 1481 * @return {boolean} |
1482 */ | 1482 */ |
1483 accept: function(record) | 1483 accept: function(record) |
1484 { | 1484 { |
1485 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); | 1485 return !this._regex || this._uiUtils.testContentMatching(record, this._r
egex); |
1486 }, | 1486 }, |
1487 | 1487 |
1488 __proto__: WebInspector.TimelineModel.Filter.prototype | 1488 __proto__: WebInspector.TimelineModel.Filter.prototype |
1489 } | 1489 } |
OLD | NEW |