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

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

Issue 23958012: Create the Tooltip widget in Aura as needed instead of just creating it in the timer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_controller.cc
===================================================================
--- ui/views/corewm/tooltip_controller.cc (revision 223170)
+++ ui/views/corewm/tooltip_controller.cc (working copy)
@@ -278,8 +278,13 @@
if (tooltip_window_)
tooltip_window_->RemoveObserver(this);
tooltip_window_ = target;
- if (tooltip_window_)
+ if (tooltip_window_) {
tooltip_window_->AddObserver(this);
+ } else {
+ // If the tooltip_window_ is reparented then we need to recreate the
+ // tooltip to ensure that it shows up correctly.
+ tooltip_.reset(NULL);
+ }
}
curr_mouse_loc_ = event->location();
if (tooltip_timer_.IsRunning())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698