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

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

Issue 668683002: DevTools: remove style reuse from flamechart clients, prepare it to become a component. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/profilesPanel.css ('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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 * @implements {WebInspector.TimelineModeView} 735 * @implements {WebInspector.TimelineModeView}
736 * @implements {WebInspector.FlameChartDelegate} 736 * @implements {WebInspector.FlameChartDelegate}
737 * @param {!WebInspector.TimelineModeViewDelegate} delegate 737 * @param {!WebInspector.TimelineModeViewDelegate} delegate
738 * @param {!WebInspector.TracingTimelineModel} tracingModel 738 * @param {!WebInspector.TracingTimelineModel} tracingModel
739 * @param {!WebInspector.TimelineFrameModelBase} frameModel 739 * @param {!WebInspector.TimelineFrameModelBase} frameModel
740 */ 740 */
741 WebInspector.TimelineFlameChart = function(delegate, tracingModel, frameModel) 741 WebInspector.TimelineFlameChart = function(delegate, tracingModel, frameModel)
742 { 742 {
743 WebInspector.VBox.call(this); 743 WebInspector.VBox.call(this);
744 this.element.classList.add("timeline-flamechart"); 744 this.element.classList.add("timeline-flamechart");
745 this.registerRequiredCSS("flameChart.css");
746 this._delegate = delegate; 745 this._delegate = delegate;
747 this._model = tracingModel; 746 this._model = tracingModel;
748 this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(tracing Model, frameModel) 747 this._dataProvider = new WebInspector.TimelineFlameChartDataProvider(tracing Model, frameModel)
749 this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true) ; 748 this._mainView = new WebInspector.FlameChart(this._dataProvider, this, true) ;
750 this._mainView.show(this.element); 749 this._mainView.show(this.element);
751 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar ted, this._onRecordingStarted, this); 750 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar ted, this._onRecordingStarted, this);
752 this._mainView.addEventListener(WebInspector.FlameChart.Events.EntrySelected , this._onEntrySelected, this); 751 this._mainView.addEventListener(WebInspector.FlameChart.Events.EntrySelected , this._onEntrySelected, this);
753 } 752 }
754 753
755 WebInspector.TimelineFlameChart.prototype = { 754 WebInspector.TimelineFlameChart.prototype = {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 /** 880 /**
882 * @constructor 881 * @constructor
883 * @param {!WebInspector.TimelineSelection} selection 882 * @param {!WebInspector.TimelineSelection} selection
884 * @param {number} entryIndex 883 * @param {number} entryIndex
885 */ 884 */
886 WebInspector.TimelineFlameChart.Selection = function(selection, entryIndex) 885 WebInspector.TimelineFlameChart.Selection = function(selection, entryIndex)
887 { 886 {
888 this.timelineSelection = selection; 887 this.timelineSelection = selection;
889 this.entryIndex = entryIndex; 888 this.entryIndex = entryIndex;
890 } 889 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profilesPanel.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698