| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 shared, | 167 shared, |
| 168 externalFileUrl | 168 externalFileUrl |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 // Entry property visibility for setEntryTag(); | 171 // Entry property visibility for setEntryTag(); |
| 172 enum EntryTagVisibility { | 172 enum EntryTagVisibility { |
| 173 private, | 173 private, |
| 174 public | 174 public |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 // Source of the volume data. |
| 178 enum Source { |
| 179 file, |
| 180 device, |
| 181 network, |
| 182 system |
| 183 }; |
| 184 |
| 177 // A file task represents an action that the file manager can perform over the | 185 // A file task represents an action that the file manager can perform over the |
| 178 // currently selected files. See | 186 // currently selected files. See |
| 179 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details | 187 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details |
| 180 // about how file tasks are handled. | 188 // about how file tasks are handled. |
| 181 dictionary FileTask { | 189 dictionary FileTask { |
| 182 // The unique identifier of the task. | 190 // The unique identifier of the task. |
| 183 DOMString taskId; | 191 DOMString taskId; |
| 184 | 192 |
| 185 // Task title (ex. App name). | 193 // Task title (ex. App name). |
| 186 DOMString title; | 194 DOMString title; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 dictionary VolumeMetadata { | 291 dictionary VolumeMetadata { |
| 284 // ID of the disk volume. | 292 // ID of the disk volume. |
| 285 DOMString volumeId; | 293 DOMString volumeId; |
| 286 | 294 |
| 287 // Id the provided file system (for provided file systems). | 295 // Id the provided file system (for provided file systems). |
| 288 DOMString? fileSystemId; | 296 DOMString? fileSystemId; |
| 289 | 297 |
| 290 // Extension providing this volume (for provided file systems). | 298 // Extension providing this volume (for provided file systems). |
| 291 DOMString? extensionId; | 299 DOMString? extensionId; |
| 292 | 300 |
| 301 // Source of the volume's data. |
| 302 Source source; |
| 303 |
| 293 // Label of the volume (if available). | 304 // Label of the volume (if available). |
| 294 DOMString? volumeLabel; | 305 DOMString? volumeLabel; |
| 295 | 306 |
| 296 // Description of the profile where the volume belongs. | 307 // Description of the profile where the volume belongs. |
| 297 // TODO(hirono): Remove the property because of the design change of | 308 // TODO(hirono): Remove the property because of the design change of |
| 298 // multi-profile support. | 309 // multi-profile support. |
| 299 ProfileInfo profile; | 310 ProfileInfo profile; |
| 300 | 311 |
| 301 // The path to the mounted device, archive file or network resource. | 312 // The path to the mounted device, archive file or network resource. |
| 302 DOMString? sourcePath; | 313 DOMString? sourcePath; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 313 | 324 |
| 314 // Whether the device is parent or not (i.e. sdb rather than sdb1). | 325 // Whether the device is parent or not (i.e. sdb rather than sdb1). |
| 315 boolean? isParentDevice; | 326 boolean? isParentDevice; |
| 316 | 327 |
| 317 // Flag that specifies if volume is mounted in read-only mode. | 328 // Flag that specifies if volume is mounted in read-only mode. |
| 318 boolean isReadOnly; | 329 boolean isReadOnly; |
| 319 | 330 |
| 320 // Flag that specifies whether the volume contains media. | 331 // Flag that specifies whether the volume contains media. |
| 321 boolean hasMedia; | 332 boolean hasMedia; |
| 322 | 333 |
| 334 // Flag that specifies whether the volume is configurable. |
| 335 boolean configurable; |
| 336 |
| 323 // Additional data about mount, for example, that the filesystem is not | 337 // Additional data about mount, for example, that the filesystem is not |
| 324 // supported. | 338 // supported. |
| 325 MountCondition? mountCondition; | 339 MountCondition? mountCondition; |
| 326 | 340 |
| 327 // Context in which the volume has been mounted. | 341 // Context in which the volume has been mounted. |
| 328 MountContext? mountContext; | 342 MountContext? mountContext; |
| 329 }; | 343 }; |
| 330 | 344 |
| 331 // Payload data for mount event. | 345 // Payload data for mount event. |
| 332 dictionary MountCompletedEvent { | 346 dictionary MountCompletedEvent { |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 | 936 |
| 923 static void onPreferencesChanged(); | 937 static void onPreferencesChanged(); |
| 924 | 938 |
| 925 static void onDriveConnectionStatusChanged(); | 939 static void onDriveConnectionStatusChanged(); |
| 926 | 940 |
| 927 static void onDeviceChanged(DeviceEvent event); | 941 static void onDeviceChanged(DeviceEvent event); |
| 928 | 942 |
| 929 static void onDriveSyncError(DriveSyncErrorEvent event); | 943 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 930 }; | 944 }; |
| 931 }; | 945 }; |
| OLD | NEW |