Index: ui/file_manager/file_manager/common/js/volume_manager_common.js |
diff --git a/ui/file_manager/file_manager/common/js/volume_manager_common.js b/ui/file_manager/file_manager/common/js/volume_manager_common.js |
index 6c5e9420762e2ee1ef8bc90ea29ae07c650d5f25..35c4b451f51395f29d8c3f64a5b7fa5fd5ad72e0 100644 |
--- a/ui/file_manager/file_manager/common/js/volume_manager_common.js |
+++ b/ui/file_manager/file_manager/common/js/volume_manager_common.js |
@@ -37,6 +37,9 @@ VolumeManagerCommon.RootType = { |
// Root for a drive volume. |
DRIVE: 'drive', |
+ // Root for all Team Drives. |
+ TEAM_DRIVES: 'team_drives', |
+ |
// Root for a MTP volume. |
MTP: 'mtp', |
@@ -62,6 +65,29 @@ VolumeManagerCommon.RootType = { |
Object.freeze(VolumeManagerCommon.RootType); |
/** |
+ * Type of an entry. |
+ * @enum {string} |
+ * @const |
+ */ |
+VolumeManagerCommon.EntryType = { |
+ // The root entry of a volume. |
+ VOLUME_ROOT: 'volume_root', |
+ |
+ // Fake entry. (e.g. Special search roots) |
+ FAKE_ENTRY: 'fake_entry', |
+ |
+ // The grand root entry of Team Drives in Drive volume. |
+ TEAM_DRIVES_GRAND_ROOT: 'team_drives_grand_root', |
+ |
+ // The grand root entry of Team Drives in Drive volume. |
+ TEAM_DRIVE_ROOT: 'team_drive_root', |
+ |
+ // Other entries, like a normal directory in Drive and Downloads. |
+ OTHER: 'other' |
+}; |
+Object.freeze(VolumeManagerCommon.EntryType); |
+ |
+/** |
* Error type of VolumeManager. |
* @enum {string} |
* @const |
@@ -179,6 +205,7 @@ VolumeManagerCommon.getVolumeTypeFromRootType = function(rootType) { |
case VolumeManagerCommon.RootType.REMOVABLE: |
return VolumeManagerCommon.VolumeType.REMOVABLE; |
case VolumeManagerCommon.RootType.DRIVE: |
+ case VolumeManagerCommon.RootType.TEAM_DRIVES: |
case VolumeManagerCommon.RootType.DRIVE_OTHER: |
case VolumeManagerCommon.RootType.DRIVE_OFFLINE: |
case VolumeManagerCommon.RootType.DRIVE_SHARED_WITH_ME: |
@@ -259,3 +286,7 @@ var FakeEntry; |
* @const {string} |
*/ |
VolumeManagerCommon.VOLUME_ALREADY_MOUNTED = 'volume_already_mounted'; |
+ |
+VolumeManagerCommon.TEAM_DRIVES_DIRECTORY_NAME = 'team_drives'; |
+VolumeManagerCommon.TEAM_DRIVES_DIRECTORY_PATH = |
+ '/' + VolumeManagerCommon.TEAM_DRIVES_DIRECTORY_NAME; |