| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace":"fileBrowserPrivate", | 7 "namespace":"fileBrowserPrivate", |
| 8 "nodoc": "true", | 8 "nodoc": "true", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 "description": "Path that sourcePath was mounted to." | 252 "description": "Path that sourcePath was mounted to." |
| 253 }, | 253 }, |
| 254 "mountType": { | 254 "mountType": { |
| 255 "type": "string", | 255 "type": "string", |
| 256 "enum": ["device", "file", "network", "gdata"], | 256 "enum": ["device", "file", "network", "gdata"], |
| 257 "description": "Type of the mount." | 257 "description": "Type of the mount." |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 }, | 260 }, |
| 261 { | 261 { |
| 262 "id": "FileTransferStatus", | |
| 263 "type": "object", | |
| 264 "description": "Payload data for file transfer status updates.", | |
| 265 "properties": { | |
| 266 "fileUrl": { | |
| 267 "type": "string", | |
| 268 "description": "URL of file that is being transfered." | |
| 269 }, | |
| 270 "transferState": { | |
| 271 "type": "string", | |
| 272 "enum": ["started", "in_progress", "completed", "failed"], | |
| 273 "description": "File transfer progress state." | |
| 274 }, | |
| 275 "transferType": { | |
| 276 "type": "string", | |
| 277 "enum": ["upload", "download"], | |
| 278 "description": "Defines file transfer direction." | |
| 279 }, | |
| 280 "processed": { | |
| 281 "type": "integer", | |
| 282 "optional": true, | |
| 283 "description": "Completed portion of the transfer operation." | |
| 284 }, | |
| 285 "total": { | |
| 286 "type": "integer", | |
| 287 "optional": true, | |
| 288 "description": "Total size (cost) of transfer operation." | |
| 289 } | |
| 290 } | |
| 291 }, | |
| 292 { | |
| 293 "id": "FileWatchEvent", | 262 "id": "FileWatchEvent", |
| 294 "type": "object", | 263 "type": "object", |
| 295 "description": "Payload data for disk mount / unmount event.", | 264 "description": "Payload data for disk mount / unmount event.", |
| 296 "properties": { | 265 "properties": { |
| 297 "eventType": { | 266 "eventType": { |
| 298 "type": "string", | 267 "type": "string", |
| 299 "enum": ["changed", "error"], | 268 "enum": ["changed", "error"], |
| 300 "description": "Specifies type of event that is raised." | 269 "description": "Specifies type of event that is raised." |
| 301 }, | 270 }, |
| 302 "fileUrl": { | 271 "fileUrl": { |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 "name" : "mountPoints", | 645 "name" : "mountPoints", |
| 677 "type": "array", | 646 "type": "array", |
| 678 "items": {"$ref": "MountPointInfo"}, | 647 "items": {"$ref": "MountPointInfo"}, |
| 679 "description": "The list of MountPointInfo representing mounted
devices." | 648 "description": "The list of MountPointInfo representing mounted
devices." |
| 680 } | 649 } |
| 681 ] | 650 ] |
| 682 } | 651 } |
| 683 ] | 652 ] |
| 684 }, | 653 }, |
| 685 { | 654 { |
| 686 "name": "getFileTransfers", | |
| 687 "description": "Get the list of ongoing file transfer operations.", | |
| 688 "parameters": [ | |
| 689 { | |
| 690 "name": "callback", | |
| 691 "type": "function", | |
| 692 "parameters": [ | |
| 693 { | |
| 694 "name" : "fileTransfers", | |
| 695 "type": "array", | |
| 696 "items": {"$ref": "FileTransferStatus"}, | |
| 697 "description": "The list of FileTransferStatus representing ongo
ing file transfers." | |
| 698 } | |
| 699 ] | |
| 700 } | |
| 701 ] | |
| 702 }, | |
| 703 { | |
| 704 "name": "getSizeStats", | 655 "name": "getSizeStats", |
| 705 "description": "Retrieves total and remaining size of a mount point.", | 656 "description": "Retrieves total and remaining size of a mount point.", |
| 706 "parameters": [ | 657 "parameters": [ |
| 707 { | 658 { |
| 708 "name": "mountPath", | 659 "name": "mountPath", |
| 709 "type": "string", | 660 "type": "string", |
| 710 "description": "Mount point path." | 661 "description": "Mount point path." |
| 711 }, | 662 }, |
| 712 { | 663 { |
| 713 "name": "callback", | 664 "name": "callback", |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 "description": "Fired when mount event is detected.", | 726 "description": "Fired when mount event is detected.", |
| 776 "parameters": [ | 727 "parameters": [ |
| 777 { | 728 { |
| 778 "$ref": "MountCompletedEvent", | 729 "$ref": "MountCompletedEvent", |
| 779 "name": "event", | 730 "name": "event", |
| 780 "description": "MountCompleted event information." | 731 "description": "MountCompleted event information." |
| 781 } | 732 } |
| 782 ] | 733 ] |
| 783 }, | 734 }, |
| 784 { | 735 { |
| 785 "name": "onFileTransfersUpdated", | |
| 786 "type": "function", | |
| 787 "description": "Fired when file transfers with remote file system are in
progress.", | |
| 788 "parameters": [ | |
| 789 { | |
| 790 "type": "array", | |
| 791 "items": {"$ref": "FileTransferStatus"}, | |
| 792 "name": "event", | |
| 793 "description": "List of ongoing file statuses for ongoing transfer o
perations." | |
| 794 } | |
| 795 ] | |
| 796 }, | |
| 797 { | |
| 798 "name": "onFileChanged", | 736 "name": "onFileChanged", |
| 799 "type": "function", | 737 "type": "function", |
| 800 "description": "Fired when watched file change event is detected.", | 738 "description": "Fired when watched file change event is detected.", |
| 801 "parameters": [ | 739 "parameters": [ |
| 802 { | 740 { |
| 803 "$ref": "FileWatchEvent", | 741 "$ref": "FileWatchEvent", |
| 804 "name": "event", | 742 "name": "event", |
| 805 "description": "File watch event information." | 743 "description": "File watch event information." |
| 806 } | 744 } |
| 807 ] | 745 ] |
| 808 } | 746 } |
| 809 ] | 747 ] |
| 810 } | 748 } |
| 811 ] | 749 ] |
| OLD | NEW |