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

Unified Diff: chrome/views/widget/tooltip_manager.cc

Issue 62064: UI font localization part 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/views/widget/tooltip_manager.h ('k') | chrome/views/window/custom_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/widget/tooltip_manager.cc
===================================================================
--- chrome/views/widget/tooltip_manager.cc (revision 13518)
+++ chrome/views/widget/tooltip_manager.cc (working copy)
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/views/widget/tooltip_manager.h"
+
#include <limits>
-#include "chrome/common/gfx/chrome_font.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "chrome/common/l10n_util.h"
@@ -13,7 +14,6 @@
#include "chrome/common/win_util.h"
#include "chrome/views/view.h"
#include "chrome/views/widget/root_view.h"
-#include "chrome/views/widget/tooltip_manager.h"
#include "chrome/views/widget/widget.h"
namespace views {
@@ -107,6 +107,8 @@
TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0,
parent_, NULL, NULL, NULL);
+ l10n_util::AdjustUIFontForWindow(tooltip_hwnd_);
+
// This effectively turns off clipping of tooltips. We need this otherwise
// multi-line text (\r\n) won't work right. The size doesn't really matter
// (just as long as its bigger than the monitor's width) as we clip to the
« no previous file with comments | « chrome/views/widget/tooltip_manager.h ('k') | chrome/views/window/custom_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698