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