summaryrefslogtreecommitdiffstats
path: root/aura/window_delegate.h
blob: 69637cf9de440ddd82d3ecc02fe390f16bd8f6fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 call back
  // to the window with SetCanvas.
  virtual void OnPaint(const gfx::Rect& bounds) = 0;

 protected:
  virtual ~WindowDelegate() {}
};

}  // namespace aura

#endif  // AURA_WINDOW_DELEGATE_H_