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

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: 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 support files/folders that are on Drive.
131 // When this flag is false, the file dialog provides a local snapshot copy
132 // of selected files so that the caller can operate on it transparently.
satorux1 2013/08/06 02:07:17 More comment? If I understand correctly, Drive is
kinaba 2013/08/06 06:20:56 Added more comments. I think the name is still rel
131 bool support_drive; 133 bool support_drive;
132 }; 134 };
133 135
134 // Selects a File. 136 // Selects a File.
135 // Before doing anything this function checks if FileBrowsing is forbidden 137 // 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 138 // by Policy. If so, it tries to show an InfoBar and behaves as though no File
137 // was selected (the user clicked `Cancel` immediately). 139 // was selected (the user clicked `Cancel` immediately).
138 // Otherwise it will start displaying the dialog box. This will also 140 // Otherwise it will start displaying the dialog box. This will also
139 // block the calling window until the dialog box is complete. The listener 141 // block the calling window until the dialog box is complete. The listener
140 // associated with this object will be notified when the selection is 142 // 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; 212 virtual bool HasMultipleFileTypeChoicesImpl() = 0;
211 213
212 scoped_ptr<SelectFilePolicy> select_file_policy_; 214 scoped_ptr<SelectFilePolicy> select_file_policy_;
213 215
214 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); 216 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog);
215 }; 217 };
216 218
217 } // namespace ui 219 } // namespace ui
218 220
219 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ 221 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698