| 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. Keep in sync with file_system_provider.idl. |
| 177 enum VolumeSource { |
| 178 file, |
| 179 device, |
| 180 network |
| 181 }; |
| 182 |
| 176 // A file task represents an action that the file manager can perform over the | 183 // A file task represents an action that the file manager can perform over the |
| 177 // currently selected files. See | 184 // currently selected files. See |
| 178 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 185 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
| 179 // about how file tasks are handled. | 186 // about how file tasks are handled. |
| 180 dictionary FileTask { | 187 dictionary FileTask { |
| 181 // The unique identifier of the task. | 188 // The unique identifier of the task. |
| 182 DOMString taskId; | 189 DOMString taskId; |
| 183 | 190 |
| 184 // Task title (ex. App name). | 191 // Task title (ex. App name). |
| 185 DOMString title; | 192 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 | 280 // TODO(hirono): Remove the property because of the design change of |
| 274 // multi-profile suuport. | 281 // multi-profile suuport. |
| 275 boolean isCurrentProfile; | 282 boolean isCurrentProfile; |
| 276 }; | 283 }; |
| 277 | 284 |
| 278 // Mounted disk volume metadata. | 285 // Mounted disk volume metadata. |
| 279 dictionary VolumeMetadata { | 286 dictionary VolumeMetadata { |
| 280 // ID of the disk volume. | 287 // ID of the disk volume. |
| 281 DOMString volumeId; | 288 DOMString volumeId; |
| 282 | 289 |
| 283 // Id the provided file system (for proviided file systems). | 290 // Id the provided file system (for provided file systems). |
| 284 DOMString? fileSystemId; | 291 DOMString? fileSystemId; |
| 285 | 292 |
| 286 // Extension providing this volume (for provided file systems). | 293 // Extension providing this volume (for provided file systems). |
| 287 DOMString? extensionId; | 294 DOMString? extensionId; |
| 288 | 295 |
| 296 // Source of the volume data. |
| 297 VolumeSource? volumeSource; |
| 298 |
| 289 // Label of the volume (if available). | 299 // Label of the volume (if available). |
| 290 DOMString? volumeLabel; | 300 DOMString? volumeLabel; |
| 291 | 301 |
| 292 // Description of the profile where the volume belongs. | 302 // Description of the profile where the volume belongs. |
| 293 // TODO(hirono): Remove the property because of the design change of | 303 // TODO(hirono): Remove the property because of the design change of |
| 294 // multi-profile support. | 304 // multi-profile support. |
| 295 ProfileInfo profile; | 305 ProfileInfo profile; |
| 296 | 306 |
| 297 // The path to the mounted device, archive file or network resource. | 307 // The path to the mounted device, archive file or network resource. |
| 298 DOMString? sourcePath; | 308 DOMString? sourcePath; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 | 898 |
| 889 static void onPreferencesChanged(); | 899 static void onPreferencesChanged(); |
| 890 | 900 |
| 891 static void onDriveConnectionStatusChanged(); | 901 static void onDriveConnectionStatusChanged(); |
| 892 | 902 |
| 893 static void onDeviceChanged(DeviceEvent event); | 903 static void onDeviceChanged(DeviceEvent event); |
| 894 | 904 |
| 895 static void onDriveSyncError(DriveSyncErrorEvent event); | 905 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 896 }; | 906 }; |
| 897 }; | 907 }; |
| OLD | NEW |