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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 // Task title (ex. App name). | 166 // Task title (ex. App name). |
167 DOMString title; | 167 DOMString title; |
168 | 168 |
169 // Task icon url (from chrome://extension-icon/...) | 169 // Task icon url (from chrome://extension-icon/...) |
170 DOMString iconUrl; | 170 DOMString iconUrl; |
171 | 171 |
172 // True if this task is a default task for the selected files. | 172 // True if this task is a default task for the selected files. |
173 boolean isDefault; | 173 boolean isDefault; |
174 }; | 174 }; |
175 | 175 |
176 // Drive file properties. | 176 // Additional entry properties. |
177 dictionary DriveEntryProperties { | 177 dictionary EntryProperties { |
178 // Size of this file. | 178 // Size of this file. |
179 double? fileSize; | 179 double? fileSize; |
180 | 180 |
181 // Timestamp of entry update time, in milliseconds past the epoch. | 181 // Timestamp of entry update time, in milliseconds past the epoch. |
182 double? lastModifiedTime; | 182 double? lastModifiedTime; |
183 | 183 |
184 // URL to the Drive thumbnail image for this file. | 184 // URL to the Drive thumbnail image for this file. |
185 DOMString? thumbnailUrl; | 185 DOMString? thumbnailUrl; |
186 | 186 |
187 // Width, if the entry is an image. | 187 // Width, if the entry is an image. |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
470 // |success| True when file watch is successfully added. | 470 // |success| True when file watch is successfully added. |
471 callback AddFileWatchCallback = void(optional boolean success); | 471 callback AddFileWatchCallback = void(optional boolean success); |
472 | 472 |
473 // |success| True when file watch is successfully removed. | 473 // |success| True when file watch is successfully removed. |
474 callback RemoveFileWatchCallback = void(optional boolean success); | 474 callback RemoveFileWatchCallback = void(optional boolean success); |
475 | 475 |
476 // |fileSystem| A DOMFileSystem instance for local file system access. null if | 476 // |fileSystem| A DOMFileSystem instance for local file system access. null if |
477 // |the caller has no appropriate permissions. | 477 // |the caller has no appropriate permissions. |
478 callback RequestFileSystemCallback = void(optional object fileSystem); | 478 callback RequestFileSystemCallback = void(optional object fileSystem); |
479 | 479 |
480 // |fileProperties| A dictionary containing properties of the requested entries. | 480 // |fileProperties| A dictionary containing properties of the requested entries. |
yoshiki
2014/08/28 03:12:39
nit: fileProperies -> entryProperties
mtomasz
2014/08/28 05:18:51
Done.
| |
481 callback GetDriveEntryPropertiesCallback = | 481 callback GetEntryPropertiesCallback = |
482 void(DriveEntryProperties[] entryProperties); | 482 void(EntryProperties[] entryProperties); |
483 | 483 |
484 // |localFilePaths| An array of the local file paths for the requested files, | 484 // |localFilePaths| An array of the local file paths for the requested files, |
485 // one entry for each file in fileUrls. | 485 // one entry for each file in fileUrls. |
486 callback GetDriveFilesCallback = void(DOMString[] localFilePaths); | 486 callback GetDriveFilesCallback = void(DOMString[] localFilePaths); |
487 | 487 |
488 // |sourcePath| Source path of the mount. | 488 // |sourcePath| Source path of the mount. |
489 callback AddMountCallback = void(DOMString sourcePath); | 489 callback AddMountCallback = void(DOMString sourcePath); |
490 | 490 |
491 // |volumeMetadataList| The list of VolumeMetadata representing mounted volumes. | 491 // |volumeMetadataList| The list of VolumeMetadata representing mounted volumes. |
492 callback GetVolumeMetadataListCallback = | 492 callback GetVolumeMetadataListCallback = |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
618 // |index| Index of Filter | 618 // |index| Index of Filter |
619 // |forOpening| true if paths are selected for opening. false if for saving. | 619 // |forOpening| true if paths are selected for opening. false if for saving. |
620 // |shouldReturnLocalPath| true if paths need to be resolved to local paths. | 620 // |shouldReturnLocalPath| true if paths need to be resolved to local paths. |
621 // |callback| | 621 // |callback| |
622 static void selectFile(DOMString selectedPath, | 622 static void selectFile(DOMString selectedPath, |
623 long index, | 623 long index, |
624 boolean forOpening, | 624 boolean forOpening, |
625 boolean shouldReturnLocalPath, | 625 boolean shouldReturnLocalPath, |
626 SimpleCallback callback); | 626 SimpleCallback callback); |
627 | 627 |
628 // Requests Drive file properties for files. | 628 // Requests additional properties for files. |
629 // |fileUrls| list of URLs of files | 629 // |fileUrls| list of URLs of files |
630 // |callback| | 630 // |callback| |
631 static void getDriveEntryProperties( | 631 static void getEntryProperties( |
632 DOMString[] fileUrls, | 632 DOMString[] fileUrls, |
633 GetDriveEntryPropertiesCallback callback); | 633 GetEntryPropertiesCallback callback); |
634 | 634 |
635 // Pins/unpins a Drive file in the cache. | 635 // Pins/unpins a Drive file in the cache. |
636 // |fileUrl| URL of a file to pin/unpin. | 636 // |fileUrl| URL of a file to pin/unpin. |
637 // |pin| Pass true to pin the file. | 637 // |pin| Pass true to pin the file. |
638 // |callback| Completion callback. $(ref:runtime.lastError) will be set if | 638 // |callback| Completion callback. $(ref:runtime.lastError) will be set if |
639 // there was an error. | 639 // there was an error. |
640 static void pinDriveFile(DOMString fileUrl, | 640 static void pinDriveFile(DOMString fileUrl, |
641 boolean pin, | 641 boolean pin, |
642 optional SimpleCallback callback); | 642 optional SimpleCallback callback); |
643 | 643 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
816 static void onDriveSyncError(DriveSyncErrorEvent event); | 816 static void onDriveSyncError(DriveSyncErrorEvent event); |
817 | 817 |
818 // Dispatched when a profile is added. | 818 // Dispatched when a profile is added. |
819 static void onProfileAdded(); | 819 static void onProfileAdded(); |
820 | 820 |
821 // Dispatched when any window moves another desktop. | 821 // Dispatched when any window moves another desktop. |
822 // TODO(hirono): Add information which window is moved. | 822 // TODO(hirono): Add information which window is moved. |
823 static void onDesktopChanged(); | 823 static void onDesktopChanged(); |
824 }; | 824 }; |
825 }; | 825 }; |
OLD | NEW |