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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/PaintProfilerView.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/PaintProfilerView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/PaintProfilerView.js b/third_party/WebKit/Source/devtools/front_end/timeline/PaintProfilerView.js
index 3a728bbe8e4460d5f4798f8c3e3d11dd7545f849..abc7606d22cde188c17915551eab6f5fddf2149a 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/PaintProfilerView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/PaintProfilerView.js
@@ -59,8 +59,9 @@ WebInspector.PaintProfilerView = function(showImageCallback)
this._reset();
}
+/** @enum {symbol} */
WebInspector.PaintProfilerView.Events = {
- WindowChanged: "WindowChanged"
+ WindowChanged: Symbol("WindowChanged")
};
WebInspector.PaintProfilerView.prototype = {

Powered by Google App Engine
This is Rietveld 408576698