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.
- Parameters
-
[in] | chooser | The file chooser resource. |
[in] | save_as | A PP_Bool value indicating if this dialog is choosing a file for saving. |
[in] | suggested_file_name | If saving, the suggested name for the file, otherwise, null or undefined. |
[in] | callback | A CompletionCallback to be called after the user has closed the file chooser dialog. |
- Returns
- PP_OK_COMPLETIONPENDING if request to show the dialog was successful, another error code from pp_errors.h on failure.
The documentation for this struct was generated from the following file: