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

Side by Side Diff: ui/file_manager/externs/volume_info.js

Issue 2260133002: Files: Extract VolumeInfo interface from volume_manager.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
6 * Represents each volume, such as "drive", "download directory", each "USB
7 * flush storage", or "mounted zip archive" etc.
8 * @interface
9 */
10 function VolumeInfo() {};
11
12 /** @type {VolumeManagerCommon.VolumeType} */
13 VolumeInfo.prototype.volumeType;
14
15 /** @type {string} */
16 VolumeInfo.prototype.volumeId;
17
18 /** @type {FileSystem} */
19 VolumeInfo.prototype.fileSystem;
20
21 /**
22 * Display root path. It is null before finishing to resolve the entry.
23 * @type {DirectoryEntry}
24 */
25 VolumeInfo.prototype.displayRoot;
26
27 /**
28 * The volume's fake entries such as Recent, Offline, Shared with me, etc...
29 * in Google Drive.
30 * @type {Object<!FakeEntry>}}
31 */
32 VolumeInfo.prototype.fakeEntries;
33
34 /**
35 * This represents if the mounting of the volume is successfully done or not.
36 * (If error is empty string, the mount is successfully done)
37 * @type {(string|undefined)}
38 */
39 VolumeInfo.prototype.error;
40
41 /**
42 * The type of device. (e.g. USB, SD card, DVD etc.)
43 * @type {(string|undefined)}
44 */
45 VolumeInfo.prototype.deviceType;
46
47 /**
48 * If the volume is removable, devicePath is the path of the system device this
49 * device's block is a part of. (e.g. /sys/devices/pci0000:00/.../8:0:0:0/)
50 * Otherwise, this should be empty.
51 * @type {(string|undefined)}
52 */
53 VolumeInfo.prototype.devicePath;
54
55 /** @type {boolean} */
56 VolumeInfo.prototype.isReadOnly;
57
58 /** @type {!{displayName:string, isCurrentProfile:boolean}} */
59 VolumeInfo.prototype.profile;
60
61 /**
62 * Label for the volume if the volume is either removable or a provided file
63 * system. In case of removables, if disk is a parent, then its label, else
64 * parent's label (e.g. "TransMemory").
65 * @type {string}
66 */
67 VolumeInfo.prototype.label;
68
69 /**
70 * ID of an extennsion providing this volume.
71 * @type {(string|undefined)}
72 */
73 VolumeInfo.prototype.extensionId;
74
75 /**
76 * True if the volume contains media.
77 * @type {boolean}
78 */
79 VolumeInfo.prototype.hasMedia;
80
81 /**
82 * True if the volume is configurable.
83 * See https://developer.chrome.com/apps/fileSystemProvider.
84 * @type {boolean}
85 */
86 VolumeInfo.prototype.configurable;
87
88 /**
89 * True if the volume notifies about changes via file/directory watchers.
90 * @type {boolean}
91 */
92 VolumeInfo.prototype.watchable;
93
94 /** @type {VolumeManagerCommon.Source} */
95 VolumeInfo.prototype.source;
96
97 /**
98 * Starts resolving the display root and obtains it. It may take long time for
99 * Drive. Once resolved, it is cached.
100 *
101 * @param {function(!DirectoryEntry)=} opt_onSuccess Success callback with the
102 * display root directory as an argument.
103 * @param {function(*)=} opt_onFailure Failure callback.
104 * @return {!Promise.<!DirectoryEntry>}
105 */
106 VolumeInfo.prototype.resolveDisplayRoot = function(
107 opt_onSuccess, opt_onFailure) {};
OLDNEW
« no previous file with comments | « ui/file_manager/externs/compiled_resources2.gyp ('k') | ui/file_manager/file_manager/background/js/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698