| 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("TimelineTraceEventBindings.js"); | 49 importScript("TimelineTraceEventBindings.js"); |
| 50 importScript("TimelineTracingView.js"); | 50 importScript("TimelineTracingView.js"); |
| 51 importScript("TimelineLayersView.js"); | 51 importScript("TimelineLayersView.js"); |
| 52 importScript("TracingModel.js"); | 52 importScript("TracingModel.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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 switch (this._selection.type()) { | 991 switch (this._selection.type()) { |
| 991 case WebInspector.TimelineSelection.Type.Record: | 992 case WebInspector.TimelineSelection.Type.Record: |
| 992 var record = /** @type {!WebInspector.TimelineModel.Record} */ (this
._selection.object()); | 993 var record = /** @type {!WebInspector.TimelineModel.Record} */ (this
._selection.object()); |
| 993 WebInspector.TimelineUIUtils.generatePopupContent(record, this._mode
l, this._detailsLinkifier, this.showInDetails.bind(this, record.title()), this._
model.loadedFromFile()); | 994 WebInspector.TimelineUIUtils.generatePopupContent(record, this._mode
l, this._detailsLinkifier, this.showInDetails.bind(this, record.title()), this._
model.loadedFromFile()); |
| 994 break; | 995 break; |
| 995 case WebInspector.TimelineSelection.Type.TraceEvent: | 996 case WebInspector.TimelineSelection.Type.TraceEvent: |
| 996 var event = /** @type {!WebInspector.TracingModel.Event} */ (this._s
election.object()); | 997 var event = /** @type {!WebInspector.TracingModel.Event} */ (this._s
election.object()); |
| 997 var title = WebInspector.TimelineUIUtils.styleForTimelineEvent(event
.name).title; | 998 var title = WebInspector.TimelineUIUtils.styleForTimelineEvent(event
.name).title; |
| 998 var tracingModel = this._tracingModel(); | 999 var tracingModel = this._tracingModel(); |
| 999 var bindings = this._traceEventBindings(); | 1000 var bindings = this._traceEventBindings(); |
| 1000 WebInspector.TimelineUIUtils.buildTraceEventDetails(event, tracingMo
del, this._detailsLinkifier, this.showInDetails.bind(this, title), false, bindin
gs, this._model.target()); | 1001 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(event, tr
acingModel, this._detailsLinkifier, this.showInDetails.bind(this, title), false,
bindings, this._model.target()); |
| 1001 break; | 1002 break; |
| 1002 case WebInspector.TimelineSelection.Type.Frame: | 1003 case WebInspector.TimelineSelection.Type.Frame: |
| 1003 var frame = /** @type {!WebInspector.TimelineFrame} */ (this._select
ion.object()); | 1004 var frame = /** @type {!WebInspector.TimelineFrame} */ (this._select
ion.object()); |
| 1004 if (frame.layerTree) { | 1005 if (frame.layerTree) { |
| 1005 var layersView = this._layersView(); | 1006 var layersView = this._layersView(); |
| 1006 layersView.showLayerTree(frame.layerTree); | 1007 layersView.showLayerTree(frame.layerTree); |
| 1007 this._detailsView.setChildView(WebInspector.UIString("Frame Laye
rs"), layersView); | 1008 this._detailsView.setChildView(WebInspector.UIString("Frame Laye
rs"), layersView); |
| 1008 } else { | 1009 } else { |
| 1009 this.showInDetails(WebInspector.UIString("Frame Statistics"), We
bInspector.TimelineUIUtils.generatePopupContentForFrame(this._lazyFrameModel, fr
ame)); | 1010 this.showInDetails(WebInspector.UIString("Frame Statistics"), We
bInspector.TimelineUIUtils.generatePopupContentForFrame(this._lazyFrameModel, fr
ame)); |
| 1010 } | 1011 } |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 * @param {!WebInspector.TimelineModel.Record} record | 1451 * @param {!WebInspector.TimelineModel.Record} record |
| 1451 * @return {boolean} | 1452 * @return {boolean} |
| 1452 */ | 1453 */ |
| 1453 accept: function(record) | 1454 accept: function(record) |
| 1454 { | 1455 { |
| 1455 return !this._hiddenRecords[record.type()]; | 1456 return !this._hiddenRecords[record.type()]; |
| 1456 }, | 1457 }, |
| 1457 | 1458 |
| 1458 __proto__: WebInspector.TimelineModel.Filter.prototype | 1459 __proto__: WebInspector.TimelineModel.Filter.prototype |
| 1459 } | 1460 } |
| OLD | NEW |