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

Unified Diff: ui/views/widget/tooltip_manager_aura.h

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/widget/tooltip_manager_aura.h
diff --git a/ui/views/widget/tooltip_manager_aura.h b/ui/views/widget/tooltip_manager_aura.h
index e723299060b1b509fe3117393f7c88ec931fe02d..eaee1f22e703864c9b92023facad745e88ad3930 100644
--- a/ui/views/widget/tooltip_manager_aura.h
+++ b/ui/views/widget/tooltip_manager_aura.h
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "base/strings/string16.h"
#include "ui/gfx/point.h"
+#include "ui/gfx/rect.h"
#include "ui/views/widget/tooltip_manager.h"
namespace aura {
@@ -20,6 +21,7 @@ class FontList;
namespace views {
+class View;
class Widget;
// TooltipManager implementation for Aura.
@@ -54,6 +56,9 @@ class TooltipManagerAura : public TooltipManager {
Widget* widget_;
base::string16 tooltip_text_;
+ // Bounds of the view for which the last managed tooltip was displayed.
+ gfx::Rect origin_bounds_;
+
DISALLOW_COPY_AND_ASSIGN(TooltipManagerAura);
};

Powered by Google App Engine
This is Rietveld 408576698