| 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 <set> | 13 #include <set> |
| 14 | 14 |
| 15 #include "app/l10n_util.h" |
| 15 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 16 #include "base/registry.h" | 17 #include "base/registry.h" |
| 17 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 18 #include "base/thread.h" | 19 #include "base/thread.h" |
| 19 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 20 #include "chrome/common/gfx/chrome_font.h" | 21 #include "chrome/common/gfx/chrome_font.h" |
| 21 #include "chrome/common/l10n_util.h" | |
| 22 #include "chrome/common/win_util.h" | 22 #include "chrome/common/win_util.h" |
| 23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
| 24 | 24 |
| 25 // Helpers to show certain types of Windows shell dialogs in a way that doesn't | 25 // Helpers to show certain types of Windows shell dialogs in a way that doesn't |
| 26 // block the UI of the entire app. | 26 // block the UI of the entire app. |
| 27 | 27 |
| 28 class ShellDialogThread : public base::Thread { | 28 class ShellDialogThread : public base::Thread { |
| 29 public: | 29 public: |
| 30 ShellDialogThread() : base::Thread("Chrome_ShellDialogThread") { } | 30 ShellDialogThread() : base::Thread("Chrome_ShellDialogThread") { } |
| 31 | 31 |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { | 724 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { |
| 725 if (listener_) | 725 if (listener_) |
| 726 listener_->FontSelectionCanceled(params); | 726 listener_->FontSelectionCanceled(params); |
| 727 EndRun(run_state); | 727 EndRun(run_state); |
| 728 } | 728 } |
| 729 | 729 |
| 730 // static | 730 // static |
| 731 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { | 731 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { |
| 732 return new SelectFontDialogImpl(listener); | 732 return new SelectFontDialogImpl(listener); |
| 733 } | 733 } |
| OLD | NEW |