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

Unified Diff: ash/tooltips/tooltip_controller.h

Issue 10790127: aura: couple of tooltip UX changes: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 5 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 | ash/tooltips/tooltip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/tooltips/tooltip_controller.h
diff --git a/ash/tooltips/tooltip_controller.h b/ash/tooltips/tooltip_controller.h
index 6c36bcb6786844c616eb12d619110f6e30f5d8e1..c20cf88fbddc460c2f82706537a28b62ba07c671 100644
--- a/ash/tooltips/tooltip_controller.h
+++ b/ash/tooltips/tooltip_controller.h
@@ -73,6 +73,7 @@ class ASH_EXPORT TooltipController : public aura::client::TooltipClient,
int y);
void TooltipTimerFired();
+ void TooltipShownTimerFired();
// Updates the tooltip if required (if there is any change in the tooltip
// text or the aura::Window.
@@ -97,6 +98,10 @@ class ASH_EXPORT TooltipController : public aura::client::TooltipClient,
base::RepeatingTimer<TooltipController> tooltip_timer_;
+ // Timer to timeout the life of an on-screen tooltip. We hide the tooltip when
+ // this timer fires.
+ base::OneShotTimer<TooltipController> tooltip_shown_timer_;
+
gfx::Point curr_mouse_loc_;
bool tooltips_enabled_;
« no previous file with comments | « no previous file | ash/tooltips/tooltip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698