| OLD | NEW |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 * @return {boolean} | 58 * @return {boolean} |
| 59 */ | 59 */ |
| 60 filePathMatchesFileQuery(filePath) {} | 60 filePathMatchesFileQuery(filePath) {} |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * @interface | 64 * @interface |
| 65 */ | 65 */ |
| 66 Workspace.Project = function() {}; | 66 Workspace.Project = function() {}; |
| 67 | 67 |
| 68 /** | |
| 69 * @param {!Workspace.Project} project | |
| 70 * @return {boolean} | |
| 71 */ | |
| 72 Workspace.Project.isServiceProject = function(project) { | |
| 73 return project.type() === Workspace.projectTypes.Debugger || project.type() ==
= Workspace.projectTypes.Formatter || | |
| 74 project.type() === Workspace.projectTypes.Service; | |
| 75 }; | |
| 76 | |
| 77 Workspace.Project.prototype = { | 68 Workspace.Project.prototype = { |
| 78 /** | 69 /** |
| 79 * @return {!Workspace.Workspace} | 70 * @return {!Workspace.Workspace} |
| 80 */ | 71 */ |
| 81 workspace() {}, | 72 workspace() {}, |
| 82 | 73 |
| 83 /** | 74 /** |
| 84 * @return {string} | 75 * @return {string} |
| 85 */ | 76 */ |
| 86 id() {}, | 77 id() {}, |
| 87 | 78 |
| 88 /** | 79 /** |
| 89 * @return {string} | 80 * @return {string} |
| 90 */ | 81 */ |
| 91 type() {}, | 82 type() {}, |
| 92 | 83 |
| 93 /** | 84 /** |
| 85 * @return {boolean} |
| 86 */ |
| 87 isServiceProject() {}, |
| 88 |
| 89 /** |
| 94 * @return {string} | 90 * @return {string} |
| 95 */ | 91 */ |
| 96 displayName() {}, | 92 displayName() {}, |
| 97 | 93 |
| 98 /** | 94 /** |
| 99 * @param {!Workspace.UISourceCode} uiSourceCode | 95 * @param {!Workspace.UISourceCode} uiSourceCode |
| 100 * @return {!Promise<?Workspace.UISourceCodeMetadata>} | 96 * @return {!Promise<?Workspace.UISourceCodeMetadata>} |
| 101 */ | 97 */ |
| 102 requestMetadata(uiSourceCode) {}, | 98 requestMetadata(uiSourceCode) {}, |
| 103 | 99 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 WorkingCopyCommitted: Symbol('WorkingCopyCommitted'), | 451 WorkingCopyCommitted: Symbol('WorkingCopyCommitted'), |
| 456 WorkingCopyCommittedByUser: Symbol('WorkingCopyCommittedByUser'), | 452 WorkingCopyCommittedByUser: Symbol('WorkingCopyCommittedByUser'), |
| 457 ProjectAdded: Symbol('ProjectAdded'), | 453 ProjectAdded: Symbol('ProjectAdded'), |
| 458 ProjectRemoved: Symbol('ProjectRemoved') | 454 ProjectRemoved: Symbol('ProjectRemoved') |
| 459 }; | 455 }; |
| 460 | 456 |
| 461 /** | 457 /** |
| 462 * @type {!Workspace.Workspace} | 458 * @type {!Workspace.Workspace} |
| 463 */ | 459 */ |
| 464 Workspace.workspace; | 460 Workspace.workspace; |
| OLD | NEW |