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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.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/source_frame/CodeMirrorTextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
index 79757e7b376f4903733fe3999c21063860778159..e25f51c440e8a7ba121f881b03caaa1fd5760f3d 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
@@ -2358,8 +2358,9 @@ WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens("xml", "xml-")
WebInspector.CodeMirrorTextEditor.GutterClickEventData;
/** @enum {string} */
+/** @enum {symbol} */
WebInspector.CodeMirrorTextEditor.Events = {
- GutterClick: "GutterClick"
+ GutterClick: Symbol("GutterClick")
}
/** @type {!Set<!Runtime.Extension>} */

Powered by Google App Engine
This is Rietveld 408576698