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 9334f37bb5e315a529824f2300dff98026c3f3a4..d48444c327b82930fa7f7eb2c7dd9397f190347b 100644 |
--- a/chrome/common/extensions/api/file_system_provider.idl |
+++ b/chrome/common/extensions/api/file_system_provider.idl |
@@ -133,6 +133,14 @@ namespace fileSystemProvider { |
DOMString filePath; |
}; |
+ // Options for the <code>onCopyEntryRequested()</code> event. |
+ dictionary CopyEntryRequestedOptions { |
+ DOMString fileSystemId; |
+ long requestId; |
+ DOMString sourcePath; |
+ DOMString targetPath; |
+ }; |
+ |
// Callback to receive the result of mount() function. |
callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
@@ -266,6 +274,13 @@ namespace fileSystemProvider { |
CreateFileRequestedOptions options, |
ProviderSuccessCallback successCallback, |
ProviderErrorCallback errorCallback); |
+ |
+ // Raised when copying an entry (recursively if a directory) is requested. |
+ // If an error occurs, then <code>errorCallback</code> must be called. |
+ [maxListeners=1, nodoc] static void onCopyEntryRequested( |
+ CopyEntryRequestedOptions options, |
+ ProviderSuccessCallback successCallback, |
+ ProviderErrorCallback errorCallback); |
}; |
}; |