| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <atlbase.h> | 10 //#include <atlbase.h> |
| 11 | 11 |
| 12 #include <algorithm> | 12 #include <algorithm> |
| 13 #include <map> | 13 #include <set> |
| 14 | 14 |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/registry.h" | 16 #include "base/registry.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "base/thread.h" | 18 #include "base/thread.h" |
| 19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/common/gfx/chrome_font.h" | 20 #include "chrome/common/gfx/chrome_font.h" |
| 21 #include "chrome/common/l10n_util.h" | 21 #include "chrome/common/l10n_util.h" |
| 22 #include "chrome/common/win_util.h" | 22 #include "chrome/common/win_util.h" |
| 23 #include "generated_resources.h" | 23 #include "generated_resources.h" |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { | 659 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { |
| 660 if (listener_) | 660 if (listener_) |
| 661 listener_->FontSelectionCanceled(params); | 661 listener_->FontSelectionCanceled(params); |
| 662 EndRun(run_state); | 662 EndRun(run_state); |
| 663 } | 663 } |
| 664 | 664 |
| 665 // static | 665 // static |
| 666 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { | 666 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { |
| 667 return new SelectFontDialogImpl(listener); | 667 return new SelectFontDialogImpl(listener); |
| 668 } | 668 } |
| OLD | NEW |