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