Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 10874028: Rename GDataFileSystem* to DriveFileSystem* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_copy_manager.js ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698