| 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_WIN_H_ | 5 #ifndef UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_ |
| 6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_ | 6 #define UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_ |
| 7 | 7 |
| 8 #include <Windows.h> | 8 #include <Windows.h> |
| 9 #include <commdlg.h> | 9 #include <commdlg.h> |
| 10 | 10 |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 #include "ui/shell_dialogs/select_file_dialog.h" | 13 #include "ui/shell_dialogs/select_file_dialog.h" |
| 14 #include "ui/shell_dialogs/shell_dialogs_export.h" | 14 #include "ui/shell_dialogs/shell_dialogs_export.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 class SelectFilePolicy; | 17 class SelectFilePolicy; |
| 18 | 18 |
| 19 // Implementation detail exported for unit tests. | 19 // Implementation detail exported for unit tests. |
| 20 SHELL_DIALOGS_EXPORT std::wstring AppendExtensionIfNeeded( | 20 SHELL_DIALOGS_EXPORT std::wstring AppendExtensionIfNeeded( |
| 21 const std::wstring& filename, | 21 const std::wstring& filename, |
| 22 const std::wstring& filter_selected, | 22 const std::wstring& filter_selected, |
| 23 const std::wstring& suggested_ext); | 23 const std::wstring& suggested_ext); |
| 24 | 24 |
| 25 SHELL_DIALOGS_EXPORT SelectFileDialog* CreateWinSelectFileDialog( | 25 SHELL_DIALOGS_EXPORT SelectFileDialog* CreateWinSelectFileDialog( |
| 26 SelectFileDialog::Listener* listener, | 26 SelectFileDialog::Listener* listener, |
| 27 SelectFilePolicy* policy, | 27 SelectFilePolicy* policy, |
| 28 const base::Callback<bool(OPENFILENAME* ofn)>& get_open_file_name_impl); | 28 const base::Callback<bool(OPENFILENAME* ofn)>& get_open_file_name_impl, |
| 29 const base::Callback<bool(OPENFILENAME* ofn)>& get_save_file_name_impl); |
| 29 | 30 |
| 30 SelectFileDialog* CreateDefaultWinSelectFileDialog( | 31 SelectFileDialog* CreateDefaultWinSelectFileDialog( |
| 31 SelectFileDialog::Listener* listener, | 32 SelectFileDialog::Listener* listener, |
| 32 SelectFilePolicy* policy); | 33 SelectFilePolicy* policy); |
| 33 | 34 |
| 34 } // namespace ui | 35 } // namespace ui |
| 35 | 36 |
| 36 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_ | 37 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_ |
| 37 | 38 |
| OLD | NEW |