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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.h

Issue 10692105: Updates file type selector for fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Broken out suggested_name stuff, added test Created 8 years, 5 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/extensions/api/file_system/file_system_api.h
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.h b/chrome/browser/extensions/api/file_system/file_system_api.h
index f65649ed53df65d00c02822f1aafd80bf5c83d32..e86df0bca5b2c5c53eea60ca4fd206eb81096d00 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.h
+++ b/chrome/browser/extensions/api/file_system/file_system_api.h
@@ -72,12 +72,20 @@ class FileSystemChooseFileFunction : public FileSystemEntryFunction {
DECLARE_EXTENSION_FUNCTION_NAME("fileSystem.chooseFile");
+ static void BuildFileTypeInfo(SelectFileDialog::FileTypeInfo* file_type_info,
+ const std::vector<std::string>* accepts,
+ const bool* acceptsAllTypes);
+ static void BuildSuggestion(const std::string* opt_name,
+ FilePath* suggested_name,
+ FilePath::StringType* suggested_extension);
+
protected:
class FilePicker;
virtual ~FileSystemChooseFileFunction() {}
virtual bool RunImpl() OVERRIDE;
bool ShowPicker(const FilePath& suggested_path,
+ const SelectFileDialog::FileTypeInfo& file_type_info,
SelectFileDialog::Type picker_type,
EntryType entry_type);

Powered by Google App Engine
This is Rietveld 408576698