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

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

Issue 419523006: Experimentally isolate GetOpenFileName in a utility process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 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_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>
9 #include <commdlg.h>
10
11 #include "base/callback_forward.h"
8 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
9 #include "ui/shell_dialogs/select_file_dialog.h" 13 #include "ui/shell_dialogs/select_file_dialog.h"
10 #include "ui/shell_dialogs/shell_dialogs_export.h" 14 #include "ui/shell_dialogs/shell_dialogs_export.h"
11 15
12 namespace ui { 16 namespace ui {
13 class SelectFilePolicy; 17 class SelectFilePolicy;
14 18
15 // Implementation detail exported for unit tests. 19 // Implementation detail exported for unit tests.
16 SHELL_DIALOGS_EXPORT std::wstring AppendExtensionIfNeeded( 20 SHELL_DIALOGS_EXPORT std::wstring AppendExtensionIfNeeded(
17 const std::wstring& filename, 21 const std::wstring& filename,
18 const std::wstring& filter_selected, 22 const std::wstring& filter_selected,
19 const std::wstring& suggested_ext); 23 const std::wstring& suggested_ext);
20 24
21 // Intentionally not exported. Implementation detail of SelectFileDialog. Use 25 SHELL_DIALOGS_EXPORT SelectFileDialog* CreateWinSelectFileDialog(
22 // SelectFileDialog::Create() instead. 26 SelectFileDialog::Listener* listener,
23 SelectFileDialog* CreateWinSelectFileDialog( 27 SelectFilePolicy* policy,
28 const base::Callback<bool(OPENFILENAME* ofn)>& get_open_file_name_impl);
29
30 SelectFileDialog* CreateDefaultWinSelectFileDialog(
24 SelectFileDialog::Listener* listener, 31 SelectFileDialog::Listener* listener,
25 SelectFilePolicy* policy); 32 SelectFilePolicy* policy);
26 33
27 } // namespace ui 34 } // namespace ui
28 35
29 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_ 36 #endif // UI_SHELL_DIALOGS_SELECT_FILE_DIALOG_WIN_H_
30 37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698