| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * FileManager constructor. | 6 * FileManager constructor. |
| 7 * | 7 * |
| 8 * FileManager objects encapsulate the functionality of the file selector | 8 * FileManager objects encapsulate the functionality of the file selector |
| 9 * dialogs, as well as the full screen file manager application (though the | 9 * dialogs, as well as the full screen file manager application (though the |
| 10 * latter is not yet implemented). | 10 * latter is not yet implemented). |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 event.error.data.code == FileError.QUOTA_EXCEEDED_ERR) { | 1149 event.error.data.code == FileError.QUOTA_EXCEEDED_ERR) { |
| 1150 this.alert.showHtml( | 1150 this.alert.showHtml( |
| 1151 strf('GDATA_SERVER_OUT_OF_SPACE_HEADER'), | 1151 strf('GDATA_SERVER_OUT_OF_SPACE_HEADER'), |
| 1152 strf('GDATA_SERVER_OUT_OF_SPACE_MESSAGE', | 1152 strf('GDATA_SERVER_OUT_OF_SPACE_MESSAGE', |
| 1153 decodeURIComponent( | 1153 decodeURIComponent( |
| 1154 event.error.data.sourceFileUrl.split('/').pop()), | 1154 event.error.data.sourceFileUrl.split('/').pop()), |
| 1155 GOOGLE_DRIVE_BUY_STORAGE)); | 1155 GOOGLE_DRIVE_BUY_STORAGE)); |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 // TODO(benchan): Currently, there is no FileWatcher emulation for | 1158 // TODO(benchan): Currently, there is no FileWatcher emulation for |
| 1159 // GDataFileSystem, so we need to manually trigger the directory rescan | 1159 // DriveFileSystem, so we need to manually trigger the directory rescan |
| 1160 // after paste operations complete. Remove this once we emulate file | 1160 // after paste operations complete. Remove this once we emulate file |
| 1161 // watching functionalities in GDataFileSystem. | 1161 // watching functionalities in DriveFileSystem. |
| 1162 if (this.isOnGData()) { | 1162 if (this.isOnGData()) { |
| 1163 if (event.reason == 'SUCCESS' || event.reason == 'ERROR' || | 1163 if (event.reason == 'SUCCESS' || event.reason == 'ERROR' || |
| 1164 event.reason == 'CANCELLED') { | 1164 event.reason == 'CANCELLED') { |
| 1165 this.directoryModel_.rescanLater(); | 1165 this.directoryModel_.rescanLater(); |
| 1166 } | 1166 } |
| 1167 } | 1167 } |
| 1168 }; | 1168 }; |
| 1169 | 1169 |
| 1170 /** | 1170 /** |
| 1171 * Handler of file manager operations. Update directory model | 1171 * Handler of file manager operations. Update directory model |
| (...skipping 3025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4197 this.defaultActionMenuItem_.taskId = taskItem.taskId; | 4197 this.defaultActionMenuItem_.taskId = taskItem.taskId; |
| 4198 } | 4198 } |
| 4199 | 4199 |
| 4200 var defaultActionSeparator = | 4200 var defaultActionSeparator = |
| 4201 this.dialogDom_.querySelector('#default-action-separator'); | 4201 this.dialogDom_.querySelector('#default-action-separator'); |
| 4202 | 4202 |
| 4203 this.defaultActionMenuItem_.hidden = !taskItem; | 4203 this.defaultActionMenuItem_.hidden = !taskItem; |
| 4204 defaultActionSeparator.hidden = !taskItem; | 4204 defaultActionSeparator.hidden = !taskItem; |
| 4205 } | 4205 } |
| 4206 })(); | 4206 })(); |
| 4207 | |
| OLD | NEW |