diff options
Diffstat (limited to 'aura/window_delegate.h')
-rw-r--r-- | aura/window_delegate.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/aura/window_delegate.h b/aura/window_delegate.h index ffa3191..93ad8f5 100644 --- a/aura/window_delegate.h +++ b/aura/window_delegate.h @@ -12,11 +12,19 @@ class Canvas; namespace aura { +class MouseEvent; + // Delegate interface for aura::Window. class WindowDelegate { public: + virtual bool OnMouseEvent(const MouseEvent& event) = 0; + // Asks the delegate to paint window contents into the supplied canvas. - virtual void OnPaint(gfx::Canvas* canvas) = 0; + virtual void OnPaint(gfx::Canvas* canvas) = 0; + + // Called when the Window has been destroyed (i.e. from its destructor). + // The delegate can use this as an opportunity to delete itself if necessary. + virtual void OnWindowDestroyed() = 0; protected: virtual ~WindowDelegate() {} |