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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.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/TextPrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
index ecd73939ad7608d88f62d01fc0a4329fd458be20..839f4b9bc35705059205e754168429f1a2463eca 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -49,9 +49,10 @@ WebInspector.TextPrompt = function(completions, stopCharacters)
WebInspector.TextPrompt.DefaultAutocompletionTimeout = 250;
+/** @enum {symbol} */
WebInspector.TextPrompt.Events = {
- ItemApplied: "text-prompt-item-applied",
- ItemAccepted: "text-prompt-item-accepted"
+ ItemApplied: Symbol("text-prompt-item-applied"),
+ ItemAccepted: Symbol("text-prompt-item-accepted")
};
WebInspector.TextPrompt.prototype = {

Powered by Google App Engine
This is Rietveld 408576698