transient_window_client_observer.h 1.1 KB

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