| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef UI_AURA_CLIENT_TRANSIENT_WINDOW_CLIENT_OBSERVER_H_ |
| 6 #define UI_AURA_CLIENT_TRANSIENT_WINDOW_CLIENT_OBSERVER_H_ |
| 7 |
| 8 #include "ui/aura/aura_export.h" |
| 9 |
| 10 namespace aura { |
| 11 |
| 12 class Window; |
| 13 |
| 14 namespace client { |
| 15 |
| 16 class AURA_EXPORT TransientWindowClientObserver { |
| 17 public: |
| 18 // Called when a window is added as a transient child. This is called once |
| 19 // the child is added as a transient, but before any restacking occurs. |
| 20 virtual void OnTransientChildWindowAdded(Window* parent, |
| 21 Window* transient_child) = 0; |
| 22 |
| 23 // Called when a window is removed as a transient child. This is called once |
| 24 // the child is removed as a transient, but before any restacking occurs. |
| 25 virtual void OnTransientChildWindowRemoved(Window* parent, |
| 26 Window* transient_child) = 0; |
| 27 |
| 28 protected: |
| 29 virtual ~TransientWindowClientObserver() {} |
| 30 }; |
| 31 |
| 32 } // namespace client |
| 33 } // namespace aura |
| 34 |
| 35 #endif // UI_AURA_CLIENT_TRANSIENT_WINDOW_CLIENT_OBSERVER_H_ |
| OLD | NEW |