OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_AURA_WINDOW_OBSERVER_H_ | 5 #ifndef UI_AURA_WINDOW_OBSERVER_H_ |
6 #define UI_AURA_WINDOW_OBSERVER_H_ | 6 #define UI_AURA_WINDOW_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const gfx::Rect& region) {} | 51 const gfx::Rect& region) {} |
52 | 52 |
53 // Invoked when the Window is being destroyed (i.e. from the start of its | 53 // Invoked when the Window is being destroyed (i.e. from the start of its |
54 // destructor). This is called before the window is removed from its parent. | 54 // destructor). This is called before the window is removed from its parent. |
55 virtual void OnWindowDestroying(Window* window) {} | 55 virtual void OnWindowDestroying(Window* window) {} |
56 | 56 |
57 // Invoked when the Window has been destroyed (i.e. at the end of its | 57 // Invoked when the Window has been destroyed (i.e. at the end of its |
58 // destructor). This is called after the window is removed from its parent. | 58 // destructor). This is called after the window is removed from its parent. |
59 virtual void OnWindowDestroyed(Window* window) {} | 59 virtual void OnWindowDestroyed(Window* window) {} |
60 | 60 |
| 61 // Called when a Window has been added to a RootWindow. |
| 62 virtual void OnWindowAddedToRootWindow(Window* window) {} |
| 63 |
| 64 // Called when a Window is about to be removed from a RootWindow. |
| 65 virtual void OnWindowRemovingFromRootWindow(Window* window) {} |
| 66 |
61 protected: | 67 protected: |
62 virtual ~WindowObserver() {} | 68 virtual ~WindowObserver() {} |
63 }; | 69 }; |
64 | 70 |
65 } // namespace aura | 71 } // namespace aura |
66 | 72 |
67 #endif // UI_AURA_WINDOW_OBSERVER_H_ | 73 #endif // UI_AURA_WINDOW_OBSERVER_H_ |
OLD | NEW |