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

Unified Diff: ui/base/dialogs/select_file_dialog.h

Issue 10908262: [cros] disable GDrive option on certain file pickers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invert default in file manager Created 8 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: ui/base/dialogs/select_file_dialog.h
diff --git a/ui/base/dialogs/select_file_dialog.h b/ui/base/dialogs/select_file_dialog.h
index da5ab1f59f77c1aa4ef19c4ccd8ab2cb7b9c27e2..b5922d928f83236ece3590e6521eedce8d476abe 100644
--- a/ui/base/dialogs/select_file_dialog.h
+++ b/ui/base/dialogs/select_file_dialog.h
@@ -60,15 +60,15 @@ class UI_EXPORT SelectFileDialog
// Notifies the Listener that many files have been selected. The
// files are in |files|. |params| is contextual passed to SelectFile.
virtual void MultiFilesSelected(
- const std::vector<FilePath>& files, void* params) {}
+ const std::vector<FilePath>& files, void* params) {}
// Similar to MultiFilesSelected() but takes SelectedFileInfo instead of
// FilePath. Used for passing extra information (ex. display name).
//
// If not overridden, calls MultiFilesSelected() with paths from |files|.
virtual void MultiFilesSelectedWithExtraInfo(
- const std::vector<ui::SelectedFileInfo>& files,
- void* params);
+ const std::vector<ui::SelectedFileInfo>& files,
+ void* params);
// Notifies the Listener that the file/folder selection was aborted (via
// the user canceling or closing the selection dialog box, for example).
@@ -94,22 +94,29 @@ class UI_EXPORT SelectFileDialog
ui::SelectFilePolicy* policy);
// Holds information about allowed extensions on a file save dialog.
- // |extensions| is a list of allowed extensions. For example, it might be
- // { { "htm", "html" }, { "txt" } }. Only pass more than one extension
- // in the inner vector if the extensions are equivalent. Do NOT include
- // leading periods.
- // |extension_description_overrides| overrides the system descriptions of the
- // specified extensions. Entries correspond to |extensions|; if left blank
- // the system descriptions will be used.
- // |include_all_files| specifies whether there will be a filter added for all
- // files (i.e. *.*).
struct UI_EXPORT FileTypeInfo {
FileTypeInfo();
~FileTypeInfo();
+ // A list of allowed extensions. For example, it might be
+ //
+ // { { "htm", "html" }, { "txt" } }
+ //
+ // Only pass more than one extension in the inner vector if the extensions
+ // are equivalent. Do NOT include leading periods.
std::vector<std::vector<FilePath::StringType> > extensions;
+
+ // Overrides the system descriptions of the specified extensions. Entries
+ // correspond to |extensions|; if left blank the system descriptions will
+ // be used.
std::vector<string16> extension_description_overrides;
+
+ // Specifies whether there will be a filter added for all files (i.e. *.*).
bool include_all_files;
+
+ // Specifies whether the caller can support files/folders that are on
+ // GDrive.
+ bool support_gdata;
};
// Selects a File.
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/set_wallpaper_options_handler.cc ('k') | ui/base/dialogs/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698