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

Side by Side 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: Fixed a bug. 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 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems,
6 // that can be accessible from the file manager on Chrome OS. 6 // that can be accessible from the file manager on Chrome OS.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy stem_provider_api.h"]
9 namespace fileSystemProvider { 9 namespace fileSystemProvider {
10 // Error codes used by providing extensions in response to requests. For 10 // Error codes used by providing extensions in response to requests. For
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Name of this entry (not full path name). 42 // Name of this entry (not full path name).
43 DOMString name; 43 DOMString name;
44 44
45 // File size in bytes. 45 // File size in bytes.
46 double size; 46 double size;
47 47
48 // The last modified time of this entry. 48 // The last modified time of this entry.
49 [instanceOf=Date] object modificationTime; 49 [instanceOf=Date] object modificationTime;
50 50
51 // Mime type for the entry. 51 // Mime type for the entry.
52 DOMString? mimeType; 52 DOMString? mimeType;
53
54 // Thumbnail image as a data URI. Optional, but can be provided only when
hirono 2014/08/27 09:20:07 How about describing about image types of the thum
mtomasz 2014/08/28 04:57:55 Done.
55 // explicitely requested in the <code>onGetMetadataRequested</code> event.
56 DOMString? thumbnail;
53 }; 57 };
54 58
55 // Represents a mounted file system. 59 // Represents a mounted file system.
56 dictionary FileSystemInfo { 60 dictionary FileSystemInfo {
57 DOMString fileSystemId; 61 DOMString fileSystemId;
58 DOMString displayName; 62 DOMString displayName;
59 [nodoc] boolean writable; 63 [nodoc] boolean writable;
60 }; 64 };
61 65
62 // Options for the <code>mount()</code> method. 66 // Options for the <code>mount()</code> method.
(...skipping 12 matching lines...) Expand all
75 dictionary UnmountRequestedOptions { 79 dictionary UnmountRequestedOptions {
76 DOMString fileSystemId; 80 DOMString fileSystemId;
77 long requestId; 81 long requestId;
78 }; 82 };
79 83
80 // Options for the <code>onGetMetadataRequested()</code> event. 84 // Options for the <code>onGetMetadataRequested()</code> event.
81 dictionary GetMetadataRequestedOptions { 85 dictionary GetMetadataRequestedOptions {
82 DOMString fileSystemId; 86 DOMString fileSystemId;
83 long requestId; 87 long requestId;
84 DOMString entryPath; 88 DOMString entryPath;
89
90 // Set to <code>true</code> if the thumbnail is requested.
91 boolean thumbnail;
85 }; 92 };
86 93
87 // Options for the <code>onReadDirectoryRequested()</code> event. 94 // Options for the <code>onReadDirectoryRequested()</code> event.
88 dictionary ReadDirectoryRequestedOptions { 95 dictionary ReadDirectoryRequestedOptions {
89 DOMString fileSystemId; 96 DOMString fileSystemId;
90 long requestId; 97 long requestId;
91 DOMString directoryPath; 98 DOMString directoryPath;
92 }; 99 };
93 100
94 // Options for the <code>onOpenFileRequested()</code> event. 101 // Options for the <code>onOpenFileRequested()</code> event.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // </code> must be called. Note, that callbacks of the aborted operation 362 // </code> must be called. Note, that callbacks of the aborted operation
356 // should not be called, as they will be ignored. Despite calling <code> 363 // should not be called, as they will be ignored. Despite calling <code>
357 // errorCallback</code>, the request may be forcibly aborted. 364 // errorCallback</code>, the request may be forcibly aborted.
358 [maxListeners=1, nodoc] static void onAbortRequested( 365 [maxListeners=1, nodoc] static void onAbortRequested(
359 AbortRequestedOptions options, 366 AbortRequestedOptions options,
360 ProviderSuccessCallback successCallback, 367 ProviderSuccessCallback successCallback,
361 ProviderErrorCallback errorCallback); 368 ProviderErrorCallback errorCallback);
362 }; 369 };
363 }; 370 };
364 371
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698