Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 14 matching lines...) Expand all Loading... | |
| 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 SELECT_FOLDER, | 34 SELECT_FOLDER, |
| 35 SELECT_UPLOAD_FOLDER, | |
|
Avi (use Gerrit)
2013/07/29 07:01:46
Can you put comments about the difference between
kinuko
2013/07/29 07:23:08
Done.
This patch is trying to be minimal (to fix
| |
| 35 SELECT_SAVEAS_FILE, | 36 SELECT_SAVEAS_FILE, |
| 36 SELECT_OPEN_FILE, | 37 SELECT_OPEN_FILE, |
| 37 SELECT_OPEN_MULTI_FILE | 38 SELECT_OPEN_MULTI_FILE |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 // An interface implemented by a Listener object wishing to know about the | 41 // 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 | 42 // the result of the Select File/Folder action. These callbacks must be |
| 42 // re-entrant. | 43 // re-entrant. |
| 43 class SHELL_DIALOGS_EXPORT Listener { | 44 class SHELL_DIALOGS_EXPORT Listener { |
| 44 public: | 45 public: |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 virtual bool HasMultipleFileTypeChoicesImpl() = 0; | 199 virtual bool HasMultipleFileTypeChoicesImpl() = 0; |
| 199 | 200 |
| 200 scoped_ptr<SelectFilePolicy> select_file_policy_; | 201 scoped_ptr<SelectFilePolicy> select_file_policy_; |
| 201 | 202 |
| 202 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); | 203 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 } // namespace ui | 206 } // namespace ui |
| 206 | 207 |
| 207 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ | 208 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ |
| OLD | NEW |