#include "ui/wm/core/cursor_loader.h"
#include <map>
#include <optional>
#include <vector>
#include "base/check.h"
#include "base/memory/scoped_refptr.h"
#include "base/time/time.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/cursor/cursor.h"
#include "ui/base/cursor/cursor_factory.h"
#include "ui/base/cursor/cursor_size.h"
#include "ui/base/cursor/mojom/cursor_type.mojom.h"
#include "ui/base/cursor/platform_cursor.h"
#include "ui/base/resource/resource_scale_factor.h"
#include "ui/gfx/geometry/point.h"
#include "ui/wm/core/cursor_util.h"
namespace wm {
namespace {
CursorType;
constexpr base::TimeDelta kAnimatedCursorFrameDelay = …;
}
CursorLoader::CursorLoader(bool use_platform_cursors)
: … { … }
CursorLoader::~CursorLoader() { … }
void CursorLoader::OnThemeLoaded() { … }
void CursorLoader::UnloadCursors() { … }
bool CursorLoader::SetDisplay(const display::Display& display) { … }
void CursorLoader::SetSize(ui::CursorSize size) { … }
void CursorLoader::SetPlatformCursor(ui::Cursor* cursor) { … }
std::optional<ui::CursorData> CursorLoader::GetCursorData(
const ui::Cursor& cursor) const { … }
scoped_refptr<ui::PlatformCursor> CursorLoader::CursorFromType(
CursorType type) { … }
scoped_refptr<ui::PlatformCursor> CursorLoader::LoadCursorFromAsset(
CursorType type) { … }
}