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

Unified Diff: ui/file_manager/file_manager/common/js/volume_manager_common.js

Issue 2839863002: Add Team Drive subtree to the directory list view. (Closed)
Patch Set: Remove some unncecesary code Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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..355344f1897cb01e8207fb32de66b620d1808bb4 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,12 @@ VolumeManagerCommon.RootType = {
// Root for a drive volume.
DRIVE: 'drive',
+ // The grand root entry of Team Drives in Drive volume.
+ TEAM_DRIVES_GRAND_ROOT: 'team_drives_grand_root',
+
+ // Root directory of a Team Drive.
+ TEAM_DRIVE: 'team_drive',
+
// Root for a MTP volume.
MTP: 'mtp',
@@ -179,6 +185,7 @@ VolumeManagerCommon.getVolumeTypeFromRootType = function(rootType) {
case VolumeManagerCommon.RootType.REMOVABLE:
return VolumeManagerCommon.VolumeType.REMOVABLE;
case VolumeManagerCommon.RootType.DRIVE:
+ case VolumeManagerCommon.RootType.TEAM_DRIVE:
case VolumeManagerCommon.RootType.DRIVE_OTHER:
case VolumeManagerCommon.RootType.DRIVE_OFFLINE:
case VolumeManagerCommon.RootType.DRIVE_SHARED_WITH_ME:
@@ -259,3 +266,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;
« no previous file with comments | « ui/file_manager/file_manager/common/js/util.js ('k') | ui/file_manager/file_manager/foreground/css/file_types.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698