Updating trunk VERSION from 848.0 to 849.0
[chromium-blink-merge.git] / aura / window_delegate.h
blob69637cf9de440ddd82d3ecc02fe390f16bd8f6fa
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef AURA_WINDOW_DELEGATE_H_
6 #define AURA_WINDOW_DELEGATE_H_
7 #pragma once
9 namespace aura {
11 // Delegate interface for aura::Window.
12 class WindowDelegate {
13 public:
14 // Asks the delegate to paint to the window. The delegate should call back
15 // to the window with SetCanvas.
16 virtual void OnPaint(const gfx::Rect& bounds) = 0;
18 protected:
19 virtual ~WindowDelegate() {}
22 } // namespace aura
24 #endif // AURA_WINDOW_DELEGATE_H_