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

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

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 /* 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 this.registerRequiredCSS("layersPanel.css"); 69 this.registerRequiredCSS("layersPanel.css");
70 this.registerRequiredCSS("filter.css"); 70 this.registerRequiredCSS("filter.css");
71 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), f alse); 71 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), f alse);
72 72
73 this._detailsLinkifier = new WebInspector.Linkifier(); 73 this._detailsLinkifier = new WebInspector.Linkifier();
74 this._windowStartTime = 0; 74 this._windowStartTime = 0;
75 this._windowEndTime = Infinity; 75 this._windowEndTime = Infinity;
76 76
77 // Create model. 77 // Create model.
78 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) { 78 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled()) {
79 this._tracingModel = new WebInspector.TracingModel(WebInspector.targetMa nager.activeTarget()); 79 this._tracingModel = new WebInspector.TracingModel(WebInspector.targetMa nager.mainTarget());
80 this._tracingModel.addEventListener(WebInspector.TracingModel.Events.Buf ferUsage, this._onTracingBufferUsage, this); 80 this._tracingModel.addEventListener(WebInspector.TracingModel.Events.Buf ferUsage, this._onTracingBufferUsage, this);
81 81
82 this._uiUtils = new WebInspector.TracingTimelineUIUtils(); 82 this._uiUtils = new WebInspector.TracingTimelineUIUtils();
83 this._tracingTimelineModel = new WebInspector.TracingTimelineModel(this. _tracingModel, this._uiUtils.hiddenRecordsFilter()); 83 this._tracingTimelineModel = new WebInspector.TracingTimelineModel(this. _tracingModel, this._uiUtils.hiddenRecordsFilter());
84 this._model = this._tracingTimelineModel; 84 this._model = this._tracingTimelineModel;
85 } else { 85 } else {
86 this._uiUtils = new WebInspector.TimelineUIUtilsImpl(); 86 this._uiUtils = new WebInspector.TimelineUIUtilsImpl();
87 this._model = new WebInspector.TimelineModelImpl(WebInspector.timelineMa nager); 87 this._model = new WebInspector.TimelineModelImpl(WebInspector.timelineMa nager);
88 } 88 }
89 89
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 * @param {!WebInspector.TimelineModel.Record} record 1470 * @param {!WebInspector.TimelineModel.Record} record
1471 * @return {boolean} 1471 * @return {boolean}
1472 */ 1472 */
1473 accept: function(record) 1473 accept: function(record)
1474 { 1474 {
1475 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1475 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1476 }, 1476 },
1477 1477
1478 __proto__: WebInspector.TimelineModel.Filter.prototype 1478 __proto__: WebInspector.TimelineModel.Filter.prototype
1479 } 1479 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModelImpl.js ('k') | Source/devtools/front_end/timeline/TimelinePowerOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698