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

Side by Side Diff: chrome/views/widget/aero_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/views/controls/tree/tree_view.cc ('k') | chrome/views/widget/tooltip_manager.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <windows.h> 5 #include <windows.h>
6 #include <atlbase.h> 6 #include <atlbase.h>
7 #include <atlapp.h> // for GET_X/Y_LPARAM 7 #include <atlapp.h> // for GET_X/Y_LPARAM
8 #include <commctrl.h> 8 #include <commctrl.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 /////////////////////////////////////////////////////////////////////////////// 66 ///////////////////////////////////////////////////////////////////////////////
67 // AeroTooltipManager, private: 67 // AeroTooltipManager, private:
68 68
69 void AeroTooltipManager::Init() { 69 void AeroTooltipManager::Init() {
70 // Create the tooltip control. 70 // Create the tooltip control.
71 tooltip_hwnd_ = CreateWindowEx( 71 tooltip_hwnd_ = CreateWindowEx(
72 WS_EX_TRANSPARENT | l10n_util::GetExtendedTooltipStyles(), 72 WS_EX_TRANSPARENT | l10n_util::GetExtendedTooltipStyles(),
73 TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0, 73 TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0,
74 parent_, NULL, NULL, NULL); 74 parent_, NULL, NULL, NULL);
75
76 l10n_util::AdjustUIFontForWindow(tooltip_hwnd_);
77
75 // Add one tool that is used for all tooltips. 78 // Add one tool that is used for all tooltips.
76 toolinfo_.cbSize = sizeof(toolinfo_); 79 toolinfo_.cbSize = sizeof(toolinfo_);
77 80
78 // We use tracking tooltips on Vista to allow us to manually control the 81 // We use tracking tooltips on Vista to allow us to manually control the
79 // visibility of the tooltip. 82 // visibility of the tooltip.
80 toolinfo_.uFlags = TTF_TRANSPARENT | TTF_IDISHWND | TTF_TRACK | TTF_ABSOLUTE; 83 toolinfo_.uFlags = TTF_TRANSPARENT | TTF_IDISHWND | TTF_TRACK | TTF_ABSOLUTE;
81 toolinfo_.hwnd = parent_; 84 toolinfo_.hwnd = parent_;
82 toolinfo_.uId = (UINT_PTR)parent_; 85 toolinfo_.uId = (UINT_PTR)parent_;
83 86
84 // Setting this tells windows to call parent_ back (using a WM_NOTIFY 87 // Setting this tells windows to call parent_ back (using a WM_NOTIFY
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void AeroTooltipManager::InitialTimer::Disown() { 119 void AeroTooltipManager::InitialTimer::Disown() {
117 manager_ = NULL; 120 manager_ = NULL;
118 } 121 }
119 122
120 void AeroTooltipManager::InitialTimer::Execute() { 123 void AeroTooltipManager::InitialTimer::Execute() {
121 if (manager_) 124 if (manager_)
122 manager_->OnTimer(); 125 manager_->OnTimer();
123 } 126 }
124 127
125 } // namespace views 128 } // namespace views
OLDNEW
« no previous file with comments | « chrome/views/controls/tree/tree_view.cc ('k') | chrome/views/widget/tooltip_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698