OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/shell_dialogs.h" | 5 #include "chrome/browser/shell_dialogs.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 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include <set> | 12 #include <set> |
13 | 13 |
14 #include "app/l10n_util.h" | 14 #include "app/l10n_util.h" |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
17 #include "base/scoped_comptr_win.h" | 17 #include "base/scoped_comptr_win.h" |
18 #include "base/string_split.h" | 18 #include "base/string_split.h" |
19 #include "base/thread.h" | 19 #include "base/threading/thread.h" |
20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
21 #include "base/win/registry.h" | 21 #include "base/win/registry.h" |
22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
23 #include "chrome/browser/browser_thread.h" | 23 #include "chrome/browser/browser_thread.h" |
24 #include "gfx/font.h" | 24 #include "gfx/font.h" |
25 #include "grit/app_strings.h" | 25 #include "grit/app_strings.h" |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 | 27 |
28 // This function takes the output of a SaveAs dialog: a filename, a filter and | 28 // This function takes the output of a SaveAs dialog: a filename, a filter and |
29 // the extension originally suggested to the user (shown in the dialog box) and | 29 // the extension originally suggested to the user (shown in the dialog box) and |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { | 1121 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { |
1122 if (listener_) | 1122 if (listener_) |
1123 listener_->FontSelectionCanceled(params); | 1123 listener_->FontSelectionCanceled(params); |
1124 EndRun(run_state); | 1124 EndRun(run_state); |
1125 } | 1125 } |
1126 | 1126 |
1127 // static | 1127 // static |
1128 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { | 1128 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { |
1129 return new SelectFontDialogImpl(listener); | 1129 return new SelectFontDialogImpl(listener); |
1130 } | 1130 } |
OLD | NEW |