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

Unified Diff: chrome/browser/tab_contents/tab_contents_file_select_helper.h

Issue 3311016: Support accept attribute for an <input type=file> element.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
Index: chrome/browser/tab_contents/tab_contents_file_select_helper.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_file_select_helper.h (revision 58709)
+++ chrome/browser/tab_contents/tab_contents_file_select_helper.h (working copy)
@@ -46,6 +46,12 @@
// Helper method for handling the SelectFileDialog::Listener callbacks.
void DirectorySelected(const FilePath& path);
+ // Helper method to get allowed extensions for select file dialog from
+ // the specified accept types as defined in the spec:
+ // http://whatwg.org/html/number-state.html#attr-input-accept
+ SelectFileDialog::FileTypeInfo* GetFileTypesFromAcceptType(
+ const string16& accept_types);
+
// The tab contents this class is helping. |tab_contents_| owns this object,
// so this pointer is guaranteed to be valid.
TabContents* tab_contents_;

Powered by Google App Engine
This is Rietveld 408576698