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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesView.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/sources/SourcesView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
index eea0d2d7d6557fc021535d0c56087a64fac37b05..660ef8337440a1872046011e3ed7ef307a75da60 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js
@@ -77,9 +77,10 @@ WebInspector.SourcesView = function()
this.element.addEventListener("keydown", this._handleKeyDown.bind(this), false);
}
+/** @enum {symbol} */
WebInspector.SourcesView.Events = {
- EditorClosed: "EditorClosed",
- EditorSelected: "EditorSelected",
+ EditorClosed: Symbol("EditorClosed"),
+ EditorSelected: Symbol("EditorSelected"),
}
WebInspector.SourcesView.prototype = {

Powered by Google App Engine
This is Rietveld 408576698