| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 /** | 636 /** |
| 637 * @return {!Array<!Workspace.UISourceCode.LineMarker>} | 637 * @return {!Array<!Workspace.UISourceCode.LineMarker>} |
| 638 */ | 638 */ |
| 639 allDecorations() { | 639 allDecorations() { |
| 640 return this._decorations.valuesArray(); | 640 return this._decorations.valuesArray(); |
| 641 } | 641 } |
| 642 | 642 |
| 643 removeAllDecorations() { | 643 removeAllDecorations() { |
| 644 var decorationList = this._decorations.valuesArray(); | 644 var decorationList = this._decorations.valuesArray(); |
| 645 this._decorations.clear(); | 645 this._decorations.clear(); |
| 646 decorationList.forEach(marker => | 646 decorationList.forEach( |
| 647 this.dispatchEventToListeners(Workspace.UISourceCode.Events.LineDecorati
onRemoved, marker)); | 647 marker => this.dispatchEventToListeners(Workspace.UISourceCode.Events.Li
neDecorationRemoved, marker)); |
| 648 } | 648 } |
| 649 | 649 |
| 650 /** | 650 /** |
| 651 * @param {string} type | 651 * @param {string} type |
| 652 * @return {!Set<!Workspace.UISourceCode.LineMarker>} | 652 * @return {!Set<!Workspace.UISourceCode.LineMarker>} |
| 653 */ | 653 */ |
| 654 decorationsForType(type) { | 654 decorationsForType(type) { |
| 655 return this._decorations.get(type); | 655 return this._decorations.get(type); |
| 656 } | 656 } |
| 657 }; | 657 }; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 Workspace.UISourceCodeMetadata = class { | 943 Workspace.UISourceCodeMetadata = class { |
| 944 /** | 944 /** |
| 945 * @param {?Date} modificationTime | 945 * @param {?Date} modificationTime |
| 946 * @param {?number} contentSize | 946 * @param {?number} contentSize |
| 947 */ | 947 */ |
| 948 constructor(modificationTime, contentSize) { | 948 constructor(modificationTime, contentSize) { |
| 949 this.modificationTime = modificationTime; | 949 this.modificationTime = modificationTime; |
| 950 this.contentSize = contentSize; | 950 this.contentSize = contentSize; |
| 951 } | 951 } |
| 952 }; | 952 }; |
| OLD | NEW |