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

Unified Diff: views/widget/tooltip_manager_views.h

Issue 8418028: Destroy tooltip manager if the native window is destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: modified according to comments Created 9 years, 2 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_aura.cc ('k') | views/widget/tooltip_manager_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/tooltip_manager_views.h
diff --git a/views/widget/tooltip_manager_views.h b/views/widget/tooltip_manager_views.h
index d98914b83a7b66937d22bc77e2e8d989bfadd284..3d22662fce6ca6dee3ec656fd422b0f37aeb331d 100644
--- a/views/widget/tooltip_manager_views.h
+++ b/views/widget/tooltip_manager_views.h
@@ -27,8 +27,7 @@ class Widget;
// TooltipManager implementation for Views.
class TooltipManagerViews : public TooltipManager,
- public MessageLoopForUI::Observer,
- public Widget::Observer {
+ public MessageLoopForUI::Observer {
public:
explicit TooltipManagerViews(views::View* root_view);
virtual ~TooltipManagerViews();
@@ -49,9 +48,6 @@ class TooltipManagerViews : public TooltipManager,
virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
#endif
- // Widget::Observer
- virtual void OnWidgetClosing(Widget* widget) OVERRIDE;
-
private:
void TooltipTimerFired();
View* GetViewForTooltip(int x, int y, bool for_keyboard);
@@ -84,9 +80,6 @@ class TooltipManagerViews : public TooltipManager,
gfx::Point curr_mouse_pos_;
base::RepeatingTimer<TooltipManagerViews> tooltip_timer_;
- // true when the widget that owns us has closed.
- bool widget_closed_;
-
DISALLOW_COPY_AND_ASSIGN(TooltipManagerViews);
};
« no previous file with comments | « views/widget/native_widget_aura.cc ('k') | views/widget/tooltip_manager_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698