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

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

Issue 18627002: Change dialog texts for folder upload to explicitly indicate it's for 'Uploading' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added comments 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 13 matching lines...) Expand all
24 struct SelectedFileInfo; 24 struct SelectedFileInfo;
25 class ShellDialogsDelegate; 25 class ShellDialogsDelegate;
26 26
27 // Shows a dialog box for selecting a file or a folder. 27 // Shows a dialog box for selecting a file or a folder.
28 class SHELL_DIALOGS_EXPORT SelectFileDialog 28 class SHELL_DIALOGS_EXPORT SelectFileDialog
29 : public base::RefCountedThreadSafe<SelectFileDialog>, 29 : public base::RefCountedThreadSafe<SelectFileDialog>,
30 public BaseShellDialog { 30 public BaseShellDialog {
31 public: 31 public:
32 enum Type { 32 enum Type {
33 SELECT_NONE, 33 SELECT_NONE,
34
35 // For opening a folder.
34 SELECT_FOLDER, 36 SELECT_FOLDER,
37
38 // Like SELECT_FOLDER, but specifically for uploading a folder.
Avi (use Gerrit) 2013/07/29 14:44:49 Perhaps a comment that there is no functional diff
kinuko 2013/07/30 07:37:16 Done.
39 SELECT_UPLOAD_FOLDER,
40
41 // For saving into a file, allowing a nonexistent file to be selected.
35 SELECT_SAVEAS_FILE, 42 SELECT_SAVEAS_FILE,
43
44 // For opening a file.
36 SELECT_OPEN_FILE, 45 SELECT_OPEN_FILE,
46
47 // Like SELECT_OPEN_FILE, but allowing multiple files to open.
37 SELECT_OPEN_MULTI_FILE 48 SELECT_OPEN_MULTI_FILE
38 }; 49 };
39 50
40 // An interface implemented by a Listener object wishing to know about the 51 // An interface implemented by a Listener object wishing to know about the
41 // the result of the Select File/Folder action. These callbacks must be 52 // the result of the Select File/Folder action. These callbacks must be
42 // re-entrant. 53 // re-entrant.
43 class SHELL_DIALOGS_EXPORT Listener { 54 class SHELL_DIALOGS_EXPORT Listener {
44 public: 55 public:
45 // Notifies the Listener that a file/folder selection has been made. The 56 // Notifies the Listener that a file/folder selection has been made. The
46 // file/folder path is in |path|. |params| is contextual passed to 57 // file/folder path is in |path|. |params| is contextual passed to
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual bool HasMultipleFileTypeChoicesImpl() = 0; 209 virtual bool HasMultipleFileTypeChoicesImpl() = 0;
199 210
200 scoped_ptr<SelectFilePolicy> select_file_policy_; 211 scoped_ptr<SelectFilePolicy> select_file_policy_;
201 212
202 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); 213 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog);
203 }; 214 };
204 215
205 } // namespace ui 216 } // namespace ui
206 217
207 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ 218 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698