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/ActionRegistry.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/ActionRegistry.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js b/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
index 356be41889d004c20649720ee4a5950167c9c6ec..91d5f73b2b82c5ba4bdaf99d8716c491e04e25a7 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
@@ -87,9 +87,10 @@ WebInspector.Action = function(extension)
this._toggled = false;
}
+/** @enum {symbol} */
WebInspector.Action.Events = {
- Enabled: "Enabled",
- Toggled: "Toggled"
+ Enabled: Symbol("Enabled"),
+ Toggled: Symbol("Toggled")
}
WebInspector.Action.prototype = {

Powered by Google App Engine
This is Rietveld 408576698