Index: aura/window_delegate.h |
=================================================================== |
--- aura/window_delegate.h (revision 98311) |
+++ aura/window_delegate.h (working copy) |
@@ -6,17 +6,14 @@ |
#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 window contents into the supplied canvas. |
- virtual void OnPaint(gfx::Canvas* canvas) = 0; |
+ // 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; |
protected: |
virtual ~WindowDelegate() {} |