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); |
}; |