| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 shared, | 166 shared, |
| 167 externalFileUrl | 167 externalFileUrl |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 // Entry property visibility for setEntryTag(); | 170 // Entry property visibility for setEntryTag(); |
| 171 enum EntryTagVisibility { | 171 enum EntryTagVisibility { |
| 172 private, | 172 private, |
| 173 public | 173 public |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 // Source of the volume data. |
| 177 enum VolumeSource { |
| 178 // Represents a mounted file. In most cases, simply an archive. |
| 179 file, |
| 180 |
| 181 // Representing a device, eg. an MTP device. Also, used for Downloads as it's |
| 182 // containing files stored on the Chrome OS device. |
| 183 device, |
| 184 |
| 185 // Used for volumes which contain files on a remote machine, eg. Drive or |
| 186 // cloud services implemented via the File System Provider API. |
| 187 network |
| 188 }; |
| 189 |
| 176 // A file task represents an action that the file manager can perform over the | 190 // A file task represents an action that the file manager can perform over the |
| 177 // currently selected files. See | 191 // currently selected files. See |
| 178 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 192 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
| 179 // about how file tasks are handled. | 193 // about how file tasks are handled. |
| 180 dictionary FileTask { | 194 dictionary FileTask { |
| 181 // The unique identifier of the task. | 195 // The unique identifier of the task. |
| 182 DOMString taskId; | 196 DOMString taskId; |
| 183 | 197 |
| 184 // Task title (ex. App name). | 198 // Task title (ex. App name). |
| 185 DOMString title; | 199 DOMString title; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // TODO(hirono): Remove the property because of the design change of | 287 // TODO(hirono): Remove the property because of the design change of |
| 274 // multi-profile suuport. | 288 // multi-profile suuport. |
| 275 boolean isCurrentProfile; | 289 boolean isCurrentProfile; |
| 276 }; | 290 }; |
| 277 | 291 |
| 278 // Mounted disk volume metadata. | 292 // Mounted disk volume metadata. |
| 279 dictionary VolumeMetadata { | 293 dictionary VolumeMetadata { |
| 280 // ID of the disk volume. | 294 // ID of the disk volume. |
| 281 DOMString volumeId; | 295 DOMString volumeId; |
| 282 | 296 |
| 283 // Id the provided file system (for proviided file systems). | 297 // Id the provided file system (for provided file systems). |
| 284 DOMString? fileSystemId; | 298 DOMString? fileSystemId; |
| 285 | 299 |
| 286 // Extension providing this volume (for provided file systems). | 300 // Extension providing this volume (for provided file systems). |
| 287 DOMString? extensionId; | 301 DOMString? extensionId; |
| 288 | 302 |
| 303 // Source of the volume data. |
| 304 VolumeSource? volumeSource; |
| 305 |
| 289 // Label of the volume (if available). | 306 // Label of the volume (if available). |
| 290 DOMString? volumeLabel; | 307 DOMString? volumeLabel; |
| 291 | 308 |
| 292 // Description of the profile where the volume belongs. | 309 // Description of the profile where the volume belongs. |
| 293 // TODO(hirono): Remove the property because of the design change of | 310 // TODO(hirono): Remove the property because of the design change of |
| 294 // multi-profile support. | 311 // multi-profile support. |
| 295 ProfileInfo profile; | 312 ProfileInfo profile; |
| 296 | 313 |
| 297 // The path to the mounted device, archive file or network resource. | 314 // The path to the mounted device, archive file or network resource. |
| 298 DOMString? sourcePath; | 315 DOMString? sourcePath; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 | 905 |
| 889 static void onPreferencesChanged(); | 906 static void onPreferencesChanged(); |
| 890 | 907 |
| 891 static void onDriveConnectionStatusChanged(); | 908 static void onDriveConnectionStatusChanged(); |
| 892 | 909 |
| 893 static void onDeviceChanged(DeviceEvent event); | 910 static void onDeviceChanged(DeviceEvent event); |
| 894 | 911 |
| 895 static void onDriveSyncError(DriveSyncErrorEvent event); | 912 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 896 }; | 913 }; |
| 897 }; | 914 }; |
| OLD | NEW |