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

Side by Side Diff: ui/shell_dialogs/select_file_dialog.h

Issue 22165002: Change the meaning of SelectFileDialog.support_drive: it means Drive-aware callers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix (#2). Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ 5 #ifndef UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_
6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ 6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::vector<std::vector<base::FilePath::StringType> > extensions; 120 std::vector<std::vector<base::FilePath::StringType> > extensions;
121 121
122 // Overrides the system descriptions of the specified extensions. Entries 122 // Overrides the system descriptions of the specified extensions. Entries
123 // correspond to |extensions|; if left blank the system descriptions will 123 // correspond to |extensions|; if left blank the system descriptions will
124 // be used. 124 // be used.
125 std::vector<base::string16> extension_description_overrides; 125 std::vector<base::string16> extension_description_overrides;
126 126
127 // Specifies whether there will be a filter added for all files (i.e. *.*). 127 // Specifies whether there will be a filter added for all files (i.e. *.*).
128 bool include_all_files; 128 bool include_all_files;
129 129
130 // Specifies whether the caller can support files/folders that are on Drive. 130 // Specifies whether the caller can directly support file paths pointing to
131 // files/folders on Google Drive. If the flag is true, the file dialog does
132 // nothing special; just returns a Drive path. If it is false, the dialog
133 // creates a local replica of the Drive file and returns its path, so that
134 // the caller can use it without any difference than when it were local.
131 bool support_drive; 135 bool support_drive;
132 }; 136 };
133 137
134 // Selects a File. 138 // Selects a File.
135 // Before doing anything this function checks if FileBrowsing is forbidden 139 // Before doing anything this function checks if FileBrowsing is forbidden
136 // by Policy. If so, it tries to show an InfoBar and behaves as though no File 140 // by Policy. If so, it tries to show an InfoBar and behaves as though no File
137 // was selected (the user clicked `Cancel` immediately). 141 // was selected (the user clicked `Cancel` immediately).
138 // Otherwise it will start displaying the dialog box. This will also 142 // Otherwise it will start displaying the dialog box. This will also
139 // block the calling window until the dialog box is complete. The listener 143 // block the calling window until the dialog box is complete. The listener
140 // associated with this object will be notified when the selection is 144 // associated with this object will be notified when the selection is
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 virtual bool HasMultipleFileTypeChoicesImpl() = 0; 214 virtual bool HasMultipleFileTypeChoicesImpl() = 0;
211 215
212 scoped_ptr<SelectFilePolicy> select_file_policy_; 216 scoped_ptr<SelectFilePolicy> select_file_policy_;
213 217
214 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); 218 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog);
215 }; 219 };
216 220
217 } // namespace ui 221 } // namespace ui
218 222
219 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ 223 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698