| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/shell_dialogs.h" | 5 #include "chrome/browser/ui/shell_dialogs.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" |
| 8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 10 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" | 11 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" |
| 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 12 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 13 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 15 | 16 |
| 16 SelectFileDialog::FileTypeInfo::FileTypeInfo() : include_all_files(false) {} | 17 SelectFileDialog::FileTypeInfo::FileTypeInfo() : include_all_files(false) {} |
| 17 | 18 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 76 } |
| 76 // Call the platform specific implementation of the file selection dialog. | 77 // Call the platform specific implementation of the file selection dialog. |
| 77 SelectFileImpl(type, title, default_path, file_types, file_type_index, | 78 SelectFileImpl(type, title, default_path, file_types, file_type_index, |
| 78 default_extension, owning_window, params); | 79 default_extension, owning_window, params); |
| 79 } | 80 } |
| 80 | 81 |
| 81 void SelectFileDialog::CancelFileSelection(void* params) { | 82 void SelectFileDialog::CancelFileSelection(void* params) { |
| 82 if (listener_) | 83 if (listener_) |
| 83 listener_->FileSelectionCanceled(params); | 84 listener_->FileSelectionCanceled(params); |
| 84 } | 85 } |
| OLD | NEW |