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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 // Unmounts a mounted resource. | 658 // Unmounts a mounted resource. |
659 // |volumeId| An ID of the volume. | 659 // |volumeId| An ID of the volume. |
660 static void removeMount(DOMString volumeId); | 660 static void removeMount(DOMString volumeId); |
661 | 661 |
662 // Get the list of mounted volumes. | 662 // Get the list of mounted volumes. |
663 // |callback| | 663 // |callback| |
664 static void getVolumeMetadataList(GetVolumeMetadataListCallback callback); | 664 static void getVolumeMetadataList(GetVolumeMetadataListCallback callback); |
665 | 665 |
666 // Cancels ongoing file transfers for selected files. | 666 // Cancels ongoing file transfers for selected files. |
667 // |fileUrls| Array of files for which ongoing transfer should be canceled. | 667 // |fileUrls| Array of files for which ongoing transfer should be canceled. |
668 // If this is absent, all jobs are canceled. | 668 // If this is absent, all jobs are canceled. |
669 // |callback| | 669 // |callback| Completion callback of the cancel. |
670 static void cancelFileTransfers(optional DOMString[] fileUrls, | 670 static void cancelFileTransfers( |
671 CancelFileTransfersCallback callback); | 671 optional DOMString[] fileUrls, |
| 672 optional CancelFileTransfersCallback callback); |
672 | 673 |
673 // Starts to copy an entry. If the source is a directory, the copy is done | 674 // Starts to copy an entry. If the source is a directory, the copy is done |
674 // recursively. | 675 // recursively. |
675 // |sourceUrl| URL of the source entry to be copied. | 676 // |sourceUrl| URL of the source entry to be copied. |
676 // |parent| URL of the destination directory. | 677 // |parent| URL of the destination directory. |
677 // |newName| Name of the new entry. It shouldn't contain '/'. | 678 // |newName| Name of the new entry. It shouldn't contain '/'. |
678 // |callback| Completion callback. | 679 // |callback| Completion callback. |
679 static void startCopy(DOMString sourceUrl, | 680 static void startCopy(DOMString sourceUrl, |
680 DOMString parent, | 681 DOMString parent, |
681 DOMString newName, | 682 DOMString newName, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 | 804 |
804 static void onPreferencesChanged(); | 805 static void onPreferencesChanged(); |
805 | 806 |
806 static void onDriveConnectionStatusChanged(); | 807 static void onDriveConnectionStatusChanged(); |
807 | 808 |
808 static void onDeviceChanged(DeviceEvent event); | 809 static void onDeviceChanged(DeviceEvent event); |
809 | 810 |
810 static void onDriveSyncError(DriveSyncErrorEvent event); | 811 static void onDriveSyncError(DriveSyncErrorEvent event); |
811 }; | 812 }; |
812 }; | 813 }; |
OLD | NEW |