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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 511 |
512 // Device event dispatched to listeners of onDeviceChaged. See also | 512 // Device event dispatched to listeners of onDeviceChaged. See also |
513 // DeviceEventType to know when the event dispatched. | 513 // DeviceEventType to know when the event dispatched. |
514 dictionary DeviceEvent { | 514 dictionary DeviceEvent { |
515 // Event type of the device event. | 515 // Event type of the device event. |
516 DeviceEventType type; | 516 DeviceEventType type; |
517 // Device path to identify the device. | 517 // Device path to identify the device. |
518 DOMString devicePath; | 518 DOMString devicePath; |
519 }; | 519 }; |
520 | 520 |
| 521 // Describes an installed providing extension. |
| 522 dictionary ProvidingExtension { |
| 523 // ID of the providing extension. |
| 524 DOMString extensionId; |
| 525 |
| 526 // Name of the providing extension. |
| 527 DOMString name; |
| 528 |
| 529 // Whether supports configuration dialog. |
| 530 boolean canConfigure; |
| 531 |
| 532 // Whether supports adding new instances. |
| 533 boolean canAdd; |
| 534 }; |
| 535 |
521 // Callback that does not take arguments. | 536 // Callback that does not take arguments. |
522 callback SimpleCallback = void(); | 537 callback SimpleCallback = void(); |
523 | 538 |
524 // |result| Boolean result returned by the invoked function. | 539 // |result| Boolean result returned by the invoked function. |
525 callback BooleanCallback = void(boolean result); | 540 callback BooleanCallback = void(boolean result); |
526 | 541 |
527 // |result| Result of the task execution. | 542 // |result| Result of the task execution. |
528 callback ExecuteTaskCallback = void(TaskResult result); | 543 callback ExecuteTaskCallback = void(TaskResult result); |
529 | 544 |
530 // |tasks| The list of matched file URL patterns for this task. | 545 // |tasks| The list of matched file URL patterns for this task. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 DOMString runningProfile, | 619 DOMString runningProfile, |
605 DOMString displayProfile); | 620 DOMString displayProfile); |
606 | 621 |
607 // |entryUrl| URL of an entry in a normal file system. | 622 // |entryUrl| URL of an entry in a normal file system. |
608 callback ResolveEntriesCallback = | 623 callback ResolveEntriesCallback = |
609 void([instanceOf=Entry] object[] entries); | 624 void([instanceOf=Entry] object[] entries); |
610 | 625 |
611 // |checksum| Result checksum. | 626 // |checksum| Result checksum. |
612 callback ComputeChecksumCallback = void(DOMString checksum); | 627 callback ComputeChecksumCallback = void(DOMString checksum); |
613 | 628 |
| 629 // |extensions| List of providing extensions. |
| 630 callback GetProvidingExtensionsCallback = void(ProvidingExtension[] extensions); |
| 631 |
614 interface Functions { | 632 interface Functions { |
615 // Logout the current user for navigating to the re-authentication screen for | 633 // Logout the current user for navigating to the re-authentication screen for |
616 // the Google account. | 634 // the Google account. |
617 static void logoutUserForReauthentication(); | 635 static void logoutUserForReauthentication(); |
618 | 636 |
619 // Cancels file selection. | 637 // Cancels file selection. |
620 static void cancelDialog(); | 638 static void cancelDialog(); |
621 | 639 |
622 // Executes file browser task over selected files. | 640 // Executes file browser task over selected files. |
623 // |taskId| The unique identifier of task to execute. | 641 // |taskId| The unique identifier of task to execute. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 | 899 |
882 // Sets a tag on a file or a directory. Only Drive files are supported. | 900 // Sets a tag on a file or a directory. Only Drive files are supported. |
883 static void setEntryTag(DOMString entryURL, | 901 static void setEntryTag(DOMString entryURL, |
884 EntryTagVisibility visibility, | 902 EntryTagVisibility visibility, |
885 DOMString key, | 903 DOMString key, |
886 DOMString value, | 904 DOMString value, |
887 SimpleCallback callback); | 905 SimpleCallback callback); |
888 | 906 |
889 // Returns if Piex loader is enabled. | 907 // Returns if Piex loader is enabled. |
890 static void isPiexLoaderEnabled(BooleanCallback callback); | 908 static void isPiexLoaderEnabled(BooleanCallback callback); |
| 909 |
| 910 // Returns list of available providing extensions. |
| 911 static void getProvidingExtensions(GetProvidingExtensionsCallback callback); |
891 }; | 912 }; |
892 | 913 |
893 interface Events { | 914 interface Events { |
894 static void onMountCompleted(MountCompletedEvent event); | 915 static void onMountCompleted(MountCompletedEvent event); |
895 | 916 |
896 static void onFileTransfersUpdated(FileTransferStatus event); | 917 static void onFileTransfersUpdated(FileTransferStatus event); |
897 | 918 |
898 static void onCopyProgress(long copyId, CopyProgressStatus status); | 919 static void onCopyProgress(long copyId, CopyProgressStatus status); |
899 | 920 |
900 static void onDirectoryChanged(FileWatchEvent event); | 921 static void onDirectoryChanged(FileWatchEvent event); |
901 | 922 |
902 static void onPreferencesChanged(); | 923 static void onPreferencesChanged(); |
903 | 924 |
904 static void onDriveConnectionStatusChanged(); | 925 static void onDriveConnectionStatusChanged(); |
905 | 926 |
906 static void onDeviceChanged(DeviceEvent event); | 927 static void onDeviceChanged(DeviceEvent event); |
907 | 928 |
908 static void onDriveSyncError(DriveSyncErrorEvent event); | 929 static void onDriveSyncError(DriveSyncErrorEvent event); |
909 }; | 930 }; |
910 }; | 931 }; |
OLD | NEW |