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 // fileBrowserPrivate API. | 5 // fileBrowserPrivate 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_browser_pr
ivate_api_functions.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_browser_pr
ivate_api_functions.h"] |
9 namespace fileBrowserPrivate { | 9 namespace fileBrowserPrivate { |
10 // Type of the mounted volume. | 10 // Type of the mounted volume. |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 | 526 |
527 // |result| true if the length is in the valid range, false otherwise. | 527 // |result| true if the length is in the valid range, false otherwise. |
528 callback ValidatePathNameLengthCallback = void(boolean result); | 528 callback ValidatePathNameLengthCallback = void(boolean result); |
529 | 529 |
530 // |accessToken| OAuth2 access token, or an empty string if failed to fetch. | 530 // |accessToken| OAuth2 access token, or an empty string if failed to fetch. |
531 callback RequestAccessTokenCallback = void(DOMString accessToken); | 531 callback RequestAccessTokenCallback = void(DOMString accessToken); |
532 | 532 |
533 // |accessToken| OAuth2 access token, or an empty string if failed to fetch. | 533 // |accessToken| OAuth2 access token, or an empty string if failed to fetch. |
534 callback RequestWebStoreAccessTokenCallback = void(DOMString accessToken); | 534 callback RequestWebStoreAccessTokenCallback = void(DOMString accessToken); |
535 | 535 |
536 // |shareUrl| Share Url for the sharing dialog. | 536 // |url| Result url. |
537 callback GetShareUrlCallback = void(DOMString shareUrl); | 537 callback GetUrlCallback = void(DOMString url); |
538 | 538 |
539 // |profiles| List of profile information. | 539 // |profiles| List of profile information. |
540 // |runningProfile| ID of the profile that runs the application instance. | 540 // |runningProfile| ID of the profile that runs the application instance. |
541 // |showingProfile| ID of the profile that shows the application window. | 541 // |showingProfile| ID of the profile that shows the application window. |
542 callback GetProfilesCallback = void(ProfileInfo[] profiles, | 542 callback GetProfilesCallback = void(ProfileInfo[] profiles, |
543 DOMString runningProfile, | 543 DOMString runningProfile, |
544 DOMString displayProfile); | 544 DOMString displayProfile); |
545 | 545 |
546 // |entryUrl| URL of an entry in a normal file system. | 546 // |entryUrl| URL of an entry in a normal file system. |
547 callback ResolveEntriesCallback = | 547 callback ResolveEntriesCallback = |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 RequestAccessTokenCallback callback); | 762 RequestAccessTokenCallback callback); |
763 | 763 |
764 // Requests a Webstore API OAuth2 access token. | 764 // Requests a Webstore API OAuth2 access token. |
765 // |callback| | 765 // |callback| |
766 static void requestWebStoreAccessToken( | 766 static void requestWebStoreAccessToken( |
767 RequestWebStoreAccessTokenCallback callback); | 767 RequestWebStoreAccessTokenCallback callback); |
768 | 768 |
769 // Requests a share dialog url for the specified file. | 769 // Requests a share dialog url for the specified file. |
770 // |url| Url for the file. | 770 // |url| Url for the file. |
771 // |callback| | 771 // |callback| |
772 static void getShareUrl(DOMString url, GetShareUrlCallback callback); | 772 static void getShareUrl(DOMString url, GetUrlCallback callback); |
| 773 |
| 774 // Requests a download url to download the file contents. |
| 775 // |url| Url for the file. |
| 776 // |callback| |
| 777 static void getDownloadUrl(DOMString url, GetUrlCallback callback); |
773 | 778 |
774 // Requests to share drive files. | 779 // Requests to share drive files. |
775 // |url| URL of a file to be shared. | 780 // |url| URL of a file to be shared. |
776 // |shareType| Type of access that is getting granted. | 781 // |shareType| Type of access that is getting granted. |
777 static void requestDriveShare(DOMString url, | 782 static void requestDriveShare(DOMString url, |
778 DriveShareType shareType, | 783 DriveShareType shareType, |
779 SimpleCallback callback); | 784 SimpleCallback callback); |
780 | 785 |
781 // Requests to install a webstore item. | 786 // Requests to install a webstore item. |
782 // |item_id| The id of the item to install. | 787 // |item_id| The id of the item to install. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 static void onDriveSyncError(DriveSyncErrorEvent event); | 819 static void onDriveSyncError(DriveSyncErrorEvent event); |
815 | 820 |
816 // Dispatched when a profile is added. | 821 // Dispatched when a profile is added. |
817 static void onProfileAdded(); | 822 static void onProfileAdded(); |
818 | 823 |
819 // Dispatched when any window moves another desktop. | 824 // Dispatched when any window moves another desktop. |
820 // TODO(hirono): Add information which window is moved. | 825 // TODO(hirono): Add information which window is moved. |
821 static void onDesktopChanged(); | 826 static void onDesktopChanged(); |
822 }; | 827 }; |
823 }; | 828 }; |
OLD | NEW |