capture_client_observer.h 711 B

12345678910111213141516171819202122232425262728
  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_CAPTURE_CLIENT_OBSERVER_H_
  5. #define UI_AURA_CLIENT_CAPTURE_CLIENT_OBSERVER_H_
  6. #include "ui/aura/aura_export.h"
  7. namespace aura {
  8. class Window;
  9. namespace client {
  10. // Used to observe changes in capture.
  11. class AURA_EXPORT CaptureClientObserver {
  12. public:
  13. virtual void OnCaptureChanged(Window* lost_capture,
  14. Window* gained_capture) = 0;
  15. protected:
  16. virtual ~CaptureClientObserver() {}
  17. };
  18. } // namespace client
  19. } // namespace aura
  20. #endif // UI_AURA_CLIENT_CAPTURE_CLIENT_OBSERVER_H_