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

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

Issue 15754002: ash: Add functionality to specify how long a tooltip is shown for a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « ui/aura/client/tooltip_client.h ('k') | ui/views/corewm/tooltip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/tooltip_controller.h
diff --git a/ui/views/corewm/tooltip_controller.h b/ui/views/corewm/tooltip_controller.h
index efce0ac4d122d9f5ca0773b993297921baf286fe..53fe4313bdbe689de298766d56586e1604cd7ef1 100644
--- a/ui/views/corewm/tooltip_controller.h
+++ b/ui/views/corewm/tooltip_controller.h
@@ -5,6 +5,8 @@
#ifndef UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_H_
#define UI_VIEWS_COREWM_TOOLTIP_CONTROLLER_H_
+#include <map>
+
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
#include "base/timer.h"
@@ -36,6 +38,8 @@ class VIEWS_EXPORT TooltipController : public aura::client::TooltipClient,
// Overridden from aura::client::TooltipClient.
virtual void UpdateTooltip(aura::Window* target) OVERRIDE;
+ virtual void SetTooltipShownTimeout(aura::Window* target,
+ int timeout_in_ms) OVERRIDE;
virtual void SetTooltipsEnabled(bool enable) OVERRIDE;
// Overridden from ui::EventHandler.
@@ -89,6 +93,8 @@ class VIEWS_EXPORT TooltipController : public aura::client::TooltipClient,
// Returns true if the cursor is visible.
bool IsCursorVisible();
+ int GetTooltipShownTimeout();
+
const gfx::ScreenType screen_type_;
aura::Window* tooltip_window_;
@@ -111,6 +117,8 @@ class VIEWS_EXPORT TooltipController : public aura::client::TooltipClient,
bool tooltips_enabled_;
+ std::map<aura::Window*, int> tooltip_shown_timeout_map_;
+
DISALLOW_COPY_AND_ASSIGN(TooltipController);
};
« no previous file with comments | « ui/aura/client/tooltip_client.h ('k') | ui/views/corewm/tooltip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698