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

Unified Diff: ppapi/api/trusted/ppb_file_chooser_trusted.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 | « ppapi/api/pp_array_output.idl ('k') | ppapi/c/dev/ppb_file_chooser_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/trusted/ppb_file_chooser_trusted.idl
diff --git a/ppapi/api/trusted/ppb_file_chooser_trusted.idl b/ppapi/api/trusted/ppb_file_chooser_trusted.idl
index d921c81e570b9adcfb24e6ba7bc76cde911d579e..3d9aea0d222da6734f7f5510918268fc43386302 100644
--- a/ppapi/api/trusted/ppb_file_chooser_trusted.idl
+++ b/ppapi/api/trusted/ppb_file_chooser_trusted.idl
@@ -9,7 +9,8 @@
*/
label Chrome {
- M16 = 0.5
+ M16 = 0.5,
+ M20 = 0.6
};
[macro="PPB_FILECHOOSER_TRUSTED_INTERFACE"]
@@ -32,10 +33,37 @@ interface PPB_FileChooserTrusted {
* @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 ShowWithoutUserGesture(
[in] PP_Resource chooser,
[in] PP_Bool save_as,
[in] PP_Var suggested_file_name,
[in] PP_CompletionCallback callback);
+
+ /**
+ * This function displays a previously created file chooser resource as a
+ * dialog box, prompting the user to choose a file or files to open, or a
+ * single file for saving. The callback is called with PP_OK on successful
+ * completion with a file (or files) selected or PP_ERROR_USERCANCEL if the
+ * user selected no file.
+ *
+ * @param[in] chooser The file chooser resource.
+ * @param[in] save_as A <code>PP_Bool</code> value indicating if this dialog
+ * is choosing a file for saving.
+ * @param[in] suggested_file_name If saving, the suggested name for the
+ * file, otherwise, null or undefined.
+ * @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 ShowWithoutUserGesture(
+ [in] PP_Resource chooser,
+ [in] PP_Bool save_as,
+ [in] PP_Var suggested_file_name,
+ [in] PP_ArrayOutput output,
+ [in] PP_CompletionCallback callback);
};
« no previous file with comments | « ppapi/api/pp_array_output.idl ('k') | ppapi/c/dev/ppb_file_chooser_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698