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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileHeader.js

Issue 2954973002: DevTools -> Memory Tab -> Allowing to edit a title of a heap snapshot (Closed)
Patch Set: adding myself to authors Created 3 years, 5 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
OLDNEW
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 this.dispatchEventToListeners(Profiler.ProfileHeader.Events.ProfileTitleChan ged, this);
27 }
28
29 /**
22 * @return {!Profiler.ProfileType} 30 * @return {!Profiler.ProfileType}
23 */ 31 */
24 profileType() { 32 profileType() {
25 return this._profileType; 33 return this._profileType;
26 } 34 }
27 35
28 /** 36 /**
29 * @param {?string} subtitle 37 * @param {?string} subtitle
30 * @param {boolean=} wait 38 * @param {boolean=} wait
31 */ 39 */
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 /** @type {?string} */ 109 /** @type {?string} */
102 this.subtitle = subtitle; 110 this.subtitle = subtitle;
103 /** @type {boolean|undefined} */ 111 /** @type {boolean|undefined} */
104 this.wait = wait; 112 this.wait = wait;
105 } 113 }
106 }; 114 };
107 115
108 /** @enum {symbol} */ 116 /** @enum {symbol} */
109 Profiler.ProfileHeader.Events = { 117 Profiler.ProfileHeader.Events = {
110 UpdateStatus: Symbol('UpdateStatus'), 118 UpdateStatus: Symbol('UpdateStatus'),
111 ProfileReceived: Symbol('ProfileReceived') 119 ProfileReceived: Symbol('ProfileReceived'),
120 ProfileTitleChanged: Symbol('ProfileTitleChanged')
112 }; 121 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698