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