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

Unified Diff: ppapi/api/dev/ppb_file_chooser_dev.idl

Issue 9728001: Make the file chooser use PP_ArrayOutput (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | ppapi/api/pp_array_output.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_file_chooser_dev.idl
diff --git a/ppapi/api/dev/ppb_file_chooser_dev.idl b/ppapi/api/dev/ppb_file_chooser_dev.idl
index 980df57e0a655fec221ce43317c1499808c07f21..425154bb3cdff54973f54289a8f2ebdb9cffe2ef 100644
--- a/ppapi/api/dev/ppb_file_chooser_dev.idl
+++ b/ppapi/api/dev/ppb_file_chooser_dev.idl
@@ -9,7 +9,8 @@
*/
label Chrome {
- M16 = 0.5
+ M16 = 0.5,
+ M19 = 0.6
};
/**
@@ -80,6 +81,7 @@ interface PPB_FileChooser_Dev {
* @return PP_OK_COMPLETIONPENDING if request to show the dialog was
* successful, another error code from pp_errors.h on failure.
*/
+ [deprecate=0.6]
int32_t Show(
[in] PP_Resource chooser,
[in] PP_CompletionCallback callback);
@@ -96,7 +98,33 @@ interface PPB_FileChooser_Dev {
* @return A <code>PP_Resource</code> containing the next file chosen by the
* user, or 0 if there are no more files.
*/
+ [deprecate=0.6]
PP_Resource GetNextChosenFile(
[in] PP_Resource chooser);
+
+ /**
+ * This function displays a previously created file chooser resource as a
+ * dialog box, prompting the user to choose a file or files. This function
+ * must be called in response to a user gesture, such as a mouse click or
+ * touch event. The callback is called with PP_OK on successful completion
+ * with a file (or files) selected, PP_ERROR_USERCANCEL if the user selected
+ * no file, or another error code from pp_errors.h on failure.
+ *
+ * @param[in] chooser The file chooser resource.
+ *
+ * @param[in] output An output array which will receive PP_Resource(s)
+ * identifying the <code>PPB_FileRef</code> objects that the user selected on
+ * success.
+ *
+ * @param[in] callback A <code>CompletionCallback</code> to be called after
+ * the user has closed the file chooser dialog.
+ *
+ * @return PP_OK_COMPLETIONPENDING if request to show the dialog was
+ * successful, another error code from pp_errors.h on failure.
+ */
+ [version=0.6]
+ int32_t Show([in] PP_Resource chooser,
+ [in] PP_ArrayOutput output,
+ [in] PP_CompletionCallback callback);
};
« no previous file with comments | « no previous file | ppapi/api/pp_array_output.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698