OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/shell_dialogs/select_file_dialog_win.h" | 5 #include "ui/shell_dialogs/select_file_dialog_win.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
| 8 #include <stddef.h> |
8 | 9 |
9 #include <algorithm> | 10 #include <algorithm> |
10 #include <set> | 11 #include <set> |
11 | 12 |
12 #include "base/bind.h" | 13 #include "base/bind.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/i18n/case_conversion.h" | 16 #include "base/i18n/case_conversion.h" |
| 17 #include "base/macros.h" |
16 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
17 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
18 #include "base/tuple.h" | 20 #include "base/tuple.h" |
19 #include "base/win/registry.h" | 21 #include "base/win/registry.h" |
20 #include "base/win/scoped_comptr.h" | 22 #include "base/win/scoped_comptr.h" |
21 #include "base/win/shortcut.h" | 23 #include "base/win/shortcut.h" |
22 #include "ui/aura/window.h" | 24 #include "ui/aura/window.h" |
23 #include "ui/aura/window_event_dispatcher.h" | 25 #include "ui/aura/window_event_dispatcher.h" |
24 #include "ui/aura/window_tree_host.h" | 26 #include "ui/aura/window_tree_host.h" |
25 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 SelectFileDialog* CreateDefaultWinSelectFileDialog( | 764 SelectFileDialog* CreateDefaultWinSelectFileDialog( |
763 SelectFileDialog::Listener* listener, | 765 SelectFileDialog::Listener* listener, |
764 SelectFilePolicy* policy) { | 766 SelectFilePolicy* policy) { |
765 return CreateWinSelectFileDialog(listener, | 767 return CreateWinSelectFileDialog(listener, |
766 policy, | 768 policy, |
767 base::Bind(&CallBuiltinGetOpenFileName), | 769 base::Bind(&CallBuiltinGetOpenFileName), |
768 base::Bind(&CallBuiltinGetSaveFileName)); | 770 base::Bind(&CallBuiltinGetSaveFileName)); |
769 } | 771 } |
770 | 772 |
771 } // namespace ui | 773 } // namespace ui |
OLD | NEW |