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 <memory> |
8 #include <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/shell_dialogs/base_shell_dialog.h" | 18 #include "ui/shell_dialogs/base_shell_dialog.h" |
19 #include "ui/shell_dialogs/shell_dialogs_export.h" | 19 #include "ui/shell_dialogs/shell_dialogs_export.h" |
20 | 20 |
21 namespace ui { | 21 namespace ui { |
22 class SelectFileDialogFactory; | 22 class SelectFileDialogFactory; |
23 class SelectFilePolicy; | 23 class SelectFilePolicy; |
24 struct SelectedFileInfo; | 24 struct SelectedFileInfo; |
25 class ShellDialogsDelegate; | 25 class ShellDialogsDelegate; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // either unset or set to true. | 201 // either unset or set to true. |
202 bool CanOpenSelectFileDialog(); | 202 bool CanOpenSelectFileDialog(); |
203 | 203 |
204 // Informs the |listener_| that the file selection dialog was canceled. Moved | 204 // Informs the |listener_| that the file selection dialog was canceled. Moved |
205 // to a function for being able to post it to the message loop. | 205 // to a function for being able to post it to the message loop. |
206 void CancelFileSelection(void* params); | 206 void CancelFileSelection(void* params); |
207 | 207 |
208 // Returns true if the dialog has multiple file type choices. | 208 // Returns true if the dialog has multiple file type choices. |
209 virtual bool HasMultipleFileTypeChoicesImpl() = 0; | 209 virtual bool HasMultipleFileTypeChoicesImpl() = 0; |
210 | 210 |
211 scoped_ptr<SelectFilePolicy> select_file_policy_; | 211 std::unique_ptr<SelectFilePolicy> select_file_policy_; |
212 | 212 |
213 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); | 213 DISALLOW_COPY_AND_ASSIGN(SelectFileDialog); |
214 }; | 214 }; |
215 | 215 |
216 SelectFileDialog* CreateSelectFileDialog(SelectFileDialog::Listener* listener, | 216 SelectFileDialog* CreateSelectFileDialog(SelectFileDialog::Listener* listener, |
217 SelectFilePolicy* policy); | 217 SelectFilePolicy* policy); |
218 } // namespace ui | 218 } // namespace ui |
219 | 219 |
220 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ | 220 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_H_ |
OLD | NEW |