| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 /** | 30 /** |
| 31 * @interface | 31 * @interface |
| 32 */ | 32 */ |
| 33 Common.Progress = function() {}; | 33 Common.Progress = function() {}; |
| 34 | 34 |
| 35 Common.Progress.prototype = { | 35 Common.Progress.prototype = { |
| 36 /** | 36 /** |
| 37 * @param {number} totalWork | 37 * @param {number} totalWork |
| 38 */ | 38 */ |
| 39 setTotalWork: function(totalWork) {}, | 39 setTotalWork(totalWork) {}, |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * @param {string} title | 42 * @param {string} title |
| 43 */ | 43 */ |
| 44 setTitle: function(title) {}, | 44 setTitle(title) {}, |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * @param {number} worked | 47 * @param {number} worked |
| 48 * @param {string=} title | 48 * @param {string=} title |
| 49 */ | 49 */ |
| 50 setWorked: function(worked, title) {}, | 50 setWorked(worked, title) {}, |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @param {number=} worked | 53 * @param {number=} worked |
| 54 */ | 54 */ |
| 55 worked: function(worked) {}, | 55 worked(worked) {}, |
| 56 | 56 |
| 57 done: function() {}, | 57 done() {}, |
| 58 | 58 |
| 59 /** | 59 /** |
| 60 * @return {boolean} | 60 * @return {boolean} |
| 61 */ | 61 */ |
| 62 isCanceled: function() { | 62 isCanceled() { |
| 63 return false; | 63 return false; |
| 64 }, | 64 }, |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * @unrestricted | 68 * @unrestricted |
| 69 */ | 69 */ |
| 70 Common.CompositeProgress = class { | 70 Common.CompositeProgress = class { |
| 71 /** | 71 /** |
| 72 * @param {!Common.Progress} parent | 72 * @param {!Common.Progress} parent |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 /** | 241 /** |
| 242 * @override | 242 * @override |
| 243 * @param {number=} worked | 243 * @param {number=} worked |
| 244 */ | 244 */ |
| 245 worked(worked) { | 245 worked(worked) { |
| 246 if (this._delegate) | 246 if (this._delegate) |
| 247 this._delegate.worked(worked); | 247 this._delegate.worked(worked); |
| 248 } | 248 } |
| 249 }; | 249 }; |
| OLD | NEW |