| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 function innerCallback(success, newName) | 135 function innerCallback(success, newName) |
| 136 { | 136 { |
| 137 if (success) | 137 if (success) |
| 138 this._updateName(path, /** @type {string} */ (newName)); | 138 this._updateName(path, /** @type {string} */ (newName)); |
| 139 callback(success, newName); | 139 callback(success, newName); |
| 140 } | 140 } |
| 141 }, | 141 }, |
| 142 | 142 |
| 143 /** | 143 /** |
| 144 * @param {string} path | 144 * @param {string} path |
| 145 * @param {function()=} callback |
| 145 */ | 146 */ |
| 146 refresh: function(path) | 147 refresh: function(path, callback) |
| 147 { | 148 { |
| 149 if (callback) |
| 150 callback(); |
| 148 }, | 151 }, |
| 149 | 152 |
| 150 /** | 153 /** |
| 151 * @param {string} path | 154 * @param {string} path |
| 152 */ | 155 */ |
| 153 excludeFolder: function(path) | 156 excludeFolder: function(path) |
| 154 { | 157 { |
| 155 }, | 158 }, |
| 156 | 159 |
| 157 /** | 160 /** |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 return this._contentProviders; | 336 return this._contentProviders; |
| 334 }, | 337 }, |
| 335 | 338 |
| 336 reset: function() | 339 reset: function() |
| 337 { | 340 { |
| 338 this._contentProviders = {}; | 341 this._contentProviders = {}; |
| 339 this._workspace.removeProject(this._id); | 342 this._workspace.removeProject(this._id); |
| 340 this._projectStore = this._workspace.addProject(this._id, this); | 343 this._projectStore = this._workspace.addProject(this._id, this); |
| 341 } | 344 } |
| 342 } | 345 } |
| OLD | NEW |