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.TimelineModel} | 7 * @extends {WebInspector.TimelineModel} |
8 * @param {!WebInspector.TimelineManager} timelineManager | 8 * @param {!WebInspector.TimelineManager} timelineManager |
9 */ | 9 */ |
10 WebInspector.TimelineModelImpl = function(timelineManager) | 10 WebInspector.TimelineModelImpl = function(timelineManager) |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 children: function() | 413 children: function() |
414 { | 414 { |
415 return this._children; | 415 return this._children; |
416 }, | 416 }, |
417 | 417 |
418 /** | 418 /** |
419 * @return {!WebInspector.TimelineCategory} | 419 * @return {!WebInspector.TimelineCategory} |
420 */ | 420 */ |
421 category: function() | 421 category: function() |
422 { | 422 { |
423 return WebInspector.TimelineUIUtils.categoryForRecord(this); | 423 return WebInspector.TimelineUIUtils.recordStyle(this).category; |
424 }, | 424 }, |
425 | 425 |
426 /** | 426 /** |
427 * @return {string} | 427 * @return {string} |
428 */ | 428 */ |
429 title: function() | 429 title: function() |
430 { | 430 { |
431 return WebInspector.TimelineUIUtils.recordTitle(this, this._model); | 431 return WebInspector.TimelineUIUtils.recordTitle(this, this._model); |
432 }, | 432 }, |
433 | 433 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 break; | 786 break; |
787 length += itemLength; | 787 length += itemLength; |
788 data.push(item); | 788 data.push(item); |
789 ++this._recordIndex; | 789 ++this._recordIndex; |
790 } | 790 } |
791 if (this._recordIndex === this._payloads.length) | 791 if (this._recordIndex === this._payloads.length) |
792 data.push(data.pop() + "]"); | 792 data.push(data.pop() + "]"); |
793 stream.write(data.join(separator), this._writeNextChunk.bind(this)); | 793 stream.write(data.join(separator), this._writeNextChunk.bind(this)); |
794 } | 794 } |
795 } | 795 } |
OLD | NEW |