123456789101112131415161718192021222324252627282930313233343536373839404142 |
- // Copyright (c) 2013 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef UI_AURA_CLIENT_CURSOR_CLIENT_OBSERVER_H_
- #define UI_AURA_CLIENT_CURSOR_CLIENT_OBSERVER_H_
- #include "ui/aura/aura_export.h"
- #include "ui/base/cursor/cursor.h"
- namespace display {
- class Display;
- }
- namespace gfx {
- class Size;
- }
- namespace ui {
- enum class CursorSize;
- }
- namespace aura {
- namespace client {
- class AURA_EXPORT CursorClientObserver {
- public:
- virtual void OnCursorVisibilityChanged(bool is_visible) {}
- virtual void OnCursorSizeChanged(ui::CursorSize cursor_size) {}
- virtual void OnCursorDisplayChanged(const display::Display& display) {}
- // System cursor size is the size, in DIP, of the cursor; according
- // to OS settings.
- virtual void OnSystemCursorSizeChanged(const gfx::Size& system_cursor_size) {}
- protected:
- virtual ~CursorClientObserver() {}
- };
- } // namespace client
- } // namespace aura
- #endif // UI_AURA_CLIENT_CURSOR_CLIENT_OBSERVER_H_
|