diff options
Diffstat (limited to 'aura/window_delegate.h')
-rw-r--r-- | aura/window_delegate.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/aura/window_delegate.h b/aura/window_delegate.h index 69637cf..ffa3191 100644 --- a/aura/window_delegate.h +++ b/aura/window_delegate.h @@ -6,14 +6,17 @@ #define AURA_WINDOW_DELEGATE_H_ #pragma once +namespace gfx { +class Canvas; +} + namespace aura { // Delegate interface for aura::Window. class WindowDelegate { public: - // Asks the delegate to paint to the window. The delegate should call back - // to the window with SetCanvas. - virtual void OnPaint(const gfx::Rect& bounds) = 0; + // Asks the delegate to paint window contents into the supplied canvas. + virtual void OnPaint(gfx::Canvas* canvas) = 0; protected: virtual ~WindowDelegate() {} |