// Overridden from views::WidgetObserver:
virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
+ virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
+ virtual void OnWidgetDestroyed(views::Widget* widget) OVERRIDE;
private:
friend class CaptivePortalWindowTest;
// Returns symbolic state name based on internal state.
State GetState() const;
+ // When |widget| is not NULL and the same as |widget_| stops to observe
+ // notifications from |widget_| and resets it.
+ void DetachFromWidget(views::Widget* widget);
+
// Not owned by this class.
Delegate* delegate_;
// Not owned by this class.