| 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // |callback| | 668 // |callback| |
| 669 static void cancelFileTransfers(DOMString[] fileUrls, | 669 static void cancelFileTransfers(optional DOMString[] fileUrls, |
| 670 CancelFileTransfersCallback callback); | 670 CancelFileTransfersCallback callback); |
| 671 | 671 |
| 672 // Starts to copy an entry. If the source is a directory, the copy is done | 672 // Starts to copy an entry. If the source is a directory, the copy is done |
| 673 // recursively. | 673 // recursively. |
| 674 // |sourceUrl| URL of the source entry to be copied. | 674 // |sourceUrl| URL of the source entry to be copied. |
| 675 // |parent| URL of the destination directory. | 675 // |parent| URL of the destination directory. |
| 676 // |newName| Name of the new entry. It shouldn't contain '/'. | 676 // |newName| Name of the new entry. It shouldn't contain '/'. |
| 677 // |callback| Completion callback. | 677 // |callback| Completion callback. |
| 678 static void startCopy(DOMString sourceUrl, | 678 static void startCopy(DOMString sourceUrl, |
| 679 DOMString parent, | 679 DOMString parent, |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 | 802 |
| 803 static void onPreferencesChanged(); | 803 static void onPreferencesChanged(); |
| 804 | 804 |
| 805 static void onDriveConnectionStatusChanged(); | 805 static void onDriveConnectionStatusChanged(); |
| 806 | 806 |
| 807 static void onDeviceChanged(DeviceEvent event); | 807 static void onDeviceChanged(DeviceEvent event); |
| 808 | 808 |
| 809 static void onDriveSyncError(DriveSyncErrorEvent event); | 809 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 810 }; | 810 }; |
| 811 }; | 811 }; |
| OLD | NEW |