| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The Chromium Authors. All rights reserved. | 2 * Copyright 2015 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 * @unrestricted | 8 * @unrestricted |
| 8 */ | 9 */ |
| 9 WebInspector.FilmStripModel = class { | 10 WebInspector.FilmStripModel = class { |
| 10 /** | 11 /** |
| 11 * @param {!WebInspector.TracingModel} tracingModel | 12 * @param {!WebInspector.TracingModel} tracingModel |
| 12 * @param {number=} zeroTime | 13 * @param {number=} zeroTime |
| 13 */ | 14 */ |
| 14 constructor(tracingModel, zeroTime) { | 15 constructor(tracingModel, zeroTime) { |
| 15 this.reset(tracingModel, zeroTime); | 16 this.reset(tracingModel, zeroTime); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 /** | 139 /** |
| 139 * @return {!Promise<?string>} | 140 * @return {!Promise<?string>} |
| 140 */ | 141 */ |
| 141 imageDataPromise() { | 142 imageDataPromise() { |
| 142 if (this._imageData || !this._snapshot) | 143 if (this._imageData || !this._snapshot) |
| 143 return Promise.resolve(this._imageData); | 144 return Promise.resolve(this._imageData); |
| 144 | 145 |
| 145 return /** @type {!Promise<?string>} */ (this._snapshot.objectPromise()); | 146 return /** @type {!Promise<?string>} */ (this._snapshot.objectPromise()); |
| 146 } | 147 } |
| 147 }; | 148 }; |
| OLD | NEW |