| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.TimelineUIUtils} | 7 * @extends {WebInspector.TimelineUIUtils} |
| 8 */ | 8 */ |
| 9 WebInspector.TracingTimelineUIUtils = function() | 9 WebInspector.TracingTimelineUIUtils = function() |
| 10 { | 10 { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * @param {!WebInspector.TimelineModel.Record} record | 52 * @param {!WebInspector.TimelineModel.Record} record |
| 53 * @return {?Object} | 53 * @return {?Object} |
| 54 */ | 54 */ |
| 55 highlightQuadForRecord: function(record) | 55 highlightQuadForRecord: function(record) |
| 56 { | 56 { |
| 57 return record.traceEvent().highlightQuad || null; | 57 return record.traceEvent().highlightQuad || null; |
| 58 }, | 58 }, |
| 59 | 59 |
| 60 /** |
| 61 * @param {!WebInspector.TimelineModel.Record} record |
| 62 * @param {!WebInspector.Linkifier} linkifier |
| 63 * @param {boolean} loadedFromFile |
| 64 * @return {?Node} |
| 65 */ |
| 66 buildDetailsNode: function(record, linkifier, loadedFromFile) |
| 67 { |
| 68 return WebInspector.TracingTimelineUIUtils.buildDetailsNodeForTraceEvent
(record.traceEvent(), linkifier, loadedFromFile, record.target()); |
| 69 }, |
| 70 |
| 71 /** |
| 72 * @param {!WebInspector.TimelineModel.Record} record |
| 73 * @param {!WebInspector.TimelineModel} model |
| 74 * @param {!WebInspector.Linkifier} linkifier |
| 75 * @param {function(!DocumentFragment)} callback |
| 76 * @param {boolean} loadedFromFile |
| 77 */ |
| 78 generateDetailsContent: function(record, model, linkifier, callback, loadedF
romFile) |
| 79 { |
| 80 if (!(model instanceof WebInspector.TracingTimelineModel)) |
| 81 throw new Error("Illegal argument."); |
| 82 var tracingTimelineModel = /** @type {!WebInspector.TracingTimelineModel
} */ (model); |
| 83 WebInspector.TracingTimelineUIUtils.buildTraceEventDetails(record.traceE
vent(), tracingTimelineModel, linkifier, callback, loadedFromFile, record.target
()); |
| 84 }, |
| 85 |
| 60 __proto__: WebInspector.TimelineUIUtils.prototype | 86 __proto__: WebInspector.TimelineUIUtils.prototype |
| 61 } | 87 } |
| 62 | 88 |
| 63 /** | 89 /** |
| 64 * @constructor | 90 * @constructor |
| 65 * @param {string} title | 91 * @param {string} title |
| 66 * @param {!WebInspector.TimelineCategory} category | 92 * @param {!WebInspector.TimelineCategory} category |
| 67 */ | 93 */ |
| 68 WebInspector.TimelineRecordStyle = function(title, category) | 94 WebInspector.TimelineRecordStyle = function(title, category) |
| 69 { | 95 { |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 callback(); | 622 callback(); |
| 597 return; | 623 return; |
| 598 } | 624 } |
| 599 var container = document.createElement("div"); | 625 var container = document.createElement("div"); |
| 600 container.className = "image-preview-container"; | 626 container.className = "image-preview-container"; |
| 601 var img = container.createChild("img"); | 627 var img = container.createChild("img"); |
| 602 img.src = encodedBitmap; | 628 img.src = encodedBitmap; |
| 603 callback(container); | 629 callback(container); |
| 604 } | 630 } |
| 605 } | 631 } |
| OLD | NEW |