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

Unified Diff: third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.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/animation/AnimationModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
index 1c49a82014b32542c710a7a77956ac365a5d4d48..5d6bbb1b70fb20bf59bf9b1fc65fc3781b42fd12 100644
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
@@ -24,9 +24,10 @@ WebInspector.AnimationModel = function(target)
this._screenshotCapture = new WebInspector.AnimationModel.ScreenshotCapture(target, this);
}
+/** @enum {symbol} */
WebInspector.AnimationModel.Events = {
- AnimationGroupStarted: "AnimationGroupStarted",
- ModelReset: "ModelReset"
+ AnimationGroupStarted: Symbol("AnimationGroupStarted"),
+ ModelReset: Symbol("ModelReset")
}
WebInspector.AnimationModel.prototype = {

Powered by Google App Engine
This is Rietveld 408576698