Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Side by Side Diff: app/win/win_util.cc

Issue 6126002: Remove base/scoped_handle_win.h stub and fix up all callers to use the new location and namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/file_util_unittest.cc » ('j') | base/win/event_trace_controller_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | base/file_util_unittest.cc » ('j') | base/win/event_trace_controller_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698