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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
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 6
7 /** 7 /**
8 * This file defines the <code>PPB_FileChooser_Trusted</code> interface. 8 * This file defines the <code>PPB_FileChooser_Trusted</code> interface.
9 */ 9 */
10 10
11 label Chrome { 11 label Chrome {
12 M16 = 0.5 12 M16 = 0.5,
13 M20 = 0.6
13 }; 14 };
14 15
15 [macro="PPB_FILECHOOSER_TRUSTED_INTERFACE"] 16 [macro="PPB_FILECHOOSER_TRUSTED_INTERFACE"]
16 interface PPB_FileChooserTrusted { 17 interface PPB_FileChooserTrusted {
17 /** 18 /**
18 * This function displays a previously created file chooser resource as a 19 * This function displays a previously created file chooser resource as a
19 * dialog box, prompting the user to choose a file or files to open, or a 20 * dialog box, prompting the user to choose a file or files to open, or a
20 * single file for saving. The callback is called with PP_OK on successful 21 * single file for saving. The callback is called with PP_OK on successful
21 * completion with a file (or files) selected or PP_ERROR_USERCANCEL if the 22 * completion with a file (or files) selected or PP_ERROR_USERCANCEL if the
22 * user selected no file. 23 * user selected no file.
23 * 24 *
24 * @param[in] chooser The file chooser resource. 25 * @param[in] chooser The file chooser resource.
25 * @param[in] save_as A <code>PP_Bool</code> value indicating if this dialog 26 * @param[in] save_as A <code>PP_Bool</code> value indicating if this dialog
26 * is choosing a file for saving. 27 * is choosing a file for saving.
27 * @param[in] suggested_file_name If saving, the suggested name for the 28 * @param[in] suggested_file_name If saving, the suggested name for the
28 * file, otherwise, null or undefined. 29 * file, otherwise, null or undefined.
29 * @param[in] callback A <code>CompletionCallback</code> to be called after 30 * @param[in] callback A <code>CompletionCallback</code> to be called after
30 * the user has closed the file chooser dialog. 31 * the user has closed the file chooser dialog.
31 * 32 *
32 * @return PP_OK_COMPLETIONPENDING if request to show the dialog was 33 * @return PP_OK_COMPLETIONPENDING if request to show the dialog was
33 * successful, another error code from pp_errors.h on failure. 34 * successful, another error code from pp_errors.h on failure.
34 */ 35 */
36 [deprecate=0.6]
35 int32_t ShowWithoutUserGesture( 37 int32_t ShowWithoutUserGesture(
36 [in] PP_Resource chooser, 38 [in] PP_Resource chooser,
37 [in] PP_Bool save_as, 39 [in] PP_Bool save_as,
38 [in] PP_Var suggested_file_name, 40 [in] PP_Var suggested_file_name,
39 [in] PP_CompletionCallback callback); 41 [in] PP_CompletionCallback callback);
42
43 /**
44 * This function displays a previously created file chooser resource as a
45 * dialog box, prompting the user to choose a file or files to open, or a
46 * single file for saving. The callback is called with PP_OK on successful
47 * completion with a file (or files) selected or PP_ERROR_USERCANCEL if the
48 * user selected no file.
49 *
50 * @param[in] chooser The file chooser resource.
51 * @param[in] save_as A <code>PP_Bool</code> value indicating if this dialog
52 * is choosing a file for saving.
53 * @param[in] suggested_file_name If saving, the suggested name for the
54 * file, otherwise, null or undefined.
55 * @param[in] callback A <code>CompletionCallback</code> to be called after
56 * the user has closed the file chooser dialog.
57 *
58 * @return PP_OK_COMPLETIONPENDING if request to show the dialog was
59 * successful, another error code from pp_errors.h on failure.
60 */
61 [version=0.6]
62 int32_t ShowWithoutUserGesture(
63 [in] PP_Resource chooser,
64 [in] PP_Bool save_as,
65 [in] PP_Var suggested_file_name,
66 [in] PP_ArrayOutput output,
67 [in] PP_CompletionCallback callback);
40 }; 68 };
41 69
OLDNEW
« 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