Index: ppapi/cpp/dev/file_chooser_dev.h |
diff --git a/ppapi/cpp/dev/file_chooser_dev.h b/ppapi/cpp/dev/file_chooser_dev.h |
index b588ac85a379ebff01d2109f764b50c6c3e64a5f..ed60f60b3c4d562361df4e4f57cd9ac8ddb13d2b 100644 |
--- a/ppapi/cpp/dev/file_chooser_dev.h |
+++ b/ppapi/cpp/dev/file_chooser_dev.h |
@@ -36,19 +36,18 @@ class FileChooser_Dev : public Resource { |
/// In order to get the list of files in a directory, the |
/// PPB_DirectoryReader_Dev interface must be used. |
/// |
- /// @param 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 |
+ /// @param 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. |
- /// |
- /// TODO(darin): What if the mime type is unknown to the system? The plugin |
- /// may wish to describe the mime type and provide a matching file extension. |
- /// It is more webby to use mime types here instead of file extensions. |
FileChooser_Dev(const InstanceHandle& instance, |
PP_FileChooserMode_Dev mode, |
- const Var& accept_mime_types); |
+ const Var& accept_types); |
FileChooser_Dev(const FileChooser_Dev& other); |