| 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.h" | 5 #include "ui/shell_dialogs/select_file_dialog.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/shell_dialogs/select_file_dialog_factory.h" | 12 #include "ui/shell_dialogs/select_file_dialog_factory.h" |
| 13 #include "ui/shell_dialogs/select_file_policy.h" | 13 #include "ui/shell_dialogs/select_file_policy.h" |
| 14 #include "ui/shell_dialogs/selected_file_info.h" | 14 #include "ui/shell_dialogs/selected_file_info.h" |
| 15 #include "ui/shell_dialogs/shell_dialogs_delegate.h" | 15 #include "ui/shell_dialogs/shell_dialogs_delegate.h" |
| 16 | 16 |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 #include "ui/shell_dialogs/select_file_dialog_win.h" | 18 #include "ui/shell_dialogs/select_file_dialog_win.h" |
| 19 #elif defined(OS_MACOSX) | 19 #elif defined(OS_MACOSX) |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void SelectFileDialog::CancelFileSelection(void* params) { | 149 void SelectFileDialog::CancelFileSelection(void* params) { |
| 150 if (listener_) | 150 if (listener_) |
| 151 listener_->FileSelectionCanceled(params); | 151 listener_->FileSelectionCanceled(params); |
| 152 } | 152 } |
| 153 | 153 |
| 154 ShellDialogsDelegate* SelectFileDialog::GetShellDialogsDelegate() { | 154 ShellDialogsDelegate* SelectFileDialog::GetShellDialogsDelegate() { |
| 155 return g_shell_dialogs_delegate_; | 155 return g_shell_dialogs_delegate_; |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace ui | 158 } // namespace ui |
| OLD | NEW |