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

Unified Diff: ui/views/corewm/tooltip_aura.cc

Issue 213833018: Aura tooltips do not move on mouse move in case of many neighboring views with the same label (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Write unit test for the case when a tooltip moves from one view to another with the same tooltip bu… Created 6 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
Index: ui/views/corewm/tooltip_aura.cc
diff --git a/ui/views/corewm/tooltip_aura.cc b/ui/views/corewm/tooltip_aura.cc
index 50ced84d66dc4bbe2acfd2b7a86b4f76adc0d72a..02899756f3817a8d5b9c5e2cbf082711e875a7c0 100644
--- a/ui/views/corewm/tooltip_aura.cc
+++ b/ui/views/corewm/tooltip_aura.cc
@@ -257,5 +257,11 @@ void TooltipAura::OnWidgetDestroying(views::Widget* widget) {
tooltip_window_ = NULL;
}
+gfx::Point TooltipAura::GetTooltipPosition() {
+ if (widget_)
+ return widget_->GetWindowBoundsInScreen().origin();
+ return gfx::Point();
+}
+
} // namespace corewm
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698