OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * Represents each volume, such as "drive", "download directory", each "USB | 6 * Represents each volume, such as "drive", "download directory", each "USB |
7 * flush storage", or "mounted zip archive" etc. | 7 * flush storage", or "mounted zip archive" etc. |
8 * @interface | 8 * @interface |
9 */ | 9 */ |
10 function VolumeInfo() {}; | 10 function VolumeInfo() {}; |
11 | 11 |
12 /** @type {VolumeManagerCommon.VolumeType} */ | 12 /** @type {VolumeManagerCommon.VolumeType} */ |
13 VolumeInfo.prototype.volumeType; | 13 VolumeInfo.prototype.volumeType; |
14 | 14 |
15 /** @type {string} */ | 15 /** @type {string} */ |
16 VolumeInfo.prototype.volumeId; | 16 VolumeInfo.prototype.volumeId; |
17 | 17 |
18 /** @type {FileSystem} */ | 18 /** @type {FileSystem} */ |
19 VolumeInfo.prototype.fileSystem; | 19 VolumeInfo.prototype.fileSystem; |
20 | 20 |
21 /** | 21 /** |
22 * Display root path. It is null before finishing to resolve the entry. | 22 * Display root path. It is null before finishing to resolve the entry. |
23 * @type {DirectoryEntry} | 23 * @type {DirectoryEntry} |
24 */ | 24 */ |
25 VolumeInfo.prototype.displayRoot; | 25 VolumeInfo.prototype.displayRoot; |
26 | 26 |
27 /** | 27 /** |
| 28 * The display root path of Team Drives directory. It is null before finishing |
| 29 * to resolve the entry. Valid only for Drive volume. |
| 30 * @type {DirectoryEntry} |
| 31 */ |
| 32 VolumeInfo.prototype.teamDriveDisplayRoot; |
| 33 |
| 34 /** |
28 * The volume's fake entries such as Recent, Offline, Shared with me, etc... | 35 * The volume's fake entries such as Recent, Offline, Shared with me, etc... |
29 * in Google Drive. | 36 * in Google Drive. |
30 * @type {Object<!FakeEntry>}} | 37 * @type {Object<!FakeEntry>}} |
31 */ | 38 */ |
32 VolumeInfo.prototype.fakeEntries; | 39 VolumeInfo.prototype.fakeEntries; |
33 | 40 |
34 /** | 41 /** |
35 * This represents if the mounting of the volume is successfully done or not. | 42 * This represents if the mounting of the volume is successfully done or not. |
36 * (If error is empty string, the mount is successfully done) | 43 * (If error is empty string, the mount is successfully done) |
37 * @type {(string|undefined)} | 44 * @type {(string|undefined)} |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 * Starts resolving the display root and obtains it. It may take long time for | 105 * Starts resolving the display root and obtains it. It may take long time for |
99 * Drive. Once resolved, it is cached. | 106 * Drive. Once resolved, it is cached. |
100 * | 107 * |
101 * @param {function(!DirectoryEntry)=} opt_onSuccess Success callback with the | 108 * @param {function(!DirectoryEntry)=} opt_onSuccess Success callback with the |
102 * display root directory as an argument. | 109 * display root directory as an argument. |
103 * @param {function(*)=} opt_onFailure Failure callback. | 110 * @param {function(*)=} opt_onFailure Failure callback. |
104 * @return {!Promise.<!DirectoryEntry>} | 111 * @return {!Promise.<!DirectoryEntry>} |
105 */ | 112 */ |
106 VolumeInfo.prototype.resolveDisplayRoot = function( | 113 VolumeInfo.prototype.resolveDisplayRoot = function( |
107 opt_onSuccess, opt_onFailure) {}; | 114 opt_onSuccess, opt_onFailure) {}; |
OLD | NEW |