OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * @constructor | 8 * @constructor |
9 * @implements {WebInspector.TimelineModeView} | 9 * @implements {WebInspector.TimelineModeView} |
10 * @implements {WebInspector.FlameChartDelegate} | 10 * @implements {WebInspector.FlameChartDelegate} |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 { | 48 { |
49 return this; | 49 return this; |
50 }, | 50 }, |
51 | 51 |
52 dispose: function() | 52 dispose: function() |
53 { | 53 { |
54 }, | 54 }, |
55 | 55 |
56 reset: function() | 56 reset: function() |
57 { | 57 { |
58 this._tracingModel.reset(); | |
59 this._dataProvider.reset(); | 58 this._dataProvider.reset(); |
60 this._mainView.setWindowTimes(0, Infinity); | 59 this._mainView.setWindowTimes(0, Infinity); |
61 }, | 60 }, |
62 | 61 |
63 /** | 62 /** |
64 * @param {?RegExp} textFilter | 63 * @param {?RegExp} textFilter |
65 */ | 64 */ |
66 refreshRecords: function(textFilter) | 65 refreshRecords: function(textFilter) |
67 { | 66 { |
68 this._dataProvider.reset(); | 67 this._dataProvider.reset(); |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 /** | 572 /** |
574 * @param {string} string | 573 * @param {string} string |
575 * @return {string} | 574 * @return {string} |
576 */ | 575 */ |
577 colorForString: function(string) | 576 colorForString: function(string) |
578 { | 577 { |
579 var hash = WebInspector.TraceViewPalette._stringHash(string); | 578 var hash = WebInspector.TraceViewPalette._stringHash(string); |
580 return this._palette[hash % this._palette.length]; | 579 return this._palette[hash % this._palette.length]; |
581 } | 580 } |
582 }; | 581 }; |
OLD | NEW |