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

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

Issue 1239043002: Add support for actions for multiple file selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better documentation. Created 5 years, 5 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 callback ResolveEntriesCallback = 625 callback ResolveEntriesCallback =
626 void([instanceOf=Entry] object[] entries); 626 void([instanceOf=Entry] object[] entries);
627 627
628 // |checksum| Result checksum. 628 // |checksum| Result checksum.
629 callback ComputeChecksumCallback = void(DOMString checksum); 629 callback ComputeChecksumCallback = void(DOMString checksum);
630 630
631 // |extensions| List of providing extensions. 631 // |extensions| List of providing extensions.
632 callback GetProvidingExtensionsCallback = void(ProvidingExtension[] extensions); 632 callback GetProvidingExtensionsCallback = void(ProvidingExtension[] extensions);
633 633
634 // |actions| List of actions. 634 // |actions| List of actions.
635 callback GetEntryActionsCallback = void(fileSystemProvider.Action[] actions); 635 callback GetCustomActionsCallback = void(fileSystemProvider.Action[] actions);
636 636
637 interface Functions { 637 interface Functions {
638 // Logout the current user for navigating to the re-authentication screen for 638 // Logout the current user for navigating to the re-authentication screen for
639 // the Google account. 639 // the Google account.
640 static void logoutUserForReauthentication(); 640 static void logoutUserForReauthentication();
641 641
642 // Cancels file selection. 642 // Cancels file selection.
643 static void cancelDialog(); 643 static void cancelDialog();
644 644
645 // Executes file browser task over selected files. 645 // Executes file browser task over selected files.
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 934
935 // Requests adding a new provided file system. If not possible, then an error 935 // Requests adding a new provided file system. If not possible, then an error
936 // via chrome.runtime.lastError is returned. 936 // via chrome.runtime.lastError is returned.
937 static void addProvidedFileSystem(DOMString extension_id, 937 static void addProvidedFileSystem(DOMString extension_id,
938 SimpleCallback callback); 938 SimpleCallback callback);
939 939
940 // Requests configuring an existing volume. If not possible, then returns 940 // Requests configuring an existing volume. If not possible, then returns
941 // an error via chrome.runtime.lastError. 941 // an error via chrome.runtime.lastError.
942 static void configureVolume(DOMString volumeId, SimpleCallback callback); 942 static void configureVolume(DOMString volumeId, SimpleCallback callback);
943 943
944 // Requests list of actions for the specified file. If not possible, then an 944 // Requests list of custom actions for the specified entries. If not possible,
945 // then an error via chrome.runtime.lastError is returned.
946 [nocompile]
947 static void getCustomActions([instanceof=Entry] object[] entries,
948 GetCustomActionsCallback callback);
949
950 // Executes a custom action for a set of entries. If not possible, then an
945 // error via chrome.runtime.lastError is returned. 951 // error via chrome.runtime.lastError is returned.
946 [nocompile] 952 [nocompile]
947 static void getEntryActions([instanceof=Entry] object entry, 953 static void executeCustomAction([instanceof=Entry] object[] entries,
948 GetEntryActionsCallback callback); 954 DOMString actionId,
949 955 SimpleCallback callback);
950 // Executes the entry action. If not possible, then an error via
951 // chrome.runtime.lastError is returned.
952 [nocompile]
953 static void executeEntryAction([instanceof=Entry] object entry,
954 DOMString actionId,
955 SimpleCallback callback);
956 }; 956 };
957 957
958 interface Events { 958 interface Events {
959 static void onMountCompleted(MountCompletedEvent event); 959 static void onMountCompleted(MountCompletedEvent event);
960 960
961 static void onFileTransfersUpdated(FileTransferStatus event); 961 static void onFileTransfersUpdated(FileTransferStatus event);
962 962
963 static void onCopyProgress(long copyId, CopyProgressStatus status); 963 static void onCopyProgress(long copyId, CopyProgressStatus status);
964 964
965 static void onDirectoryChanged(FileWatchEvent event); 965 static void onDirectoryChanged(FileWatchEvent event);
966 966
967 static void onPreferencesChanged(); 967 static void onPreferencesChanged();
968 968
969 static void onDriveConnectionStatusChanged(); 969 static void onDriveConnectionStatusChanged();
970 970
971 static void onDeviceChanged(DeviceEvent event); 971 static void onDeviceChanged(DeviceEvent event);
972 972
973 static void onDriveSyncError(DriveSyncErrorEvent event); 973 static void onDriveSyncError(DriveSyncErrorEvent event);
974 }; 974 };
975 }; 975 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698