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

Unified Diff: ppapi/api/ppb_file_ref.idl

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 7 years, 8 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
« no previous file with comments | « ppapi/api/pp_directory_entry.idl ('k') | ppapi/c/dev/ppb_directory_reader_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_file_ref.idl
diff --git a/ppapi/api/ppb_file_ref.idl b/ppapi/api/ppb_file_ref.idl
index cc08f8ea429fc494d412c4421c8fb85aa4d13c95..e7830279f8142a1229657a7b3d53b15f1f3b55ae 100644
--- a/ppapi/api/ppb_file_ref.idl
+++ b/ppapi/api/ppb_file_ref.idl
@@ -168,7 +168,7 @@ interface PPB_FileRef {
[in] PP_Resource new_file_ref,
[in] PP_CompletionCallback callback);
- /*
+ /**
* Query() queries info about a file or directory. You must have access to
* read this file or directory if it exists in the external filesystem.
*
@@ -185,5 +185,22 @@ interface PPB_FileRef {
int32_t Query([in] PP_Resource file_ref,
[out] PP_FileInfo info,
[in] PP_CompletionCallback callback);
+
+ /**
+ * ReadDirectoryEntries() reads all entries in a directory.
+ *
+ * @param[in] file_ref A <code>PP_Resource</code> corresponding to a directory
+ * reference.
+ * @param[in] output An output array which will receive
+ * <code>PP_DirectoryEntry</code> objects on success.
+ * @param[in] callback A <code>PP_CompletionCallback</code> to run on
+ * completion.
+ *
+ * @return An int32_t containing an error code from <code>pp_errors.h</code>.
+ */
+ [version=1.1]
+ int32_t ReadDirectoryEntries([in] PP_Resource file_ref,
+ [in] PP_ArrayOutput output,
+ [in] PP_CompletionCallback callback);
};
« no previous file with comments | « ppapi/api/pp_directory_entry.idl ('k') | ppapi/c/dev/ppb_directory_reader_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698