summaryrefslogtreecommitdiffstats
path: root/ppapi/c/trusted
diff options
context:
space:
mode:
authorbbudge@google.com <bbudge@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 17:41:30 +0000
committerbbudge@google.com <bbudge@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 17:41:30 +0000
commitad42ce583947a61beb7701c6cd036b9e5e814c48 (patch)
treef0ae830751798e016b85871dbbd9fe925d787913 /ppapi/c/trusted
parente51ddf25f1d720b18fc862ce683897c12c223525 (diff)
downloadchromium_src-ad42ce583947a61beb7701c6cd036b9e5e814c48.zip
chromium_src-ad42ce583947a61beb7701c6cd036b9e5e814c48.tar.gz
chromium_src-ad42ce583947a61beb7701c6cd036b9e5e814c48.tar.bz2
Move 'SaveAs' functionality from PPB_FileChooser_Dev to PPB_FileChooser_Trusted.We want to follow the Web platform, not diverge, and <input type=saveas> was neverstandardized. Move 'SaveAs' to the trusted interface for Flash.
Review URL: http://codereview.chromium.org/8224012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/trusted')
-rw-r--r--ppapi/c/trusted/ppb_file_chooser_trusted.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/ppapi/c/trusted/ppb_file_chooser_trusted.h b/ppapi/c/trusted/ppb_file_chooser_trusted.h
index 5992281..fbc56fb 100644
--- a/ppapi/c/trusted/ppb_file_chooser_trusted.h
+++ b/ppapi/c/trusted/ppb_file_chooser_trusted.h
@@ -3,17 +3,19 @@
* found in the LICENSE file.
*/
-/* From trusted/ppb_file_chooser_trusted.idl modified Tue Oct 04 10:48:17 2011. */
+/* From trusted/ppb_file_chooser_trusted.idl modified Tue Oct 11 11:43:26 2011. */
#ifndef PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_
#define PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_
+#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/pp_var.h"
-#define PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5 "PPB_FileChooser_Trusted;0.5"
+#define PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5 "PPB_FileChooserTrusted;0.5"
#define PPB_FILECHOOSER_TRUSTED_INTERFACE PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5
/**
@@ -26,14 +28,19 @@
* @addtogroup Interfaces
* @{
*/
-struct PPB_FileChooser_Trusted {
+struct PPB_FileChooserTrusted {
/**
* This function displays a previously created file chooser resource as a
- * dialog box, prompting the user to choose a file or files. 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.
+ * 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.
*
@@ -41,6 +48,8 @@ struct PPB_FileChooser_Trusted {
* successful, another error code from pp_errors.h on failure.
*/
int32_t (*ShowWithoutUserGesture)(PP_Resource chooser,
+ PP_Bool save_as,
+ struct PP_Var suggested_file_name,
struct PP_CompletionCallback callback);
};
/**