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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.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_lazy/DataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
index 422b2b1159f2f0de0660882ffc5f6cfae604051f..00faa50fe523dd4191da8576dfea490f5f9d2ba0 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
@@ -149,11 +149,12 @@ WebInspector.DataGrid.CornerWidth = 14;
*/
WebInspector.DataGrid.ColumnDescriptor;
+/** @enum {symbol} */
WebInspector.DataGrid.Events = {
- SelectedNode: "SelectedNode",
- DeselectedNode: "DeselectedNode",
- SortingChanged: "SortingChanged",
- ColumnsResized: "ColumnsResized"
+ SelectedNode: Symbol("SelectedNode"),
+ DeselectedNode: Symbol("DeselectedNode"),
+ SortingChanged: Symbol("SortingChanged"),
+ ColumnsResized: Symbol("ColumnsResized")
}
/** @enum {string} */

Powered by Google App Engine
This is Rietveld 408576698