Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / common / extensions / api / file_manager_private_internal.idl
blob2ed52d425393a67c03e1f2c900695348ebea6752
1 // Copyright 2014 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.
5 // Internal, used by fileManagerPrivate's custom bindings.
6 [platforms=("chromeos"),
7 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_private_api_functions.h"]
8 namespace fileManagerPrivateInternal {
9 // Entry information that renderers need to create an Entry instance.
10 dictionary EntryDescription {
11 DOMString fileSystemName;
12 DOMString fileSystemRoot;
13 DOMString fileFullPath;
14 boolean fileIsDirectory;
17 callback SimpleCallback = void();
18 callback ResolveIsolatedEntriesCallback = void(EntryDescription[] entries);
19 callback GetEntryPropertiesCallback = void(
20 fileManagerPrivate.EntryProperties[] entryProperties);
21 callback AddFileWatchCallback = void(optional boolean success);
22 callback RemoveFileWatchCallback = void(optional boolean success);
23 callback GetEntryActionsCallback = void(fileSystemProvider.Action[] actions);
24 callback ComputeChecksumCallback = void(DOMString checksum);
25 callback GetMimeTypeCallback = void(DOMString result);
26 callback ExecuteTaskCallback = void(fileManagerPrivate.TaskResult result);
27 callback GetFileTasksCallback = void(fileManagerPrivate.FileTask[] tasks);
28 callback GetUrlCallback = void(DOMString url);
29 callback GetUrlCallback = void(DOMString url);
30 callback StartCopyCallback = void(long copyId);
31 callback ZipSelectionCallback = void(optional boolean success);
32 callback ValidatePathNameLengthCallback = void(boolean result);
34 interface Functions {
35 static void resolveIsolatedEntries(DOMString[] urls,
36 ResolveIsolatedEntriesCallback callback);
37 static void getEntryProperties(
38 DOMString[] urls,
39 fileManagerPrivate.EntryPropertyName[] names,
40 GetEntryPropertiesCallback callback);
41 static void addFileWatch(
42 DOMString url,
43 AddFileWatchCallback callback);
44 static void removeFileWatch(
45 DOMString url,
46 RemoveFileWatchCallback callback);
47 static void getEntryActions(DOMString url,
48 GetEntryActionsCallback callback);
49 static void executeEntryAction(DOMString url,
50 DOMString actionId,
51 SimpleCallback callback);
52 static void computeChecksum(DOMString url,
53 ComputeChecksumCallback callback);
54 static void getMimeType(DOMString url,
55 GetMimeTypeCallback callback);
56 static void pinDriveFile(DOMString url,
57 boolean pin,
58 SimpleCallback callback);
59 static void executeTask(DOMString taskId,
60 DOMString[] urls,
61 ExecuteTaskCallback callback);
62 static void setDefaultTask(DOMString taskId,
63 DOMString[] urls,
64 DOMString[] mimeTypes,
65 SimpleCallback callback);
66 static void getFileTasks(DOMString[] urls,
67 GetFileTasksCallback callback);
68 static void getShareUrl(DOMString url, GetUrlCallback callback);
69 static void getDownloadUrl(DOMString url, GetUrlCallback callback);
70 static void requestDriveShare(DOMString url,
71 fileManagerPrivate.DriveShareType shareType,
72 SimpleCallback callback);
73 static void setEntryTag(DOMString url,
74 fileManagerPrivate.EntryTagVisibility visibility,
75 DOMString key,
76 DOMString value,
77 SimpleCallback callback);
78 static void cancelFileTransfers(DOMString[] urls,
79 optional SimpleCallback callback);
80 static void startCopy(DOMString url,
81 DOMString parentUrl,
82 DOMString newName,
83 StartCopyCallback callback);
84 static void zipSelection(DOMString parentUrl,
85 DOMString[] urls,
86 DOMString destName,
87 ZipSelectionCallback callback);
88 static void validatePathNameLength(
89 DOMString parentUrl,
90 DOMString name,
91 ValidatePathNameLengthCallback callback);