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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/treeoutline.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/ui/treeoutline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
index 007e68e654979e77f00907ef094dffaeb84aa7a1..f5c7e62bbeaa83f2249b2c7e68f6379ca659650a 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js
@@ -48,11 +48,12 @@ function TreeOutline(nonFocusable)
this.element = this.contentElement;
}
+/** @enum {symbol} */
TreeOutline.Events = {
- ElementAttached: "ElementAttached",
- ElementExpanded: "ElementExpanded",
- ElementCollapsed: "ElementCollapsed",
- ElementSelected: "ElementSelected"
+ ElementAttached: Symbol("ElementAttached"),
+ ElementExpanded: Symbol("ElementExpanded"),
+ ElementCollapsed: Symbol("ElementCollapsed"),
+ ElementSelected: Symbol("ElementSelected")
}
TreeOutline.prototype = {

Powered by Google App Engine
This is Rietveld 408576698