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

Unified Diff: ppapi/api/dev/ppb_file_chooser_dev.idl

Issue 10414085: Modified the pepper file chooser API to support filtering files by extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ppapi/c/dev/ppb_file_chooser_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_file_chooser_dev.idl
diff --git a/ppapi/api/dev/ppb_file_chooser_dev.idl b/ppapi/api/dev/ppb_file_chooser_dev.idl
index 425154bb3cdff54973f54289a8f2ebdb9cffe2ef..cd5678c24f7477b0b4d133ff4befed52b465b3af 100644
--- a/ppapi/api/dev/ppb_file_chooser_dev.idl
+++ b/ppapi/api/dev/ppb_file_chooser_dev.idl
@@ -39,12 +39,14 @@ interface PPB_FileChooser_Dev {
* of a module.
* @param[in] mode A <code>PP_FileChooserMode_Dev</code> value that controls
* the behavior of the file chooser dialog.
- * @param[in] accept_mime_types A comma-separated list of MIME types such as
- * "audio/ *,text/plain" (note there should be no space between the '/' and
- * the '*', but one is added to avoid confusing C++ comments). The dialog
- * may restrict selectable files to the specified MIME types. An empty string
- * or an undefined var may be given to indicate that all types should be
- * accepted.
+ * @param[in] accept_types A comma-separated list of MIME types and file
+ * extensions such as "audio/ *,text/plain,.html" (note there should be no
+ * space between the '/' and the '*', but one is added to avoid confusing C++
+ * comments). The dialog may restrict selectable files to the specified MIME
+ * types and file extensions. If a string in the comma-separated list begins
+ * with a period (.) then the string is interpreted as a file extension,
+ * otherwise it is interpreted as a MIME-type. An empty string or an undefined
+ * var may be given to indicate that all types should be accepted.
*
* @return A <code>PP_Resource</code> containing the file chooser if
* successful or 0 if it could not be created.
@@ -52,7 +54,7 @@ interface PPB_FileChooser_Dev {
PP_Resource Create(
[in] PP_Instance instance,
[in] PP_FileChooserMode_Dev mode,
- [in] PP_Var accept_mime_types);
+ [in] PP_Var accept_types);
/**
* Determines if the provided resource is a file chooser.
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ppapi/c/dev/ppb_file_chooser_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698