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

Unified Diff: views/widget/tooltip_manager_win.h

Issue 6995157: Disables tooltips if we can't create the tooltip window. I still don't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved comments Created 9 years, 6 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 | « views/widget/native_widget_win.cc ('k') | views/widget/tooltip_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/tooltip_manager_win.h
diff --git a/views/widget/tooltip_manager_win.h b/views/widget/tooltip_manager_win.h
index 881ce20db202176d0d9e5dee4fef77635697ac28..dd7741f9f2d9974fb1f20d5a2a029e1a3f51d39b 100644
--- a/views/widget/tooltip_manager_win.h
+++ b/views/widget/tooltip_manager_win.h
@@ -62,6 +62,11 @@ class TooltipManagerWin : public TooltipManager {
explicit TooltipManagerWin(Widget* widget);
virtual ~TooltipManagerWin();
+ // Initializes the TooltipManager returning whether initialization was
+ // successful. If this returns false the TooltipManager should be destroyed
+ // and not used.
+ bool Init();
+
// Notification that the view hierarchy has changed in some way.
virtual void UpdateTooltip();
@@ -79,8 +84,6 @@ class TooltipManagerWin : public TooltipManager {
LRESULT OnNotify(int w_param, NMHDR* l_param, bool* handled);
protected:
- virtual void Init();
-
// Returns the Widget we're showing tooltips for.
gfx::NativeView GetParent();
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/tooltip_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698