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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js

Issue 2163093003: [DevTools] Remove Object.values and Object.isEmpty from utilities.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/IsolatedFileSystem.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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 project: function(projectId) 450 project: function(projectId)
451 { 451 {
452 return this._projects.get(projectId) || null; 452 return this._projects.get(projectId) || null;
453 }, 453 },
454 454
455 /** 455 /**
456 * @return {!Array.<!WebInspector.Project>} 456 * @return {!Array.<!WebInspector.Project>}
457 */ 457 */
458 projects: function() 458 projects: function()
459 { 459 {
460 return Array.from(this._projects.values()); 460 return this._projects.valuesArray();
461 }, 461 },
462 462
463 /** 463 /**
464 * @param {string} type 464 * @param {string} type
465 * @return {!Array.<!WebInspector.Project>} 465 * @return {!Array.<!WebInspector.Project>}
466 */ 466 */
467 projectsForType: function(type) 467 projectsForType: function(type)
468 { 468 {
469 function filterByType(project) 469 function filterByType(project)
470 { 470 {
(...skipping 29 matching lines...) Expand all
500 return this._hasResourceContentTrackingExtensions; 500 return this._hasResourceContentTrackingExtensions;
501 }, 501 },
502 502
503 __proto__: WebInspector.Object.prototype 503 __proto__: WebInspector.Object.prototype
504 } 504 }
505 505
506 /** 506 /**
507 * @type {!WebInspector.Workspace} 507 * @type {!WebInspector.Workspace}
508 */ 508 */
509 WebInspector.workspace; 509 WebInspector.workspace;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698