| OLD | NEW |
| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 reset: function() | 447 reset: function() |
| 448 { | 448 { |
| 449 this._automaticallySizeWindow = true; | 449 this._automaticallySizeWindow = true; |
| 450 this._dataProvider.reset(); | 450 this._dataProvider.reset(); |
| 451 this._mainView.setWindowTimes(0, Infinity); | 451 this._mainView.setWindowTimes(0, Infinity); |
| 452 }, | 452 }, |
| 453 | 453 |
| 454 _onRecordingStarted: function() | 454 _onRecordingStarted: function() |
| 455 { | 455 { |
| 456 this._automaticallySizeWindow = true; | 456 this._automaticallySizeWindow = true; |
| 457 this._mainView.reset(); |
| 457 }, | 458 }, |
| 458 | 459 |
| 459 /** | 460 /** |
| 460 * @param {!WebInspector.TimelineModel.Record} record | 461 * @param {!WebInspector.TimelineModel.Record} record |
| 461 */ | 462 */ |
| 462 addRecord: function(record) | 463 addRecord: function(record) |
| 463 { | 464 { |
| 464 this._dataProvider.reset(); | 465 this._dataProvider.reset(); |
| 465 if (this._automaticallySizeWindow) { | 466 if (this._automaticallySizeWindow) { |
| 466 var minimumRecordTime = this._model.minimumRecordTime(); | 467 var minimumRecordTime = this._model.minimumRecordTime(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 */ | 527 */ |
| 527 _onEntrySelected: function(event) | 528 _onEntrySelected: function(event) |
| 528 { | 529 { |
| 529 var entryIndex = event.data; | 530 var entryIndex = event.data; |
| 530 var record = this._dataProvider._records[entryIndex]; | 531 var record = this._dataProvider._records[entryIndex]; |
| 531 this._delegate.selectRecord(record); | 532 this._delegate.selectRecord(record); |
| 532 }, | 533 }, |
| 533 | 534 |
| 534 __proto__: WebInspector.VBox.prototype | 535 __proto__: WebInspector.VBox.prototype |
| 535 } | 536 } |
| OLD | NEW |