| OLD | NEW |
| 1 // Copyright (c) 2010 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 "app/win/win_util.h" | 5 #include "app/win/win_util.h" |
| 6 | 6 |
| 7 #include <commdlg.h> | 7 #include <commdlg.h> |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 | 11 |
| 12 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
| 13 #include "app/l10n_util_win.h" | 13 #include "app/l10n_util_win.h" |
| 14 #include "base/base_switches.h" | 14 #include "base/base_switches.h" |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 17 #include "base/i18n/rtl.h" | 17 #include "base/i18n/rtl.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/scoped_handle.h" | 19 #include "base/scoped_handle.h" |
| 20 #include "base/scoped_handle_win.h" | |
| 21 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 22 #include "base/win/scoped_gdi_object.h" | 21 #include "base/win/scoped_gdi_object.h" |
| 23 #include "base/win/scoped_hdc.h" | 22 #include "base/win/scoped_hdc.h" |
| 24 #include "base/win/win_util.h" | 23 #include "base/win/win_util.h" |
| 25 #include "gfx/codec/png_codec.h" | 24 #include "gfx/codec/png_codec.h" |
| 26 #include "gfx/font.h" | 25 #include "gfx/font.h" |
| 27 #include "gfx/gdi_util.h" | 26 #include "gfx/gdi_util.h" |
| 28 | 27 |
| 29 namespace app { | 28 namespace app { |
| 30 namespace win { | 29 namespace win { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 gfx::Font GetWindowTitleFont() { | 317 gfx::Font GetWindowTitleFont() { |
| 319 NONCLIENTMETRICS ncm; | 318 NONCLIENTMETRICS ncm; |
| 320 base::win::GetNonClientMetrics(&ncm); | 319 base::win::GetNonClientMetrics(&ncm); |
| 321 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); | 320 l10n_util::AdjustUIFont(&(ncm.lfCaptionFont)); |
| 322 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); | 321 base::win::ScopedHFONT caption_font(CreateFontIndirect(&(ncm.lfCaptionFont))); |
| 323 return gfx::Font(caption_font); | 322 return gfx::Font(caption_font); |
| 324 } | 323 } |
| 325 | 324 |
| 326 } // namespace win | 325 } // namespace win |
| 327 } // namespace app | 326 } // namespace app |
| OLD | NEW |