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

Side by Side Diff: ppapi/c/trusted/ppb_file_chooser_trusted.h

Issue 9728001: Make the file chooser use PP_ArrayOutput (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_file_chooser_dev.h ('k') | ppapi/cpp/array_output.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* From trusted/ppb_file_chooser_trusted.idl, 6 /* From trusted/ppb_file_chooser_trusted.idl,
7 * modified Wed Jan 4 11:09:00 2012. 7 * modified Fri Mar 16 10:00:48 2012.
8 */ 8 */
9 9
10 #ifndef PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_ 10 #ifndef PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_
11 #define PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_ 11 #define PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_
12 12
13 #include "ppapi/c/pp_array_output.h"
13 #include "ppapi/c/pp_bool.h" 14 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_completion_callback.h" 15 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_macros.h" 16 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h" 17 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h" 18 #include "ppapi/c/pp_stdint.h"
18 #include "ppapi/c/pp_var.h" 19 #include "ppapi/c/pp_var.h"
19 20
20 #define PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5 "PPB_FileChooserTrusted;0.5" 21 #define PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5 "PPB_FileChooserTrusted;0.5"
21 #define PPB_FILECHOOSER_TRUSTED_INTERFACE PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5 22 #define PPB_FILECHOOSER_TRUSTED_INTERFACE_0_6 "PPB_FileChooserTrusted;0.6"
23 #define PPB_FILECHOOSER_TRUSTED_INTERFACE PPB_FILECHOOSER_TRUSTED_INTERFACE_0_6
22 24
23 /** 25 /**
24 * @file 26 * @file
25 * This file defines the <code>PPB_FileChooser_Trusted</code> interface. 27 * This file defines the <code>PPB_FileChooser_Trusted</code> interface.
26 */ 28 */
27 29
28 30
29 /** 31 /**
30 * @addtogroup Interfaces 32 * @addtogroup Interfaces
31 * @{ 33 * @{
32 */ 34 */
33 struct PPB_FileChooserTrusted_0_5 { 35 struct PPB_FileChooserTrusted_0_6 {
34 /** 36 /**
35 * This function displays a previously created file chooser resource as a 37 * This function displays a previously created file chooser resource as a
36 * dialog box, prompting the user to choose a file or files to open, or a 38 * dialog box, prompting the user to choose a file or files to open, or a
37 * single file for saving. The callback is called with PP_OK on successful 39 * single file for saving. The callback is called with PP_OK on successful
38 * completion with a file (or files) selected or PP_ERROR_USERCANCEL if the 40 * completion with a file (or files) selected or PP_ERROR_USERCANCEL if the
39 * user selected no file. 41 * user selected no file.
40 * 42 *
41 * @param[in] chooser The file chooser resource. 43 * @param[in] chooser The file chooser resource.
42 * @param[in] save_as A <code>PP_Bool</code> value indicating if this dialog 44 * @param[in] save_as A <code>PP_Bool</code> value indicating if this dialog
43 * is choosing a file for saving. 45 * is choosing a file for saving.
44 * @param[in] suggested_file_name If saving, the suggested name for the 46 * @param[in] suggested_file_name If saving, the suggested name for the
45 * file, otherwise, null or undefined. 47 * file, otherwise, null or undefined.
46 * @param[in] callback A <code>CompletionCallback</code> to be called after 48 * @param[in] callback A <code>CompletionCallback</code> to be called after
47 * the user has closed the file chooser dialog. 49 * the user has closed the file chooser dialog.
48 * 50 *
49 * @return PP_OK_COMPLETIONPENDING if request to show the dialog was 51 * @return PP_OK_COMPLETIONPENDING if request to show the dialog was
50 * successful, another error code from pp_errors.h on failure. 52 * successful, another error code from pp_errors.h on failure.
51 */ 53 */
52 int32_t (*ShowWithoutUserGesture)(PP_Resource chooser, 54 int32_t (*ShowWithoutUserGesture)(PP_Resource chooser,
53 PP_Bool save_as, 55 PP_Bool save_as,
54 struct PP_Var suggested_file_name, 56 struct PP_Var suggested_file_name,
57 struct PP_ArrayOutput output,
58 struct PP_CompletionCallback callback);
59 };
60
61 typedef struct PPB_FileChooserTrusted_0_6 PPB_FileChooserTrusted;
62
63 struct PPB_FileChooserTrusted_0_5 {
64 int32_t (*ShowWithoutUserGesture)(PP_Resource chooser,
65 PP_Bool save_as,
66 struct PP_Var suggested_file_name,
55 struct PP_CompletionCallback callback); 67 struct PP_CompletionCallback callback);
56 }; 68 };
57
58 typedef struct PPB_FileChooserTrusted_0_5 PPB_FileChooserTrusted;
59 /** 69 /**
60 * @} 70 * @}
61 */ 71 */
62 72
63 #endif /* PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_ */ 73 #endif /* PPAPI_C_TRUSTED_PPB_FILE_CHOOSER_TRUSTED_H_ */
64 74
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_file_chooser_dev.h ('k') | ppapi/cpp/array_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698