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

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

Issue 166273012: TimelinePanel: do not collapse record when user changes panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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) 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 for (var category in fillStyles) { 183 for (var category in fillStyles) {
184 if (fillStyles.hasOwnProperty(category)) 184 if (fillStyles.hasOwnProperty(category))
185 colorGenerator.setColorPairForID(category, fillStyles[category], fillStyles[category]); 185 colorGenerator.setColorPairForID(category, fillStyles[category], fillStyles[category]);
186 } 186 }
187 WebInspector.TimelineFlameChart._colorGenerator = colorGenerator; 187 WebInspector.TimelineFlameChart._colorGenerator = colorGenerator;
188 } 188 }
189 return WebInspector.TimelineFlameChart._colorGenerator; 189 return WebInspector.TimelineFlameChart._colorGenerator;
190 } 190 }
191 191
192 WebInspector.TimelineFlameChart.prototype = { 192 WebInspector.TimelineFlameChart.prototype = {
193 refreshRecords: function()
194 {
195 },
196
193 reset: function() 197 reset: function()
194 { 198 {
195 this._dataProvider.reset(); 199 this._dataProvider.reset();
196 this._mainView.changeWindow(0, 1); 200 this._mainView.changeWindow(0, 1);
197 }, 201 },
198 202
199 _onRecordingStarted: function() 203 _onRecordingStarted: function()
200 { 204 {
201 this._gotFirstRecord = false; 205 this._gotFirstRecord = false;
202 }, 206 },
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 /** 253 /**
250 * @return {?WebInspector.View} 254 * @return {?WebInspector.View}
251 */ 255 */
252 searchableView: function() 256 searchableView: function()
253 { 257 {
254 return null; 258 return null;
255 }, 259 },
256 260
257 __proto__: WebInspector.View.prototype 261 __proto__: WebInspector.View.prototype
258 } 262 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/MemoryStatistics.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698