Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: Source/devtools/front_end/timeline/TimelineModelImpl.js

Issue 337283004: Inline usages of TimelineUIUtils.categoryForRecord (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFlameChart.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698