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

Unified Diff: chrome/common/extensions/api/file_system_provider.idl

Issue 513683002: [fsp] Add support for providing thumbnails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/file_system_provider.idl
diff --git a/chrome/common/extensions/api/file_system_provider.idl b/chrome/common/extensions/api/file_system_provider.idl
index 155c7da2d59b6bbaaa9293d75bb44c8c7af5c13d..bbc6bc626483584c57c30f5317719eacd59ae40c 100644
--- a/chrome/common/extensions/api/file_system_provider.idl
+++ b/chrome/common/extensions/api/file_system_provider.idl
@@ -49,7 +49,12 @@ namespace fileSystemProvider {
[instanceOf=Date] object modificationTime;
// Mime type for the entry.
- DOMString? mimeType;
+ DOMString? mimeType;
+
+ // Thumbnail image as a data URI in either PNG, JPEG or WEBP format, at most
+ // 32 KB in size. Optional, but can be provided only when explicitly
+ // requested by the <code>onGetMetadataRequested</code> event.
+ DOMString? thumbnail;
};
// Represents a mounted file system.
@@ -82,6 +87,9 @@ namespace fileSystemProvider {
DOMString fileSystemId;
long requestId;
DOMString entryPath;
+
+ // Set to <code>true</code> if the thumbnail is requested.
+ boolean thumbnail;
};
// Options for the <code>onReadDirectoryRequested()</code> event.

Powered by Google App Engine
This is Rietveld 408576698