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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
index ae5338f76517d76cafb320edb361faf544fcc6c8..67e8b903ca81c9cf2e62a447760ad1505edfb7bf 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
@@ -353,14 +353,15 @@ WebInspector.Workspace = function()
this._hasResourceContentTrackingExtensions = false;
}
+/** @enum {symbol} */
WebInspector.Workspace.Events = {
- UISourceCodeAdded: "UISourceCodeAdded",
- UISourceCodeRemoved: "UISourceCodeRemoved",
- WorkingCopyChanged: "WorkingCopyChanged",
- WorkingCopyCommitted: "WorkingCopyCommitted",
- WorkingCopyCommittedByUser: "WorkingCopyCommittedByUser",
- ProjectAdded: "ProjectAdded",
- ProjectRemoved: "ProjectRemoved"
+ UISourceCodeAdded: Symbol("UISourceCodeAdded"),
+ UISourceCodeRemoved: Symbol("UISourceCodeRemoved"),
+ WorkingCopyChanged: Symbol("WorkingCopyChanged"),
+ WorkingCopyCommitted: Symbol("WorkingCopyCommitted"),
+ WorkingCopyCommittedByUser: Symbol("WorkingCopyCommittedByUser"),
+ ProjectAdded: Symbol("ProjectAdded"),
+ ProjectRemoved: Symbol("ProjectRemoved")
}
WebInspector.Workspace.prototype = {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698