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 <windows.h> | 7 #include <windows.h> |
8 #include <commdlg.h> | 8 #include <commdlg.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "base/win/shortcut.h" | 26 #include "base/win/shortcut.h" |
27 #include "base/win/windows_version.h" | 27 #include "base/win/windows_version.h" |
28 #include "grit/ui_strings.h" | 28 #include "grit/ui_strings.h" |
29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
30 #include "ui/gfx/native_widget_types.h" | 30 #include "ui/gfx/native_widget_types.h" |
31 #include "ui/shell_dialogs/base_shell_dialog_win.h" | 31 #include "ui/shell_dialogs/base_shell_dialog_win.h" |
32 #include "ui/shell_dialogs/shell_dialogs_delegate.h" | 32 #include "ui/shell_dialogs/shell_dialogs_delegate.h" |
33 | 33 |
34 #if defined(USE_AURA) | 34 #if defined(USE_AURA) |
35 #include "ui/aura/remote_window_tree_host_win.h" | 35 #include "ui/aura/remote_window_tree_host_win.h" |
36 #include "ui/aura/root_window.h" | |
37 #include "ui/aura/window.h" | 36 #include "ui/aura/window.h" |
| 37 #include "ui/aura/window_event_dispatcher.h" |
38 #endif | 38 #endif |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 // Given |extension|, if it's not empty, then remove the leading dot. | 42 // Given |extension|, if it's not empty, then remove the leading dot. |
43 std::wstring GetExtensionWithoutLeadingDot(const std::wstring& extension) { | 43 std::wstring GetExtensionWithoutLeadingDot(const std::wstring& extension) { |
44 DCHECK(extension.empty() || extension[0] == L'.'); | 44 DCHECK(extension.empty() || extension[0] == L'.'); |
45 return extension.empty() ? extension : extension.substr(1); | 45 return extension.empty() ? extension : extension.substr(1); |
46 } | 46 } |
47 | 47 |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 return return_value; | 949 return return_value; |
950 } | 950 } |
951 | 951 |
952 SelectFileDialog* CreateWinSelectFileDialog( | 952 SelectFileDialog* CreateWinSelectFileDialog( |
953 SelectFileDialog::Listener* listener, | 953 SelectFileDialog::Listener* listener, |
954 SelectFilePolicy* policy) { | 954 SelectFilePolicy* policy) { |
955 return new SelectFileDialogImpl(listener, policy); | 955 return new SelectFileDialogImpl(listener, policy); |
956 } | 956 } |
957 | 957 |
958 } // namespace ui | 958 } // namespace ui |
OLD | NEW |