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

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

Issue 336373002: Parametrize TimelinePresentationModel with coalescable record types (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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelinePresentationModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 this._lazyFrameModel = frameModel; 266 this._lazyFrameModel = frameModel;
267 } 267 }
268 return this._lazyFrameModel; 268 return this._lazyFrameModel;
269 }, 269 },
270 270
271 /** 271 /**
272 * @return {!WebInspector.TimelineView} 272 * @return {!WebInspector.TimelineView}
273 */ 273 */
274 _timelineView: function() 274 _timelineView: function()
275 { 275 {
276 if (!this._lazyTimelineView) 276 if (!this._lazyTimelineView) {
277 this._lazyTimelineView = new WebInspector.TimelineView(this, this._m odel); 277 var coalescableRecordTypes = this._tracingTimelineModel ? WebInspect or.TracingTimelineUIUtils.coalescableRecordTypes : WebInspector.TimelineUIUtils. coalescableRecordTypes;
278 this._lazyTimelineView = new WebInspector.TimelineView(this, this._m odel, coalescableRecordTypes);
279 }
278 return this._lazyTimelineView; 280 return this._lazyTimelineView;
279 }, 281 },
280 282
281 /** 283 /**
282 * @return {!WebInspector.View} 284 * @return {!WebInspector.View}
283 */ 285 */
284 _layersView: function() 286 _layersView: function()
285 { 287 {
286 if (this._lazyLayersView) 288 if (this._lazyLayersView)
287 return this._lazyLayersView; 289 return this._lazyLayersView;
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 * @param {!WebInspector.TimelineModel.Record} record 1456 * @param {!WebInspector.TimelineModel.Record} record
1455 * @return {boolean} 1457 * @return {boolean}
1456 */ 1458 */
1457 accept: function(record) 1459 accept: function(record)
1458 { 1460 {
1459 return !this._hiddenRecords[record.type()]; 1461 return !this._hiddenRecords[record.type()];
1460 }, 1462 },
1461 1463
1462 __proto__: WebInspector.TimelineModel.Filter.prototype 1464 __proto__: WebInspector.TimelineModel.Filter.prototype
1463 } 1465 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelinePresentationModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698