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

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

Issue 1211993002: DevTools: Refactor: Split timeline overview strips into components (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 /* 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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 var isFrameMode = this._overviewModeSetting.get() === WebInspector.Timel inePanel.OverviewMode.Frames; 595 var isFrameMode = this._overviewModeSetting.get() === WebInspector.Timel inePanel.OverviewMode.Frames;
596 this._removeAllModeViews(); 596 this._removeAllModeViews();
597 this._overviewControls = []; 597 this._overviewControls = [];
598 598
599 if (isFrameMode) { 599 if (isFrameMode) {
600 this._frameOverview = new WebInspector.TimelineFrameOverview(this._m odel, this._frameModel()); 600 this._frameOverview = new WebInspector.TimelineFrameOverview(this._m odel, this._frameModel());
601 this._frameOverview.addEventListener(WebInspector.TimelineFrameOverv iew.Events.SelectionChanged, this._onOverviewSelectionChanged, this); 601 this._frameOverview.addEventListener(WebInspector.TimelineFrameOverv iew.Events.SelectionChanged, this._onOverviewSelectionChanged, this);
602 this._overviewControls.push(this._frameOverview); 602 this._overviewControls.push(this._frameOverview);
603 } else { 603 } else {
604 this._frameOverview = null; 604 this._frameOverview = null;
605 this._overviewControls.push(new WebInspector.TimelineEventOverview(t his._model, this._frameModel())); 605 if (Runtime.experiments.isEnabled("inputEventsOnTimelineOverview"))
606 this._overviewControls.push(new WebInspector.TimelineEventOvervi ew.Input(this._model));
607 this._overviewControls.push(new WebInspector.TimelineEventOverview.N etwork(this._model));
608 this._overviewControls.push(new WebInspector.TimelineEventOverview.M ainThread(this._model));
609 this._overviewControls.push(new WebInspector.TimelineEventOverview.O therThreads(this._model));
610 this._overviewControls.push(new WebInspector.TimelineEventOverview.R esponsiveness(this._model, this._frameModel()));
611 this._overviewControls.push(new WebInspector.TimelineEventOverview.F rames(this._model, this._frameModel()));
606 } 612 }
607 this.element.classList.toggle("timeline-overview-frames-mode", isFrameMo de); 613 this.element.classList.toggle("timeline-overview-frames-mode", isFrameMo de);
608 614
609 if (this._flameChartEnabledSetting.get()) { 615 if (this._flameChartEnabledSetting.get()) {
610 this._filterBar.filterButton().setEnabled(false); 616 this._filterBar.filterButton().setEnabled(false);
611 this._filterBar.filtersElement().classList.toggle("hidden", true); 617 this._filterBar.filtersElement().classList.toggle("hidden", true);
612 this._flameChart = new WebInspector.TimelineFlameChartView(this, thi s._model, this._frameModel()); 618 this._flameChart = new WebInspector.TimelineFlameChartView(this, thi s._model, this._frameModel());
613 this._flameChart.enableNetworkPane(this._captureNetworkSetting.get() ); 619 this._flameChart.enableNetworkPane(this._captureNetworkSetting.get() );
614 this._addModeView(this._flameChart); 620 this._addModeView(this._flameChart);
615 } else { 621 } else {
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1870 */ 1876 */
1871 reset: function() 1877 reset: function()
1872 { 1878 {
1873 this._filmStripView.reset(); 1879 this._filmStripView.reset();
1874 this._lastFrame = null; 1880 this._lastFrame = null;
1875 this._lastElement = null; 1881 this._lastElement = null;
1876 }, 1882 },
1877 1883
1878 __proto__: WebInspector.TimelineOverviewBase.prototype 1884 __proto__: WebInspector.TimelineOverviewBase.prototype
1879 } 1885 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698