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

Side by Side Diff: ui/gfx/font_unittest.cc

Issue 6246027: Move src/gfx/ to src/ui/gfx... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « ui/gfx/font.cc ('k') | ui/gfx/gdi_util.h » ('j') | no next file with comments »
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) 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 "gfx/font.h" 5 #include "gfx/font.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include "gfx/platform_font_win.h" 9 #include "gfx/platform_font_win.h"
10 #endif // defined(OS_WIN) 10 #endif // defined(OS_WIN)
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // The minimum font size is set to 5 in browser_main.cc. 111 // The minimum font size is set to 5 in browser_main.cc.
112 ScopedMinimumFontSizeCallback minimum_size(5); 112 ScopedMinimumFontSizeCallback minimum_size(5);
113 113
114 Font derived_font = cf.DeriveFont(-2); 114 Font derived_font = cf.DeriveFont(-2);
115 LOGFONT font_info; 115 LOGFONT font_info;
116 GetObject(derived_font.GetNativeFont(), sizeof(LOGFONT), &font_info); 116 GetObject(derived_font.GetNativeFont(), sizeof(LOGFONT), &font_info);
117 EXPECT_EQ(-6, font_info.lfHeight); 117 EXPECT_EQ(-6, font_info.lfHeight);
118 } 118 }
119 #endif 119 #endif
120 } // namespace 120 } // namespace
OLDNEW
« no previous file with comments | « ui/gfx/font.cc ('k') | ui/gfx/gdi_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698