summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_observer.h
blob: fd71a5f62a2d47fff88ed4b2ecb186e5fe5032ff (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
25
26
27
28
29
// 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 UI_AURA_WINDOW_OBSERVER_H_
#define UI_AURA_WINDOW_OBSERVER_H_
#pragma once

#include "ui/aura/aura_export.h"

namespace aura {

class Window;

class AURA_EXPORT WindowObserver {
 public:
  // Invoked when the Window |new_window| has been added.
  virtual void OnWindowAdded(Window* new_window) {}

  // Invoked prior to removing |window|.
  virtual void OnWillRemoveWindow(Window* window) {}

 protected:
  virtual ~WindowObserver() {}
};

}  // namespace aura

#endif  // UI_AURA_WINDOW_OBSERVER_H_