| 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 // 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 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] | 7 [implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
| 8 namespace fileSystemProvider { | 8 namespace fileSystemProvider { |
| 9 // Error codes used by providing extensions in response to requests as well | 9 // Error codes used by providing extensions in response to requests as well |
| 10 // as in case of errors when calling methods of the API. For success, | 10 // as in case of errors when calling methods of the API. For success, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // Represents metadata of a file or a directory. | 55 // Represents metadata of a file or a directory. |
| 56 dictionary EntryMetadata { | 56 dictionary EntryMetadata { |
| 57 // True if it is a directory. | 57 // True if it is a directory. |
| 58 boolean isDirectory; | 58 boolean isDirectory; |
| 59 | 59 |
| 60 // Name of this entry (not full path name). Must not contain '/'. For root | 60 // Name of this entry (not full path name). Must not contain '/'. For root |
| 61 // it must be empty. | 61 // it must be empty. |
| 62 DOMString name; | 62 DOMString name; |
| 63 | 63 |
| 64 // File size in bytes. | 64 // File size in bytes. Required for <code>OnGetMetadataRequested</code>. |
| 65 double size; | 65 double? size; |
| 66 | 66 |
| 67 // The last modified time of this entry. | 67 // The last modified time of this entry. Required for |
| 68 [instanceOf=Date] object modificationTime; | 68 // <code>OnGetMetadataRequested</code>. |
| 69 [instanceOf=Date] object? modificationTime; |
| 69 | 70 |
| 70 // Mime type for the entry. | 71 // Mime type for the entry. |
| 71 DOMString? mimeType; | 72 DOMString? mimeType; |
| 72 | 73 |
| 73 // Thumbnail image as a data URI in either PNG, JPEG or WEBP format, at most | 74 // Thumbnail image as a data URI in either PNG, JPEG or WEBP format, at most |
| 74 // 32 KB in size. Optional, but can be provided only when explicitly | 75 // 32 KB in size. Optional, but can be provided only when explicitly |
| 75 // requested by the $(ref:onGetMetadataRequested) event. | 76 // requested by the $(ref:onGetMetadataRequested) event. |
| 76 DOMString? thumbnail; | 77 DOMString? thumbnail; |
| 77 }; | 78 }; |
| 78 | 79 |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 // Raised when executing an action for a set of files or directories is\ | 736 // Raised when executing an action for a set of files or directories is\ |
| 736 // requested. After the action is completed, <code>successCallback</code> | 737 // requested. After the action is completed, <code>successCallback</code> |
| 737 // must be called. On error, <code>errorCallback</code> must be called. | 738 // must be called. On error, <code>errorCallback</code> must be called. |
| 738 [maxListeners=1, nodoc] static void onExecuteActionRequested( | 739 [maxListeners=1, nodoc] static void onExecuteActionRequested( |
| 739 ExecuteActionRequestedOptions options, | 740 ExecuteActionRequestedOptions options, |
| 740 ProviderSuccessCallback successCallback, | 741 ProviderSuccessCallback successCallback, |
| 741 ProviderErrorCallback errorCallback); | 742 ProviderErrorCallback errorCallback); |
| 742 }; | 743 }; |
| 743 }; | 744 }; |
| 744 | 745 |
| OLD | NEW |