summaryrefslogtreecommitdiffstats
path: root/views/widget/tooltip_manager_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/tooltip_manager_win.cc')
-rw-r--r--views/widget/tooltip_manager_win.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/widget/tooltip_manager_win.cc b/views/widget/tooltip_manager_win.cc
index 95a87b1..2d89a4a 100644
--- a/views/widget/tooltip_manager_win.cc
+++ b/views/widget/tooltip_manager_win.cc
@@ -146,7 +146,8 @@ LRESULT TooltipManagerWin::OnNotify(int w_param,
if (last_view_out_of_sync_) {
// View under the mouse is out of sync, determine it now.
RootView* root_view = widget_->GetRootView();
- last_tooltip_view_ = root_view->GetViewForPoint(last_mouse_pos_);
+ last_tooltip_view_ =
+ root_view->GetEventHandlerForPoint(last_mouse_pos_);
last_view_out_of_sync_ = false;
}
// Tooltip control is asking for the tooltip to display.
@@ -268,7 +269,7 @@ int TooltipManagerWin::CalcTooltipHeight() {
void TooltipManagerWin::UpdateTooltip(const gfx::Point& mouse_pos) {
RootView* root_view = widget_->GetRootView();
- View* view = root_view->GetViewForPoint(mouse_pos);
+ View* view = root_view->GetEventHandlerForPoint(mouse_pos);
if (view != last_tooltip_view_) {
// NOTE: This *must* be sent regardless of the visibility of the tooltip.
// It triggers Windows to ask for the tooltip again.