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

Unified Diff: ui/aura/client/tooltip_client.h

Issue 109403008: Disables showing tooltips while a system menu is showing on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move resetting Created 6 years, 11 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/aura/client/tooltip_client.h
diff --git a/ui/aura/client/tooltip_client.h b/ui/aura/client/tooltip_client.h
index c280b8a8b75dd6ffc3ecbb7b360fc80d9ff5abeb..875e0e2df46221ea3ccd81840b615da4de69bb50 100644
--- a/ui/aura/client/tooltip_client.h
+++ b/ui/aura/client/tooltip_client.h
@@ -12,6 +12,8 @@ namespace aura {
class Window;
namespace client {
+class ScopedTooltipDisabler;
+
class AURA_EXPORT TooltipClient {
public:
// Informs the shell tooltip manager of change in tooltip for window |target|.
@@ -21,8 +23,13 @@ class AURA_EXPORT TooltipClient {
// |timeout_in_ms| is <= 0, the tooltip is shown indefinitely.
virtual void SetTooltipShownTimeout(Window* target, int timeout_in_ms) = 0;
- // Enables/Disables tooltips.
+ protected:
+ // Enables/Disables tooltips. This is treated as a reference count. Consumers
varunjain 2014/01/07 05:07:06 I am not sure how much the ScopedDisabler buys. I
sky 2014/01/07 16:52:03 RWHVA may move between root windows. You are corre
varunjain 2014/01/08 15:43:09 But in that case, the ScopedDisabler is even more
+ // must use ScopedTooltipDisabler to enable/disabled tooltips.
virtual void SetTooltipsEnabled(bool enable) = 0;
+
+ private:
+ friend class ScopedTooltipDisabler;
};
AURA_EXPORT void SetTooltipClient(Window* root_window,
« no previous file with comments | « ui/aura/client/scoped_tooltip_disabler.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698