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

Unified 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: 'updating heap snapshot view on title change' 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/profiler/ProfileHeader.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileHeader.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileHeader.js
index 6dd2a45a21e5bf542d0e17479db460614e688156..63ab483fa43a5165b5e5bae1e53450eeffa89b4b 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileHeader.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileHeader.js
@@ -19,6 +19,14 @@ Profiler.ProfileHeader = class extends Common.Object {
}
/**
+ * @param {string} title
+ */
+ setTitle(title) {
+ this.title = title;
+ this.dispatchEventToListeners(Profiler.ProfileHeader.Events.ProfileTitleChanged, this);
+ }
+
+ /**
* @return {!Profiler.ProfileType}
*/
profileType() {
@@ -108,5 +116,6 @@ Profiler.ProfileHeader.StatusUpdate = class {
/** @enum {symbol} */
Profiler.ProfileHeader.Events = {
UpdateStatus: Symbol('UpdateStatus'),
- ProfileReceived: Symbol('ProfileReceived')
+ ProfileReceived: Symbol('ProfileReceived'),
+ ProfileTitleChanged: Symbol('ProfileTitleChanged')
};

Powered by Google App Engine
This is Rietveld 408576698