| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 Profiler.ProfileHeader = class extends Common.Object { | 8 Profiler.ProfileHeader = class extends Common.Object { |
| 9 /** | 9 /** |
| 10 * @param {!Profiler.ProfileType} profileType | 10 * @param {!Profiler.ProfileType} profileType |
| 11 * @param {string} title | 11 * @param {string} title |
| 12 */ | 12 */ |
| 13 constructor(profileType, title) { | 13 constructor(profileType, title) { |
| 14 super(); | 14 super(); |
| 15 this._profileType = profileType; | 15 this._profileType = profileType; |
| 16 this.title = title; | 16 this.title = title; |
| 17 this.uid = profileType.incrementProfileUid(); | 17 this.uid = profileType.incrementProfileUid(); |
| 18 this._fromFile = false; | 18 this._fromFile = false; |
| 19 } | 19 } |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * @param {string} title |
| 23 */ |
| 24 setTitle(title) { |
| 25 this.title = title; |
| 26 } |
| 27 |
| 28 /** |
| 22 * @return {!Profiler.ProfileType} | 29 * @return {!Profiler.ProfileType} |
| 23 */ | 30 */ |
| 24 profileType() { | 31 profileType() { |
| 25 return this._profileType; | 32 return this._profileType; |
| 26 } | 33 } |
| 27 | 34 |
| 28 /** | 35 /** |
| 29 * @param {?string} subtitle | 36 * @param {?string} subtitle |
| 30 * @param {boolean=} wait | 37 * @param {boolean=} wait |
| 31 */ | 38 */ |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 /** @type {boolean|undefined} */ | 110 /** @type {boolean|undefined} */ |
| 104 this.wait = wait; | 111 this.wait = wait; |
| 105 } | 112 } |
| 106 }; | 113 }; |
| 107 | 114 |
| 108 /** @enum {symbol} */ | 115 /** @enum {symbol} */ |
| 109 Profiler.ProfileHeader.Events = { | 116 Profiler.ProfileHeader.Events = { |
| 110 UpdateStatus: Symbol('UpdateStatus'), | 117 UpdateStatus: Symbol('UpdateStatus'), |
| 111 ProfileReceived: Symbol('ProfileReceived') | 118 ProfileReceived: Symbol('ProfileReceived') |
| 112 }; | 119 }; |
| OLD | NEW |