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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 id() {}, | 77 id() {}, |
78 | 78 |
79 /** | 79 /** |
80 * @return {string} | 80 * @return {string} |
81 */ | 81 */ |
82 type() {}, | 82 type() {}, |
83 | 83 |
84 /** | 84 /** |
85 * @return {boolean} | 85 * @return {boolean} |
86 */ | 86 */ |
| 87 isEmpty() {}, |
| 88 |
| 89 /** |
| 90 * @return {boolean} |
| 91 */ |
87 isServiceProject() {}, | 92 isServiceProject() {}, |
88 | 93 |
89 /** | 94 /** |
90 * @return {string} | 95 * @return {string} |
91 */ | 96 */ |
92 displayName() {}, | 97 displayName() {}, |
93 | 98 |
94 /** | 99 /** |
95 * @param {!Workspace.UISourceCode} uiSourceCode | 100 * @param {!Workspace.UISourceCode} uiSourceCode |
96 * @return {!Promise<?Workspace.UISourceCodeMetadata>} | 101 * @return {!Promise<?Workspace.UISourceCodeMetadata>} |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 } | 244 } |
240 | 245 |
241 /** | 246 /** |
242 * @return {string} | 247 * @return {string} |
243 */ | 248 */ |
244 displayName() { | 249 displayName() { |
245 return this._displayName; | 250 return this._displayName; |
246 } | 251 } |
247 | 252 |
248 /** | 253 /** |
| 254 * @return {boolean} |
| 255 */ |
| 256 isEmpty() { |
| 257 return !this._uiSourceCodesList.length; |
| 258 } |
| 259 |
| 260 /** |
249 * @return {!Workspace.Workspace} | 261 * @return {!Workspace.Workspace} |
250 */ | 262 */ |
251 workspace() { | 263 workspace() { |
252 return this._workspace; | 264 return this._workspace; |
253 } | 265 } |
254 | 266 |
255 /** | 267 /** |
256 * @param {string} url | 268 * @param {string} url |
257 * @param {!Common.ResourceType} contentType | 269 * @param {!Common.ResourceType} contentType |
258 * @return {!Workspace.UISourceCode} | 270 * @return {!Workspace.UISourceCode} |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 WorkingCopyCommitted: Symbol('WorkingCopyCommitted'), | 469 WorkingCopyCommitted: Symbol('WorkingCopyCommitted'), |
458 WorkingCopyCommittedByUser: Symbol('WorkingCopyCommittedByUser'), | 470 WorkingCopyCommittedByUser: Symbol('WorkingCopyCommittedByUser'), |
459 ProjectAdded: Symbol('ProjectAdded'), | 471 ProjectAdded: Symbol('ProjectAdded'), |
460 ProjectRemoved: Symbol('ProjectRemoved') | 472 ProjectRemoved: Symbol('ProjectRemoved') |
461 }; | 473 }; |
462 | 474 |
463 /** | 475 /** |
464 * @type {!Workspace.Workspace} | 476 * @type {!Workspace.Workspace} |
465 */ | 477 */ |
466 Workspace.workspace; | 478 Workspace.workspace; |
OLD | NEW |