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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/Layers3DView.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/timeline/Layers3DView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/Layers3DView.js b/third_party/WebKit/Source/devtools/front_end/timeline/Layers3DView.js
index 0964256669cd602a38a7b61f4204c7042d2115cd..9e4468d76ba71e012866c3c16a6b689aa013a244 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/Layers3DView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/Layers3DView.js
@@ -86,9 +86,10 @@ WebInspector.Layers3DView.OutlineType = {
/**
* @enum {string}
*/
+/** @enum {symbol} */
WebInspector.Layers3DView.Events = {
- LayerSnapshotRequested: "LayerSnapshotRequested",
- PaintProfilerRequested: "PaintProfilerRequested",
+ LayerSnapshotRequested: Symbol("LayerSnapshotRequested"),
+ PaintProfilerRequested: Symbol("PaintProfilerRequested")
}
/**
@@ -813,8 +814,9 @@ WebInspector.LayerTextureManager = function()
this.reset();
}
+/** @enum {symbol} */
WebInspector.LayerTextureManager.Events = {
- TextureUpdated: "TextureUpated"
+ TextureUpdated: Symbol("TextureUpated")
}
WebInspector.LayerTextureManager.prototype = {

Powered by Google App Engine
This is Rietveld 408576698