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

Side by Side Diff: chrome/common/extensions/api/file_manager_private.idl

Issue 2285393003: Add API to get a folder's size. (Closed)
Patch Set: Add API to get a folder's size. Created 4 years, 3 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
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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 643
644 // |checksum| Result checksum. 644 // |checksum| Result checksum.
645 callback ComputeChecksumCallback = void(DOMString checksum); 645 callback ComputeChecksumCallback = void(DOMString checksum);
646 646
647 // |extensions| List of providing extensions. 647 // |extensions| List of providing extensions.
648 callback GetProvidingExtensionsCallback = void(ProvidingExtension[] extensions); 648 callback GetProvidingExtensionsCallback = void(ProvidingExtension[] extensions);
649 649
650 // |actions| List of actions. 650 // |actions| List of actions.
651 callback GetCustomActionsCallback = void(fileSystemProvider.Action[] actions); 651 callback GetCustomActionsCallback = void(fileSystemProvider.Action[] actions);
652 652
653 // |size| result size.
654 callback GetDirectorySizeCallback = void(double size);
655
653 interface Functions { 656 interface Functions {
654 // Logout the current user for navigating to the re-authentication screen for 657 // Logout the current user for navigating to the re-authentication screen for
655 // the Google account. 658 // the Google account.
656 static void logoutUserForReauthentication(); 659 static void logoutUserForReauthentication();
657 660
658 // Cancels file selection. 661 // Cancels file selection.
659 static void cancelDialog(); 662 static void cancelDialog();
660 663
661 // Executes file browser task over selected files. 664 // Executes file browser task over selected files.
662 // |taskId| The unique identifier of task to execute. 665 // |taskId| The unique identifier of task to execute.
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 [nocompile] 965 [nocompile]
963 static void getCustomActions([instanceof=Entry] object[] entries, 966 static void getCustomActions([instanceof=Entry] object[] entries,
964 GetCustomActionsCallback callback); 967 GetCustomActionsCallback callback);
965 968
966 // Executes a custom action for a set of entries. If not possible, then an 969 // Executes a custom action for a set of entries. If not possible, then an
967 // error via chrome.runtime.lastError is returned. 970 // error via chrome.runtime.lastError is returned.
968 [nocompile] 971 [nocompile]
969 static void executeCustomAction([instanceof=Entry] object[] entries, 972 static void executeCustomAction([instanceof=Entry] object[] entries,
970 DOMString actionId, 973 DOMString actionId,
971 SimpleCallback callback); 974 SimpleCallback callback);
975
976 // Get the total size of a directory.
977 // |entry| Entry of the target directory.
978 // |callback|
979 [nocompile]
980 static void getDirectorySize([instanceof=DirectoryEntry] object entry,
981 GetDirectorySizeCallback callback);
972 }; 982 };
973 983
974 interface Events { 984 interface Events {
975 static void onMountCompleted(MountCompletedEvent event); 985 static void onMountCompleted(MountCompletedEvent event);
976 986
977 static void onFileTransfersUpdated(FileTransferStatus event); 987 static void onFileTransfersUpdated(FileTransferStatus event);
978 988
979 static void onCopyProgress(long copyId, CopyProgressStatus status); 989 static void onCopyProgress(long copyId, CopyProgressStatus status);
980 990
981 static void onDirectoryChanged(FileWatchEvent event); 991 static void onDirectoryChanged(FileWatchEvent event);
982 992
983 static void onPreferencesChanged(); 993 static void onPreferencesChanged();
984 994
985 static void onDriveConnectionStatusChanged(); 995 static void onDriveConnectionStatusChanged();
986 996
987 static void onDeviceChanged(DeviceEvent event); 997 static void onDeviceChanged(DeviceEvent event);
988 998
989 static void onDriveSyncError(DriveSyncErrorEvent event); 999 static void onDriveSyncError(DriveSyncErrorEvent event);
990 }; 1000 };
991 }; 1001 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698