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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/timeline/TimelineUIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
index 9074129d15df9aaeac914cf46d4290bdf211eecc..876e4e32a0dc27028c98458cb52c4eb3a2d2b765 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js
@@ -1771,8 +1771,9 @@ WebInspector.TimelineCategory = function(name, title, visible, childColor, color
this.hidden = false;
}
+/** @enum {symbol} */
WebInspector.TimelineCategory.Events = {
- VisibilityChanged: "VisibilityChanged"
+ VisibilityChanged: Symbol("VisibilityChanged")
};
WebInspector.TimelineCategory.prototype = {

Powered by Google App Engine
This is Rietveld 408576698