| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 empty | 136 empty |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 // Drive share type. | 139 // Drive share type. |
| 140 enum DriveShareType { | 140 enum DriveShareType { |
| 141 can_edit, | 141 can_edit, |
| 142 can_comment, | 142 can_comment, |
| 143 can_view | 143 can_view |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 // ImageSet that represents multi-scale images. | |
| 147 dictionary ImageSet { | |
| 148 // 1x scale URL. | |
| 149 DOMString scale1xUrl; | |
| 150 // 2x scale URL. | |
| 151 DOMString scale2xUrl; | |
| 152 }; | |
| 153 | |
| 154 // A file task represents an action that the file manager can perform over the | 146 // A file task represents an action that the file manager can perform over the |
| 155 // currently selected files. See | 147 // currently selected files. See |
| 156 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 148 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
| 157 // about how file tasks are handled. | 149 // about how file tasks are handled. |
| 158 dictionary FileTask { | 150 dictionary FileTask { |
| 159 // The unique identifier of the task. | 151 // The unique identifier of the task. |
| 160 DOMString taskId; | 152 DOMString taskId; |
| 161 | 153 |
| 162 // Task title (ex. App name). | 154 // Task title (ex. App name). |
| 163 DOMString title; | 155 DOMString title; |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 // |item_id| The id of the item to install. | 810 // |item_id| The id of the item to install. |
| 819 // |silentInstallation| False to show installation prompt. True not to show. | 811 // |silentInstallation| False to show installation prompt. True not to show. |
| 820 // |callback| | 812 // |callback| |
| 821 static void installWebstoreItem(DOMString itemId, | 813 static void installWebstoreItem(DOMString itemId, |
| 822 boolean silentInstallation, | 814 boolean silentInstallation, |
| 823 SimpleCallback callback); | 815 SimpleCallback callback); |
| 824 | 816 |
| 825 // Obtains a list of profiles that are logged-in. | 817 // Obtains a list of profiles that are logged-in. |
| 826 static void getProfiles(GetProfilesCallback callback); | 818 static void getProfiles(GetProfilesCallback callback); |
| 827 | 819 |
| 828 // Moves the window to other user's desktop. | |
| 829 static void visitDesktop(DOMString profileId, | |
| 830 optional SimpleCallback callback); | |
| 831 | |
| 832 // Opens inspector window. | 820 // Opens inspector window. |
| 833 // |type| InspectionType which specifies how to open inspector. | 821 // |type| InspectionType which specifies how to open inspector. |
| 834 static void openInspector(InspectionType type); | 822 static void openInspector(InspectionType type); |
| 835 | 823 |
| 836 // Computes an MD5 checksum for the given file. | 824 // Computes an MD5 checksum for the given file. |
| 837 // |fileURL| The URL of the file to checksum. | 825 // |fileURL| The URL of the file to checksum. |
| 838 // |callback| | 826 // |callback| |
| 839 static void computeChecksum(DOMString fileURL, | 827 static void computeChecksum(DOMString fileURL, |
| 840 ComputeChecksumCallback callback); | 828 ComputeChecksumCallback callback); |
| 841 }; | 829 }; |
| 842 | 830 |
| 843 interface Events { | 831 interface Events { |
| 844 static void onMountCompleted(MountCompletedEvent event); | 832 static void onMountCompleted(MountCompletedEvent event); |
| 845 | 833 |
| 846 static void onFileTransfersUpdated(FileTransferStatus event); | 834 static void onFileTransfersUpdated(FileTransferStatus event); |
| 847 | 835 |
| 848 static void onCopyProgress(long copyId, CopyProgressStatus status); | 836 static void onCopyProgress(long copyId, CopyProgressStatus status); |
| 849 | 837 |
| 850 static void onDirectoryChanged(FileWatchEvent event); | 838 static void onDirectoryChanged(FileWatchEvent event); |
| 851 | 839 |
| 852 static void onPreferencesChanged(); | 840 static void onPreferencesChanged(); |
| 853 | 841 |
| 854 static void onDriveConnectionStatusChanged(); | 842 static void onDriveConnectionStatusChanged(); |
| 855 | 843 |
| 856 static void onDeviceChanged(DeviceEvent event); | 844 static void onDeviceChanged(DeviceEvent event); |
| 857 | 845 |
| 858 static void onDriveSyncError(DriveSyncErrorEvent event); | 846 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 859 }; | 847 }; |
| 860 }; | 848 }; |
| OLD | NEW |