Chromium Code Reviews| Index: aura/window_delegate.h |
| diff --git a/aura/window_delegate.h b/aura/window_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4fcccfd5c9809dff63a09326b007977dee7e7321 |
| --- /dev/null |
| +++ b/aura/window_delegate.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef AURA_WINDOW_DELEGATE_H_ |
| +#define AURA_WINDOW_DELEGATE_H_ |
| +#pragma once |
| + |
| +namespace aura { |
| + |
| +// Delegate interface for aura::Window. |
| +class WindowDelegate { |
| + public: |
| + // Asks the delegate to paint to the window. The delegate should callback |
|
Daniel Erat
2011/07/28 23:00:37
s/callback/call back/ (at least, i think of it as
|
| + // to the window with SetCanvas. |
| + virtual void OnPaint(const gfx::Rect& bounds) = 0; |
| + |
| + protected: |
| + virtual ~WindowDelegate() {} |
| +}; |
| + |
| +} // namespace aura |
| + |
| +#endif // AURA_WINDOW_DELEGATE_H_ |