Chromium Code Reviews| 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. | 176 // Source of provided file system's data. See Provided File System API docs for |
| 177 enum VolumeSource { | 177 // details. |
| 178 // Represents a mounted file. In most cases, simply an archive. | 178 enum Source { file, device, network }; |
|
not at google - send to devlin
2015/04/23 23:16:35
When https://codereview.chromium.org/1100333006/ g
mtomasz
2015/04/24 12:16:10
Done.
| |
| 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 | 179 |
| 190 // A file task represents an action that the file manager can perform over the | 180 // A file task represents an action that the file manager can perform over the |
| 191 // currently selected files. See | 181 // currently selected files. See |
| 192 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 182 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
| 193 // about how file tasks are handled. | 183 // about how file tasks are handled. |
| 194 dictionary FileTask { | 184 dictionary FileTask { |
| 195 // The unique identifier of the task. | 185 // The unique identifier of the task. |
| 196 DOMString taskId; | 186 DOMString taskId; |
| 197 | 187 |
| 198 // Task title (ex. App name). | 188 // Task title (ex. App name). |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 293 dictionary VolumeMetadata { | 283 dictionary VolumeMetadata { |
| 294 // ID of the disk volume. | 284 // ID of the disk volume. |
| 295 DOMString volumeId; | 285 DOMString volumeId; |
| 296 | 286 |
| 297 // Id the provided file system (for provided file systems). | 287 // Id the provided file system (for provided file systems). |
| 298 DOMString? fileSystemId; | 288 DOMString? fileSystemId; |
| 299 | 289 |
| 300 // Extension providing this volume (for provided file systems). | 290 // Extension providing this volume (for provided file systems). |
| 301 DOMString? extensionId; | 291 DOMString? extensionId; |
| 302 | 292 |
| 303 // Source of the volume data. | |
| 304 VolumeSource? volumeSource; | |
| 305 | |
| 306 // Label of the volume (if available). | 293 // Label of the volume (if available). |
| 307 DOMString? volumeLabel; | 294 DOMString? volumeLabel; |
| 308 | 295 |
| 309 // Description of the profile where the volume belongs. | 296 // Description of the profile where the volume belongs. |
| 310 // TODO(hirono): Remove the property because of the design change of | 297 // TODO(hirono): Remove the property because of the design change of |
| 311 // multi-profile support. | 298 // multi-profile support. |
| 312 ProfileInfo profile; | 299 ProfileInfo profile; |
| 313 | 300 |
| 314 // The path to the mounted device, archive file or network resource. | 301 // The path to the mounted device, archive file or network resource. |
| 315 DOMString? sourcePath; | 302 DOMString? sourcePath; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 520 | 507 |
| 521 // Describes an installed providing extension. | 508 // Describes an installed providing extension. |
| 522 dictionary ProvidingExtension { | 509 dictionary ProvidingExtension { |
| 523 // ID of the providing extension. | 510 // ID of the providing extension. |
| 524 DOMString extensionId; | 511 DOMString extensionId; |
| 525 | 512 |
| 526 // Name of the providing extension. | 513 // Name of the providing extension. |
| 527 DOMString name; | 514 DOMString name; |
| 528 | 515 |
| 529 // Whether supports configuration dialog. | 516 // Whether supports configuration dialog. |
| 530 boolean canConfigure; | 517 boolean configurable; |
| 531 | 518 |
| 532 // Whether supports adding new instances. | 519 // Whether supports mounting multiple instances. |
| 533 boolean canAdd; | 520 boolean multipleMounts; |
| 521 | |
| 522 // Source of file systems' data. | |
| 523 Source source; | |
| 534 }; | 524 }; |
| 535 | 525 |
| 536 // Callback that does not take arguments. | 526 // Callback that does not take arguments. |
| 537 callback SimpleCallback = void(); | 527 callback SimpleCallback = void(); |
| 538 | 528 |
| 539 // |result| Boolean result returned by the invoked function. | 529 // |result| Boolean result returned by the invoked function. |
| 540 callback BooleanCallback = void(boolean result); | 530 callback BooleanCallback = void(boolean result); |
| 541 | 531 |
| 542 // |result| Result of the task execution. | 532 // |result| Result of the task execution. |
| 543 callback ExecuteTaskCallback = void(TaskResult result); | 533 callback ExecuteTaskCallback = void(TaskResult result); |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 932 | 922 |
| 933 static void onPreferencesChanged(); | 923 static void onPreferencesChanged(); |
| 934 | 924 |
| 935 static void onDriveConnectionStatusChanged(); | 925 static void onDriveConnectionStatusChanged(); |
| 936 | 926 |
| 937 static void onDeviceChanged(DeviceEvent event); | 927 static void onDeviceChanged(DeviceEvent event); |
| 938 | 928 |
| 939 static void onDriveSyncError(DriveSyncErrorEvent event); | 929 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 940 }; | 930 }; |
| 941 }; | 931 }; |
| OLD | NEW |