| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Specifies type of event that is raised. | 75 // Specifies type of event that is raised. |
| 76 enum FileWatchEventType { changed, error }; | 76 enum FileWatchEventType { changed, error }; |
| 77 | 77 |
| 78 // The type of entry that is needed. Default to ALL. | 78 // The type of entry that is needed. Default to ALL. |
| 79 enum SearchType { EXCLUDE_DIRECTORIES, SHARED_WITH_ME, OFFLINE, ALL }; | 79 enum SearchType { EXCLUDE_DIRECTORIES, SHARED_WITH_ME, OFFLINE, ALL }; |
| 80 | 80 |
| 81 // Zooming mode. | 81 // Zooming mode. |
| 82 enum ZoomOperationType { in, out, reset }; | 82 enum ZoomOperationType { in, out, reset }; |
| 83 | 83 |
| 84 // Specifies how to open inspector. |
| 85 enum InspectionType { |
| 86 // Open inspector for foreground page. |
| 87 normal, |
| 88 // Open inspector for foreground page and bring focus to the console. |
| 89 console, |
| 90 // Open inspector for foreground page in inspect element mode. |
| 91 element, |
| 92 // Open inspector for background page. |
| 93 background |
| 94 }; |
| 95 |
| 84 // Device event type. | 96 // Device event type. |
| 85 enum DeviceEventType { | 97 enum DeviceEventType { |
| 86 // Device is added. | 98 // Device is added. |
| 87 added, | 99 added, |
| 88 // If the device is disabled by preference, the disabled event is published | 100 // If the device is disabled by preference, the disabled event is published |
| 89 // instead of the added event. | 101 // instead of the added event. |
| 90 disabled, | 102 disabled, |
| 91 // Device is added, but scan for the device is canceled. The event is | 103 // Device is added, but scan for the device is canceled. The event is |
| 92 // published after the added event. | 104 // published after the added event. |
| 93 scan_canceled, | 105 scan_canceled, |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 // |callback| | 766 // |callback| |
| 755 static void installWebstoreItem(DOMString item_id, | 767 static void installWebstoreItem(DOMString item_id, |
| 756 SimpleCallback callback); | 768 SimpleCallback callback); |
| 757 | 769 |
| 758 // Obtains a list of profiles that are logged-in. | 770 // Obtains a list of profiles that are logged-in. |
| 759 static void getProfiles(GetProfilesCallback callback); | 771 static void getProfiles(GetProfilesCallback callback); |
| 760 | 772 |
| 761 // Moves the window to other user's desktop. | 773 // Moves the window to other user's desktop. |
| 762 static void visitDesktop(DOMString profileId, | 774 static void visitDesktop(DOMString profileId, |
| 763 optional SimpleCallback callback); | 775 optional SimpleCallback callback); |
| 776 |
| 777 // Opens inspector window. |
| 778 // |type| InspectionType which specifies how to open inspector. |
| 779 static void openInspector(InspectionType type); |
| 764 }; | 780 }; |
| 765 | 781 |
| 766 interface Events { | 782 interface Events { |
| 767 static void onMountCompleted(MountCompletedEvent event); | 783 static void onMountCompleted(MountCompletedEvent event); |
| 768 | 784 |
| 769 static void onFileTransfersUpdated(FileTransferStatus[] event); | 785 static void onFileTransfersUpdated(FileTransferStatus[] event); |
| 770 | 786 |
| 771 static void onCopyProgress(long copyId, CopyProgressStatus status); | 787 static void onCopyProgress(long copyId, CopyProgressStatus status); |
| 772 | 788 |
| 773 static void onDirectoryChanged(FileWatchEvent event); | 789 static void onDirectoryChanged(FileWatchEvent event); |
| 774 | 790 |
| 775 static void onPreferencesChanged(); | 791 static void onPreferencesChanged(); |
| 776 | 792 |
| 777 static void onDriveConnectionStatusChanged(); | 793 static void onDriveConnectionStatusChanged(); |
| 778 | 794 |
| 779 static void onDeviceChanged(DeviceEvent event); | 795 static void onDeviceChanged(DeviceEvent event); |
| 780 | 796 |
| 781 static void onDriveSyncError(DriveSyncErrorEvent event); | 797 static void onDriveSyncError(DriveSyncErrorEvent event); |
| 782 | 798 |
| 783 // Dispatched when a profile is added. | 799 // Dispatched when a profile is added. |
| 784 static void onProfileAdded(); | 800 static void onProfileAdded(); |
| 785 | 801 |
| 786 // Dispatched when any window moves another desktop. | 802 // Dispatched when any window moves another desktop. |
| 787 // TODO(hirono): Add information which window is moved. | 803 // TODO(hirono): Add information which window is moved. |
| 788 static void onDesktopChanged(); | 804 static void onDesktopChanged(); |
| 789 }; | 805 }; |
| 790 }; | 806 }; |
| OLD | NEW |