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

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

Issue 1191773002: DevTools: Change default timeline overview mode to events. (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
« no previous file with comments | « Source/devtools/front_end/common/Settings.js ('k') | no next file » | 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 this._durationFilter = new WebInspector.TimelineIsLongFilter(); 64 this._durationFilter = new WebInspector.TimelineIsLongFilter();
65 this._textFilter = new WebInspector.TimelineTextFilter(); 65 this._textFilter = new WebInspector.TimelineTextFilter();
66 this._model.addFilter(this._categoryFilter); 66 this._model.addFilter(this._categoryFilter);
67 this._model.addFilter(this._durationFilter); 67 this._model.addFilter(this._durationFilter);
68 this._model.addFilter(this._textFilter); 68 this._model.addFilter(this._textFilter);
69 this._model.addFilter(new WebInspector.TimelineStaticFilter()); 69 this._model.addFilter(new WebInspector.TimelineStaticFilter());
70 70
71 /** @type {!Array.<!WebInspector.TimelineModeView>} */ 71 /** @type {!Array.<!WebInspector.TimelineModeView>} */
72 this._currentViews = []; 72 this._currentViews = [];
73 73
74 this._overviewModeSetting = WebInspector.settings.createSetting("timelineOve rviewMode", WebInspector.TimelinePanel.OverviewMode.Frames); 74 this._overviewModeSetting = WebInspector.settings.createSetting("timelineOve rviewMode", WebInspector.TimelinePanel.OverviewMode.Events);
75 this._flameChartEnabledSetting = WebInspector.settings.createSetting("timeli neFlameChartEnabled", true); 75 this._flameChartEnabledSetting = WebInspector.settings.createSetting("timeli neFlameChartEnabled", true);
76 this._createToolbarItems(); 76 this._createToolbarItems();
77 77
78 var topPaneElement = this.element.createChild("div", "hbox"); 78 var topPaneElement = this.element.createChild("div", "hbox");
79 topPaneElement.id = "timeline-overview-panel"; 79 topPaneElement.id = "timeline-overview-panel";
80 80
81 // Create top overview component. 81 // Create top overview component.
82 this._overviewPane = new WebInspector.TimelineOverviewPane("timeline"); 82 this._overviewPane = new WebInspector.TimelineOverviewPane("timeline");
83 this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events .WindowChanged, this._onWindowChanged.bind(this)); 83 this._overviewPane.addEventListener(WebInspector.TimelineOverviewPane.Events .WindowChanged, this._onWindowChanged.bind(this));
84 this._overviewPane.show(topPaneElement); 84 this._overviewPane.show(topPaneElement);
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 /** 1835 /**
1836 * @override 1836 * @override
1837 */ 1837 */
1838 reset: function() 1838 reset: function()
1839 { 1839 {
1840 this._filmStripView.reset(); 1840 this._filmStripView.reset();
1841 }, 1841 },
1842 1842
1843 __proto__: WebInspector.TimelineOverviewBase.prototype 1843 __proto__: WebInspector.TimelineOverviewBase.prototype
1844 } 1844 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/Settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698