| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 importScript("TimelineMemoryOverview.js"); | 43 importScript("TimelineMemoryOverview.js"); |
| 44 importScript("TimelinePowerGraph.js"); | 44 importScript("TimelinePowerGraph.js"); |
| 45 importScript("TimelinePowerOverview.js"); | 45 importScript("TimelinePowerOverview.js"); |
| 46 importScript("TimelineFlameChart.js"); | 46 importScript("TimelineFlameChart.js"); |
| 47 importScript("TimelineUIUtils.js"); | 47 importScript("TimelineUIUtils.js"); |
| 48 importScript("TimelineView.js"); | 48 importScript("TimelineView.js"); |
| 49 importScript("TimelineTracingView.js"); | 49 importScript("TimelineTracingView.js"); |
| 50 importScript("TimelineLayersView.js"); | 50 importScript("TimelineLayersView.js"); |
| 51 importScript("TracingModel.js"); | 51 importScript("TracingModel.js"); |
| 52 importScript("TracingTimelineModel.js"); | 52 importScript("TracingTimelineModel.js"); |
| 53 importScript("TracingTimelineUIUtils.js"); |
| 53 importScript("TransformController.js"); | 54 importScript("TransformController.js"); |
| 54 | 55 |
| 55 /** | 56 /** |
| 56 * @constructor | 57 * @constructor |
| 57 * @extends {WebInspector.Panel} | 58 * @extends {WebInspector.Panel} |
| 58 * @implements {WebInspector.TimelineModeViewDelegate} | 59 * @implements {WebInspector.TimelineModeViewDelegate} |
| 59 * @implements {WebInspector.Searchable} | 60 * @implements {WebInspector.Searchable} |
| 60 */ | 61 */ |
| 61 WebInspector.TimelinePanel = function() | 62 WebInspector.TimelinePanel = function() |
| 62 { | 63 { |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 } | 977 } |
| 977 switch (this._selection.type()) { | 978 switch (this._selection.type()) { |
| 978 case WebInspector.TimelineSelection.Type.Record: | 979 case WebInspector.TimelineSelection.Type.Record: |
| 979 var record = /** @type {!WebInspector.TimelineModel.Record} */ (this
._selection.object()); | 980 var record = /** @type {!WebInspector.TimelineModel.Record} */ (this
._selection.object()); |
| 980 WebInspector.TimelineUIUtils.generatePopupContent(record, this._mode
l, this._detailsLinkifier, this.showInDetails.bind(this, record.title()), this._
model.loadedFromFile()); | 981 WebInspector.TimelineUIUtils.generatePopupContent(record, this._mode
l, this._detailsLinkifier, this.showInDetails.bind(this, record.title()), this._
model.loadedFromFile()); |
| 981 break; | 982 break; |
| 982 case WebInspector.TimelineSelection.Type.TraceEvent: | 983 case WebInspector.TimelineSelection.Type.TraceEvent: |
| 983 var event = /** @type {!WebInspector.TracingModel.Event} */ (this._s
election.object()); | 984 var event = /** @type {!WebInspector.TracingModel.Event} */ (this._s
election.object()); |
| 984 var title = WebInspector.TimelineUIUtils.styleForTimelineEvent(event
.name).title; | 985 var title = WebInspector.TimelineUIUtils.styleForTimelineEvent(event
.name).title; |
| 985 var tracingModel = this._tracingTimelineModel; | 986 var tracingModel = this._tracingTimelineModel; |
| 986 WebInspector.TimelineUIUtils.buildTraceEventDetails(event, tracingMo
del, this._detailsLinkifier, this.showInDetails.bind(this, title), false, this._
model.target()); | 987 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, tr
acingModel, this._detailsLinkifier, this.showInDetails.bind(this, title), false,
this._model.target()); |
| 987 break; | 988 break; |
| 988 case WebInspector.TimelineSelection.Type.Frame: | 989 case WebInspector.TimelineSelection.Type.Frame: |
| 989 var frame = /** @type {!WebInspector.TimelineFrame} */ (this._select
ion.object()); | 990 var frame = /** @type {!WebInspector.TimelineFrame} */ (this._select
ion.object()); |
| 990 if (frame.layerTree) { | 991 if (frame.layerTree) { |
| 991 var layersView = this._layersView(); | 992 var layersView = this._layersView(); |
| 992 layersView.showLayerTree(frame.layerTree); | 993 layersView.showLayerTree(frame.layerTree); |
| 993 this._detailsView.setChildView(WebInspector.UIString("Frame Laye
rs"), layersView); | 994 this._detailsView.setChildView(WebInspector.UIString("Frame Laye
rs"), layersView); |
| 994 } else { | 995 } else { |
| 995 this.showInDetails(WebInspector.UIString("Frame Statistics"), We
bInspector.TimelineUIUtils.generatePopupContentForFrame(this._lazyFrameModel, fr
ame)); | 996 this.showInDetails(WebInspector.UIString("Frame Statistics"), We
bInspector.TimelineUIUtils.generatePopupContentForFrame(this._lazyFrameModel, fr
ame)); |
| 996 } | 997 } |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 * @param {!WebInspector.TimelineModel.Record} record | 1437 * @param {!WebInspector.TimelineModel.Record} record |
| 1437 * @return {boolean} | 1438 * @return {boolean} |
| 1438 */ | 1439 */ |
| 1439 accept: function(record) | 1440 accept: function(record) |
| 1440 { | 1441 { |
| 1441 return !this._hiddenRecords[record.type()]; | 1442 return !this._hiddenRecords[record.type()]; |
| 1442 }, | 1443 }, |
| 1443 | 1444 |
| 1444 __proto__: WebInspector.TimelineModel.Filter.prototype | 1445 __proto__: WebInspector.TimelineModel.Filter.prototype |
| 1445 } | 1446 } |
| OLD | NEW |