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 5#ifndef UI_BASE_CURSOR_CURSORS_AURA_H_ 6#define UI_BASE_CURSOR_CURSORS_AURA_H_ 7 8#include "ui/base/ui_export.h" 9 10namespace gfx { 11class Point; 12} 13 14namespace ui { 15 16const int kAnimatedCursorFrameDelayMs = 25; 17 18// Returns data about |id|, where id is a cursor constant like 19// ui::kCursorHelp. The IDR will be placed in |resource_id| and the hotspots 20// for the different DPIs will be placed in |hot_1x| and |hot_2x|. Returns 21// false if |id| is invalid. 22bool UI_EXPORT GetCursorDataFor(int id, 23 float scale_factor, 24 int* resource_id, 25 gfx::Point* point); 26 27// Like above, but for animated cursors. 28bool UI_EXPORT GetAnimatedCursorDataFor(int id, 29 float scale_factor, 30 int* resource_id, 31 gfx::Point* point); 32 33} // namespace ui 34 35#endif // UI_BASE_CURSOR_CURSORS_AURA_H_ 36