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