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

Unified Diff: views/widget/tooltip_manager_win.cc

Issue 3083022: Rework gfx::Font by moving platform-specific code into inner classes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/widget/tooltip_manager_gtk.cc ('k') | views/window/custom_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/tooltip_manager_win.cc
===================================================================
--- views/widget/tooltip_manager_win.cc (revision 55911)
+++ views/widget/tooltip_manager_win.cc (working copy)
@@ -37,7 +37,7 @@
WS_EX_TRANSPARENT | l10n_util::GetExtendedTooltipStyles(),
TOOLTIPS_CLASS, NULL, 0 , 0, 0, 0, 0, NULL, NULL, NULL, NULL);
HFONT hfont = reinterpret_cast<HFONT>(SendMessage(window, WM_GETFONT, 0, 0));
- gfx::Font font = hfont ? gfx::Font::CreateFont(hfont) : gfx::Font();
+ gfx::Font font = hfont ? gfx::Font(hfont) : gfx::Font();
DestroyWindow(window);
return font;
}
@@ -260,7 +260,7 @@
} else {
// Tooltip is using the system font. Use gfx::Font, which should pick
// up the system font.
- height = gfx::Font().height();
+ height = gfx::Font().GetHeight();
}
// Get the margins from the tooltip
RECT tooltip_margin;
« no previous file with comments | « views/widget/tooltip_manager_gtk.cc ('k') | views/window/custom_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698