diff options
author | bbudge@google.com <bbudge@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 17:50:53 +0000 |
---|---|---|
committer | bbudge@google.com <bbudge@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-05 17:50:53 +0000 |
commit | 9d43f90e7e22f8a1b9fd6cbd05e1f04f4e92f018 (patch) | |
tree | 35877b748d6ba32d572ca7dae11d22c93a3def09 /ppapi/api/trusted | |
parent | 3085c50e9961a71ec0bb473c26efad9ca6589e46 (diff) | |
download | chromium_src-9d43f90e7e22f8a1b9fd6cbd05e1f04f4e92f018.zip chromium_src-9d43f90e7e22f8a1b9fd6cbd05e1f04f4e92f018.tar.gz chromium_src-9d43f90e7e22f8a1b9fd6cbd05e1f04f4e92f018.tar.bz2 |
Create IDL for PPB_FileChooser_Dev and PPB_FileChooser_Trusted, and add the ability to run
the filedialog in "Save As" mode.
BUG=73070
TEST=none yet
Review URL: http://codereview.chromium.org/8116018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/trusted')
-rw-r--r-- | ppapi/api/trusted/ppb_file_chooser_trusted.idl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ppapi/api/trusted/ppb_file_chooser_trusted.idl b/ppapi/api/trusted/ppb_file_chooser_trusted.idl new file mode 100644 index 0000000..97624c8 --- /dev/null +++ b/ppapi/api/trusted/ppb_file_chooser_trusted.idl @@ -0,0 +1,33 @@ +/* Copyright (c) 2011 The Chromium Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + + +/** + * This file defines the <code>PPB_FileChooser_Trusted</code> interface. + */ + +label Chrome { + M16 = 0.5 +}; + +interface PPB_FileChooser_Trusted { + /** + * 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. + * + * @param[in] chooser The file chooser resource. + * @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. + */ + int32_t ShowWithoutUserGesture( + [in] PP_Resource chooser, + [in] PP_CompletionCallback callback); +}; + |