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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 // |runningProfile| ID of the profile that runs the application instance. | 556 // |runningProfile| ID of the profile that runs the application instance. |
557 // |showingProfile| ID of the profile that shows the application window. | 557 // |showingProfile| ID of the profile that shows the application window. |
558 callback GetProfilesCallback = void(ProfileInfo[] profiles, | 558 callback GetProfilesCallback = void(ProfileInfo[] profiles, |
559 DOMString runningProfile, | 559 DOMString runningProfile, |
560 DOMString displayProfile); | 560 DOMString displayProfile); |
561 | 561 |
562 // |entryUrl| URL of an entry in a normal file system. | 562 // |entryUrl| URL of an entry in a normal file system. |
563 callback ResolveEntriesCallback = | 563 callback ResolveEntriesCallback = |
564 void([instanceOf=FileEntry] object[] entries); | 564 void([instanceOf=FileEntry] object[] entries); |
565 | 565 |
| 566 // |checksum| Result checksum. |
| 567 callback ComputeChecksumCallback = void(DOMString checksum); |
| 568 |
566 interface Functions { | 569 interface Functions { |
567 // Logout the current user for navigating to the re-authentication screen for | 570 // Logout the current user for navigating to the re-authentication screen for |
568 // the Google account. | 571 // the Google account. |
569 static void logoutUserForReauthentication(); | 572 static void logoutUserForReauthentication(); |
570 | 573 |
571 // Cancels file selection. | 574 // Cancels file selection. |
572 static void cancelDialog(); | 575 static void cancelDialog(); |
573 | 576 |
574 // Executes file browser task over selected files. | 577 // Executes file browser task over selected files. |
575 // |taskId| The unique identifier of task to execute. | 578 // |taskId| The unique identifier of task to execute. |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 // Obtains a list of profiles that are logged-in. | 815 // Obtains a list of profiles that are logged-in. |
813 static void getProfiles(GetProfilesCallback callback); | 816 static void getProfiles(GetProfilesCallback callback); |
814 | 817 |
815 // Moves the window to other user's desktop. | 818 // Moves the window to other user's desktop. |
816 static void visitDesktop(DOMString profileId, | 819 static void visitDesktop(DOMString profileId, |
817 optional SimpleCallback callback); | 820 optional SimpleCallback callback); |
818 | 821 |
819 // Opens inspector window. | 822 // Opens inspector window. |
820 // |type| InspectionType which specifies how to open inspector. | 823 // |type| InspectionType which specifies how to open inspector. |
821 static void openInspector(InspectionType type); | 824 static void openInspector(InspectionType type); |
| 825 |
| 826 // Computes an MD5 checksum for the given file. |
| 827 // |fileURL| The URL of the file to checksum. |
| 828 // |callback| |
| 829 static void computeChecksum(DOMString fileURL, |
| 830 ComputeChecksumCallback callback); |
822 }; | 831 }; |
823 | 832 |
824 interface Events { | 833 interface Events { |
825 static void onMountCompleted(MountCompletedEvent event); | 834 static void onMountCompleted(MountCompletedEvent event); |
826 | 835 |
827 static void onFileTransfersUpdated(FileTransferStatus event); | 836 static void onFileTransfersUpdated(FileTransferStatus event); |
828 | 837 |
829 static void onCopyProgress(long copyId, CopyProgressStatus status); | 838 static void onCopyProgress(long copyId, CopyProgressStatus status); |
830 | 839 |
831 static void onDirectoryChanged(FileWatchEvent event); | 840 static void onDirectoryChanged(FileWatchEvent event); |
832 | 841 |
833 static void onPreferencesChanged(); | 842 static void onPreferencesChanged(); |
834 | 843 |
835 static void onDriveConnectionStatusChanged(); | 844 static void onDriveConnectionStatusChanged(); |
836 | 845 |
837 static void onDeviceChanged(DeviceEvent event); | 846 static void onDeviceChanged(DeviceEvent event); |
838 | 847 |
839 static void onDriveSyncError(DriveSyncErrorEvent event); | 848 static void onDriveSyncError(DriveSyncErrorEvent event); |
840 }; | 849 }; |
841 }; | 850 }; |
OLD | NEW |