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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.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/profiler/HeapSnapshotDataGrids.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
index 2f84bd24cc3588efbe80abc37a62b6c67effec9f..5bc985b1682af26492ec9379d2b552b2dcf0aba3 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
@@ -60,9 +60,10 @@ WebInspector.HeapSnapshotSortableDataGrid = function(dataDisplayDelegate, column
this.addEventListener(WebInspector.DataGrid.Events.SortingChanged, this.sortingChanged, this);
}
+/** @enum {symbol} */
WebInspector.HeapSnapshotSortableDataGrid.Events = {
- ContentShown: "ContentShown",
- SortingComplete: "SortingComplete"
+ ContentShown: Symbol("ContentShown"),
+ SortingComplete: Symbol("SortingComplete")
}
WebInspector.HeapSnapshotSortableDataGrid.prototype = {
@@ -655,8 +656,9 @@ WebInspector.HeapSnapshotRetainmentDataGrid = function(dataDisplayDelegate)
WebInspector.HeapSnapshotContainmentDataGrid.call(this, dataDisplayDelegate, columns);
}
+/** @enum {symbol} */
WebInspector.HeapSnapshotRetainmentDataGrid.Events = {
- ExpandRetainersComplete: "ExpandRetainersComplete"
+ ExpandRetainersComplete: Symbol("ExpandRetainersComplete")
}
WebInspector.HeapSnapshotRetainmentDataGrid.prototype = {

Powered by Google App Engine
This is Rietveld 408576698