Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Side by Side Diff: chrome/common/extensions/api/file_browser_private.idl

Issue 515033002: [fsp] Generalize fileBrowserPrivate.getEntryProperties(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // |result| Hash containing the string assets. 464 // |result| Hash containing the string assets.
465 callback GetStringsCallback = void(object result); 465 callback GetStringsCallback = void(object result);
466 466
467 // |success| True when file watch is successfully added. 467 // |success| True when file watch is successfully added.
468 callback AddFileWatchCallback = void(optional boolean success); 468 callback AddFileWatchCallback = void(optional boolean success);
469 469
470 // |success| True when file watch is successfully removed. 470 // |success| True when file watch is successfully removed.
471 callback RemoveFileWatchCallback = void(optional boolean success); 471 callback RemoveFileWatchCallback = void(optional boolean success);
472 472
473 // |fileSystem| A DOMFileSystem instance for local file system access. null if 473 // |fileSystem| A DOMFileSystem instance for local file system access. null if
474 // |the caller has no appropriate permissions. 474 // the caller has no appropriate permissions.
475 callback RequestFileSystemCallback = void(optional object fileSystem); 475 callback RequestFileSystemCallback = void(optional object fileSystem);
476 476
477 // |fileProperties| A dictionary containing properties of the requested entries. 477 // |entryProperties| A dictionary containing properties of the requested
478 callback GetDriveEntryPropertiesCallback = 478 // entries.
479 void(DriveEntryProperties[] entryProperties); 479 callback GetEntryPropertiesCallback =
480 void(EntryProperties[] entryProperties);
480 481
481 // |localFilePaths| An array of the local file paths for the requested files, 482 // |localFilePaths| An array of the local file paths for the requested files,
482 // one entry for each file in fileUrls. 483 // one entry for each file in fileUrls.
483 callback GetDriveFilesCallback = void(DOMString[] localFilePaths); 484 callback GetDriveFilesCallback = void(DOMString[] localFilePaths);
484 485
485 // |sourcePath| Source path of the mount. 486 // |sourcePath| Source path of the mount.
486 callback AddMountCallback = void(DOMString sourcePath); 487 callback AddMountCallback = void(DOMString sourcePath);
487 488
488 // |volumeMetadataList| The list of VolumeMetadata representing mounted volumes. 489 // |volumeMetadataList| The list of VolumeMetadata representing mounted volumes.
489 callback GetVolumeMetadataListCallback = 490 callback GetVolumeMetadataListCallback =
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 // |index| Index of Filter 616 // |index| Index of Filter
616 // |forOpening| true if paths are selected for opening. false if for saving. 617 // |forOpening| true if paths are selected for opening. false if for saving.
617 // |shouldReturnLocalPath| true if paths need to be resolved to local paths. 618 // |shouldReturnLocalPath| true if paths need to be resolved to local paths.
618 // |callback| 619 // |callback|
619 static void selectFile(DOMString selectedPath, 620 static void selectFile(DOMString selectedPath,
620 long index, 621 long index,
621 boolean forOpening, 622 boolean forOpening,
622 boolean shouldReturnLocalPath, 623 boolean shouldReturnLocalPath,
623 SimpleCallback callback); 624 SimpleCallback callback);
624 625
625 // Requests Drive file properties for files. 626 // Requests additional properties for files.
626 // |fileUrls| list of URLs of files 627 // |fileUrls| list of URLs of files
627 // |callback| 628 // |callback|
628 static void getDriveEntryProperties( 629 static void getEntryProperties(
629 DOMString[] fileUrls, 630 DOMString[] fileUrls,
630 GetDriveEntryPropertiesCallback callback); 631 GetEntryPropertiesCallback callback);
631 632
632 // Pins/unpins a Drive file in the cache. 633 // Pins/unpins a Drive file in the cache.
633 // |fileUrl| URL of a file to pin/unpin. 634 // |fileUrl| URL of a file to pin/unpin.
634 // |pin| Pass true to pin the file. 635 // |pin| Pass true to pin the file.
635 // |callback| Completion callback. $(ref:runtime.lastError) will be set if 636 // |callback| Completion callback. $(ref:runtime.lastError) will be set if
636 // there was an error. 637 // there was an error.
637 static void pinDriveFile(DOMString fileUrl, 638 static void pinDriveFile(DOMString fileUrl,
638 boolean pin, 639 boolean pin,
639 optional SimpleCallback callback); 640 optional SimpleCallback callback);
640 641
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 static void onDriveSyncError(DriveSyncErrorEvent event); 814 static void onDriveSyncError(DriveSyncErrorEvent event);
814 815
815 // Dispatched when a profile is added. 816 // Dispatched when a profile is added.
816 static void onProfileAdded(); 817 static void onProfileAdded();
817 818
818 // Dispatched when any window moves another desktop. 819 // Dispatched when any window moves another desktop.
819 // TODO(hirono): Add information which window is moved. 820 // TODO(hirono): Add information which window is moved.
820 static void onDesktopChanged(); 821 static void onDesktopChanged();
821 }; 822 };
822 }; 823 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698