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

Unified Diff: views/widget/aero_tooltip_manager.cc

Issue 114054: Splits TooltipManager so that it can be ported and stubs out the GTK... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/aero_tooltip_manager.h ('k') | views/widget/tooltip_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/aero_tooltip_manager.cc
===================================================================
--- views/widget/aero_tooltip_manager.cc (revision 17063)
+++ views/widget/aero_tooltip_manager.cc (working copy)
@@ -18,8 +18,8 @@
///////////////////////////////////////////////////////////////////////////////
// AeroTooltipManager, public:
-AeroTooltipManager::AeroTooltipManager(Widget* widget, HWND parent)
- : TooltipManager(widget, parent),
+AeroTooltipManager::AeroTooltipManager(Widget* widget)
+ : TooltipManagerWin(widget),
initial_delay_(0) {
}
@@ -71,7 +71,7 @@
tooltip_hwnd_ = CreateWindowEx(
WS_EX_TRANSPARENT | l10n_util::GetExtendedTooltipStyles(),
TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0,
- parent_, NULL, NULL, NULL);
+ GetParent(), NULL, NULL, NULL);
l10n_util::AdjustUIFontForWindow(tooltip_hwnd_);
@@ -81,10 +81,10 @@
// We use tracking tooltips on Vista to allow us to manually control the
// visibility of the tooltip.
toolinfo_.uFlags = TTF_TRANSPARENT | TTF_IDISHWND | TTF_TRACK | TTF_ABSOLUTE;
- toolinfo_.hwnd = parent_;
- toolinfo_.uId = (UINT_PTR)parent_;
+ toolinfo_.hwnd = GetParent();
+ toolinfo_.uId = (UINT_PTR)GetParent();
- // Setting this tells windows to call parent_ back (using a WM_NOTIFY
+ // Setting this tells windows to call GetParent() back (using a WM_NOTIFY
// message) for the actual tooltip contents.
toolinfo_.lpszText = LPSTR_TEXTCALLBACK;
SetRectEmpty(&toolinfo_.rect);
@@ -97,7 +97,7 @@
POINT pt;
pt.x = last_mouse_x_;
pt.y = last_mouse_y_;
- ::ClientToScreen(parent_, &pt);
+ ::ClientToScreen(GetParent(), &pt);
// Set the position and visibility.
if (!tooltip_showing_) {
« no previous file with comments | « views/widget/aero_tooltip_manager.h ('k') | views/widget/tooltip_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698