OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * @constructor | 8 * @constructor |
9 * @implements {WebInspector.TimelineModeView} | 9 * @implements {WebInspector.TimelineModeView} |
10 * @implements {WebInspector.FlameChartDelegate} | 10 * @implements {WebInspector.FlameChartDelegate} |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 contentHelper.appendTextRow(WebInspector.UIString("Category"), record.ca
tegory); | 115 contentHelper.appendTextRow(WebInspector.UIString("Category"), record.ca
tegory); |
116 contentHelper.appendTextRow(WebInspector.UIString("Start"), Number.milli
sToString(record.startTime - this._tracingModel.minimumRecordTime(), true)); | 116 contentHelper.appendTextRow(WebInspector.UIString("Start"), Number.milli
sToString(record.startTime - this._tracingModel.minimumRecordTime(), true)); |
117 contentHelper.appendTextRow(WebInspector.UIString("Duration"), Number.mi
llisToString(record.duration, true)); | 117 contentHelper.appendTextRow(WebInspector.UIString("Duration"), Number.mi
llisToString(record.duration, true)); |
118 if (!Object.isEmpty(record.args)) | 118 if (!Object.isEmpty(record.args)) |
119 contentHelper.appendElementRow(WebInspector.UIString("Arguments"), t
his._formatArguments(record.args)); | 119 contentHelper.appendElementRow(WebInspector.UIString("Arguments"), t
his._formatArguments(record.args)); |
120 /** | 120 /** |
121 * @this {WebInspector.TimelineTracingView} | 121 * @this {WebInspector.TimelineTracingView} |
122 */ | 122 */ |
123 function reveal() | 123 function reveal() |
124 { | 124 { |
125 WebInspector.Revealer.reveal(new WebInspector.DeferredTracingLayerTr
ee(this._tracingModel.target(), record.args["snapshot"]["active_tree"]["root_lay
er"])); | 125 WebInspector.Revealer.reveal(new WebInspector.DeferredTracingLayerTr
ee(this._tracingModel.target(), record.args["snapshot"]["active_tree"]["root_lay
er"], record.args["snapshot"]["device_viewport_size"])); |
126 } | 126 } |
127 /** | 127 /** |
128 * @param {!Node=} node | 128 * @param {!Node=} node |
129 * @this {WebInspector.TimelineTracingView} | 129 * @this {WebInspector.TimelineTracingView} |
130 */ | 130 */ |
131 function appendPreviewAndshowDetails(node) | 131 function appendPreviewAndshowDetails(node) |
132 { | 132 { |
133 if (node) | 133 if (node) |
134 contentHelper.appendElementRow("Preview", node); | 134 contentHelper.appendElementRow("Preview", node); |
135 this._delegate.showInDetails(WebInspector.UIString("Selected Event")
, contentHelper.element); | 135 this._delegate.showInDetails(WebInspector.UIString("Selected Event")
, contentHelper.element); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 /** | 547 /** |
548 * @param {string} string | 548 * @param {string} string |
549 * @return {string} | 549 * @return {string} |
550 */ | 550 */ |
551 colorForString: function(string) | 551 colorForString: function(string) |
552 { | 552 { |
553 var hash = WebInspector.TraceViewPalette._stringHash(string); | 553 var hash = WebInspector.TraceViewPalette._stringHash(string); |
554 return this._palette[hash % this._palette.length]; | 554 return this._palette[hash % this._palette.length]; |
555 } | 555 } |
556 }; | 556 }; |
OLD | NEW |