Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // fileManagerPrivate API. | 5 // fileManagerPrivate API. |
| 6 // This is a private API used by the file browser of ChromeOS. | 6 // This is a private API used by the file browser of ChromeOS. |
| 7 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
| 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr ivate_api_functions.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr ivate_api_functions.h"] |
| 9 namespace fileManagerPrivate { | 9 namespace fileManagerPrivate { |
| 10 // Type of the mounted volume. | 10 // Type of the mounted volume. |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 962 [nocompile] | 962 [nocompile] |
| 963 static void getCustomActions([instanceof=Entry] object[] entries, | 963 static void getCustomActions([instanceof=Entry] object[] entries, |
| 964 GetCustomActionsCallback callback); | 964 GetCustomActionsCallback callback); |
| 965 | 965 |
| 966 // Executes a custom action for a set of entries. If not possible, then an | 966 // Executes a custom action for a set of entries. If not possible, then an |
| 967 // error via chrome.runtime.lastError is returned. | 967 // error via chrome.runtime.lastError is returned. |
| 968 [nocompile] | 968 [nocompile] |
| 969 static void executeCustomAction([instanceof=Entry] object[] entries, | 969 static void executeCustomAction([instanceof=Entry] object[] entries, |
| 970 DOMString actionId, | 970 DOMString actionId, |
| 971 SimpleCallback callback); | 971 SimpleCallback callback); |
| 972 | |
| 973 // Get the total size of a directory. | |
| 974 // |entry| Entry of the target directory. | |
| 975 // |callback| | |
| 976 [nocompile] | |
| 977 static void getDirectorySize([instanceof=DirectoryEntry] object entry, | |
| 978 SimpleCallback callback); | |
|
fukino
2016/08/30 05:17:06
We need to receive the directory size, so please d
harukam
2016/08/30 06:33:42
Acknowledged.
| |
| 972 }; | 979 }; |
| 973 | 980 |
| 974 interface Events { | 981 interface Events { |
| 975 static void onMountCompleted(MountCompletedEvent event); | 982 static void onMountCompleted(MountCompletedEvent event); |
| 976 | 983 |
| 977 static void onFileTransfersUpdated(FileTransferStatus event); | 984 static void onFileTransfersUpdated(FileTransferStatus event); |
| 978 | 985 |
| 979 static void onCopyProgress(long copyId, CopyProgressStatus status); | 986 static void onCopyProgress(long copyId, CopyProgressStatus status); |
| 980 | 987 |
| 981 static void onDirectoryChanged(FileWatchEvent event); | 988 static void onDirectoryChanged(FileWatchEvent event); |
| 982 | 989 |
| 983 static void onPreferencesChanged(); | 990 static void onPreferencesChanged(); |
| 984 | 991 |
| 985 static void onDriveConnectionStatusChanged(); | 992 static void onDriveConnectionStatusChanged(); |
| 986 | 993 |
| 987 static void onDeviceChanged(DeviceEvent event); | 994 static void onDeviceChanged(DeviceEvent event); |
| 988 | 995 |
| 989 static void onDriveSyncError(DriveSyncErrorEvent event); | 996 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 990 }; | 997 }; |
| 991 }; | 998 }; |
| OLD | NEW |