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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 | 778 |
779 // Requests to share drive files. | 779 // Requests to share drive files. |
780 // |url| URL of a file to be shared. | 780 // |url| URL of a file to be shared. |
781 // |shareType| Type of access that is getting granted. | 781 // |shareType| Type of access that is getting granted. |
782 static void requestDriveShare(DOMString url, | 782 static void requestDriveShare(DOMString url, |
783 DriveShareType shareType, | 783 DriveShareType shareType, |
784 SimpleCallback callback); | 784 SimpleCallback callback); |
785 | 785 |
786 // Requests to install a webstore item. | 786 // Requests to install a webstore item. |
787 // |item_id| The id of the item to install. | 787 // |item_id| The id of the item to install. |
| 788 // |silentInstallation| False to show installation prompt. True not to show. |
788 // |callback| | 789 // |callback| |
789 static void installWebstoreItem(DOMString item_id, | 790 static void installWebstoreItem(DOMString itemId, |
| 791 boolean silentInstallation, |
790 SimpleCallback callback); | 792 SimpleCallback callback); |
791 | 793 |
792 // Obtains a list of profiles that are logged-in. | 794 // Obtains a list of profiles that are logged-in. |
793 static void getProfiles(GetProfilesCallback callback); | 795 static void getProfiles(GetProfilesCallback callback); |
794 | 796 |
795 // Moves the window to other user's desktop. | 797 // Moves the window to other user's desktop. |
796 static void visitDesktop(DOMString profileId, | 798 static void visitDesktop(DOMString profileId, |
797 optional SimpleCallback callback); | 799 optional SimpleCallback callback); |
798 | 800 |
799 // Opens inspector window. | 801 // Opens inspector window. |
(...skipping 19 matching lines...) Expand all Loading... |
819 static void onDriveSyncError(DriveSyncErrorEvent event); | 821 static void onDriveSyncError(DriveSyncErrorEvent event); |
820 | 822 |
821 // Dispatched when a profile is added. | 823 // Dispatched when a profile is added. |
822 static void onProfileAdded(); | 824 static void onProfileAdded(); |
823 | 825 |
824 // Dispatched when any window moves another desktop. | 826 // Dispatched when any window moves another desktop. |
825 // TODO(hirono): Add information which window is moved. | 827 // TODO(hirono): Add information which window is moved. |
826 static void onDesktopChanged(); | 828 static void onDesktopChanged(); |
827 }; | 829 }; |
828 }; | 830 }; |
OLD | NEW |