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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.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/TabbedEditorContainer.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
index fcbe43491f763e5a92d84b52267516630c1838df..fb1d27e52d24ff32019c3c04ac953ce75f0c897a 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js
@@ -70,9 +70,10 @@ WebInspector.TabbedEditorContainer = function(delegate, setting, placeholderText
this._history = WebInspector.TabbedEditorContainer.History.fromObject(this._previouslyViewedFilesSetting.get());
}
+/** @enum {symbol} */
WebInspector.TabbedEditorContainer.Events = {
- EditorSelected: "EditorSelected",
- EditorClosed: "EditorClosed"
+ EditorSelected: Symbol("EditorSelected"),
+ EditorClosed: Symbol("EditorClosed")
}
WebInspector.TabbedEditorContainer._tabId = 0;

Powered by Google App Engine
This is Rietveld 408576698