cursor_client_observer.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright (c) 2013 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_CURSOR_CLIENT_OBSERVER_H_
  5. #define UI_AURA_CLIENT_CURSOR_CLIENT_OBSERVER_H_
  6. #include "ui/aura/aura_export.h"
  7. #include "ui/base/cursor/cursor.h"
  8. namespace display {
  9. class Display;
  10. }
  11. namespace gfx {
  12. class Size;
  13. }
  14. namespace ui {
  15. enum class CursorSize;
  16. }
  17. namespace aura {
  18. namespace client {
  19. class AURA_EXPORT CursorClientObserver {
  20. public:
  21. virtual void OnCursorVisibilityChanged(bool is_visible) {}
  22. virtual void OnCursorSizeChanged(ui::CursorSize cursor_size) {}
  23. virtual void OnCursorDisplayChanged(const display::Display& display) {}
  24. // System cursor size is the size, in DIP, of the cursor; according
  25. // to OS settings.
  26. virtual void OnSystemCursorSizeChanged(const gfx::Size& system_cursor_size) {}
  27. protected:
  28. virtual ~CursorClientObserver() {}
  29. };
  30. } // namespace client
  31. } // namespace aura
  32. #endif // UI_AURA_CLIENT_CURSOR_CLIENT_OBSERVER_H_