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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 * @constructor 346 * @constructor
347 * @extends {WebInspector.Object} 347 * @extends {WebInspector.Object}
348 */ 348 */
349 WebInspector.Workspace = function() 349 WebInspector.Workspace = function()
350 { 350 {
351 /** @type {!Map<string, !WebInspector.Project>} */ 351 /** @type {!Map<string, !WebInspector.Project>} */
352 this._projects = new Map(); 352 this._projects = new Map();
353 this._hasResourceContentTrackingExtensions = false; 353 this._hasResourceContentTrackingExtensions = false;
354 } 354 }
355 355
356 /** @enum {symbol} */
356 WebInspector.Workspace.Events = { 357 WebInspector.Workspace.Events = {
357 UISourceCodeAdded: "UISourceCodeAdded", 358 UISourceCodeAdded: Symbol("UISourceCodeAdded"),
358 UISourceCodeRemoved: "UISourceCodeRemoved", 359 UISourceCodeRemoved: Symbol("UISourceCodeRemoved"),
359 WorkingCopyChanged: "WorkingCopyChanged", 360 WorkingCopyChanged: Symbol("WorkingCopyChanged"),
360 WorkingCopyCommitted: "WorkingCopyCommitted", 361 WorkingCopyCommitted: Symbol("WorkingCopyCommitted"),
361 WorkingCopyCommittedByUser: "WorkingCopyCommittedByUser", 362 WorkingCopyCommittedByUser: Symbol("WorkingCopyCommittedByUser"),
362 ProjectAdded: "ProjectAdded", 363 ProjectAdded: Symbol("ProjectAdded"),
363 ProjectRemoved: "ProjectRemoved" 364 ProjectRemoved: Symbol("ProjectRemoved")
364 } 365 }
365 366
366 WebInspector.Workspace.prototype = { 367 WebInspector.Workspace.prototype = {
367 /** 368 /**
368 * @return {!Array.<!WebInspector.UISourceCode>} 369 * @return {!Array.<!WebInspector.UISourceCode>}
369 */ 370 */
370 unsavedSourceCodes: function() 371 unsavedSourceCodes: function()
371 { 372 {
372 /** 373 /**
373 * @param {!WebInspector.UISourceCode} sourceCode 374 * @param {!WebInspector.UISourceCode} sourceCode
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 return this._hasResourceContentTrackingExtensions; 501 return this._hasResourceContentTrackingExtensions;
501 }, 502 },
502 503
503 __proto__: WebInspector.Object.prototype 504 __proto__: WebInspector.Object.prototype
504 } 505 }
505 506
506 /** 507 /**
507 * @type {!WebInspector.Workspace} 508 * @type {!WebInspector.Workspace}
508 */ 509 */
509 WebInspector.workspace; 510 WebInspector.workspace;
OLDNEW
« 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