#ifndef ASH_WM_NATIVE_CURSOR_MANAGER_ASH_H_
#define ASH_WM_NATIVE_CURSOR_MANAGER_ASH_H_
#include "ash/ash_export.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/display/display.h"
#include "ui/wm/core/cursor_loader.h"
#include "ui/wm/core/native_cursor_manager.h"
namespace ash {
class ASH_EXPORT NativeCursorManagerAsh : public ::wm::NativeCursorManager {
public:
NativeCursorManagerAsh();
NativeCursorManagerAsh(const NativeCursorManagerAsh&) = delete;
NativeCursorManagerAsh& operator=(const NativeCursorManagerAsh&) = delete;
~NativeCursorManagerAsh() override;
void SetNativeCursorEnabled(bool enabled);
display::Display::Rotation GetRotation() const;
void SetDisplay(const display::Display& display,
::wm::NativeCursorManagerDelegate* delegate) override;
void SetCursor(gfx::NativeCursor cursor,
::wm::NativeCursorManagerDelegate* delegate) override;
void SetLargeCursorSizeInDip(
int large_cursor_size_in_dip,
::wm::NativeCursorManagerDelegate* delegate) override;
void SetVisibility(bool visible,
::wm::NativeCursorManagerDelegate* delegate) override;
void SetCursorSize(ui::CursorSize cursor_size,
::wm::NativeCursorManagerDelegate* delegate) override;
void SetMouseEventsEnabled(
bool enabled,
::wm::NativeCursorManagerDelegate* delegate) override;
void SetCursorColor(SkColor color,
::wm::NativeCursorManagerDelegate* delegate) override;
private:
friend class CursorManagerTestApi;
gfx::Point disabled_cursor_location_;
bool native_cursor_enabled_;
wm::CursorLoader cursor_loader_{false};
};
}
#endif