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

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

Issue 715803002: DevTools: merge TracingTimelineModel into TimelineModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 this._rootRecord = new WebInspector.TimelinePresentationModel.RootRecord (); 79 this._rootRecord = new WebInspector.TimelinePresentationModel.RootRecord ();
80 /** @type {!Object.<string, !WebInspector.TimelinePresentationModel.Reco rd>} */ 80 /** @type {!Object.<string, !WebInspector.TimelinePresentationModel.Reco rd>} */
81 this._coalescingBuckets = {}; 81 this._coalescingBuckets = {};
82 }, 82 },
83 83
84 /** 84 /**
85 * @param {!WebInspector.TimelineModel.Record} record 85 * @param {!WebInspector.TimelineModel.Record} record
86 */ 86 */
87 addRecord: function(record) 87 addRecord: function(record)
88 { 88 {
89 if (record.type() === WebInspector.TracingTimelineModel.RecordType.Progr am) { 89 if (record.type() === WebInspector.TimelineModel.RecordType.Program) {
90 var records = record.children(); 90 var records = record.children();
91 for (var i = 0; i < records.length; ++i) 91 for (var i = 0; i < records.length; ++i)
92 this._innerAddRecord(this._rootRecord, records[i]); 92 this._innerAddRecord(this._rootRecord, records[i]);
93 } else { 93 } else {
94 this._innerAddRecord(this._rootRecord, record); 94 this._innerAddRecord(this._rootRecord, record);
95 } 95 }
96 }, 96 },
97 97
98 /** 98 /**
99 * @param {!WebInspector.TimelinePresentationModel.Record} parentRecord 99 * @param {!WebInspector.TimelinePresentationModel.Record} parentRecord
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 /** 573 /**
574 * @return {boolean} 574 * @return {boolean}
575 */ 575 */
576 hasWarnings: function() 576 hasWarnings: function()
577 { 577 {
578 return false; 578 return false;
579 }, 579 },
580 580
581 __proto__: WebInspector.TimelinePresentationModel.Record.prototype 581 __proto__: WebInspector.TimelinePresentationModel.Record.prototype
582 } 582 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/TimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698