| Index: ui/base/cursor/cursor_data.cc
|
| diff --git a/ui/base/cursor/cursor_data.cc b/ui/base/cursor/cursor_data.cc
|
| index 20a6896f76a23bb28df107ed20fa81331493eea9..82231d06324dd07b82b6722359c45bb7cf4d6065 100644
|
| --- a/ui/base/cursor/cursor_data.cc
|
| +++ b/ui/base/cursor/cursor_data.cc
|
| @@ -9,15 +9,17 @@
|
|
|
| namespace ui {
|
|
|
| -CursorData::CursorData() : cursor_type_(0), scale_factor_(0.0f) {}
|
| +CursorData::CursorData()
|
| + : cursor_type_(CursorType::CURSOR_NULL), scale_factor_(0.0f) {}
|
|
|
| -CursorData::CursorData(int type) : cursor_type_(type), scale_factor_(0.0f) {}
|
| +CursorData::CursorData(CursorType type)
|
| + : cursor_type_(type), scale_factor_(0.0f) {}
|
|
|
| CursorData::CursorData(const gfx::Point& hotspot_point,
|
| const std::vector<SkBitmap>& cursor_frames,
|
| float scale_factor,
|
| const base::TimeDelta& frame_delay)
|
| - : cursor_type_(kCursorCustom),
|
| + : cursor_type_(CursorType::CUSTOM),
|
| frame_delay_(frame_delay),
|
| scale_factor_(scale_factor),
|
| hotspot_(hotspot_point),
|
| @@ -32,7 +34,7 @@ CursorData::~CursorData() {}
|
|
|
| CursorData& CursorData::operator=(const CursorData& cursor) = default;
|
|
|
| -bool CursorData::IsType(int cursor_type) const {
|
| +bool CursorData::IsType(CursorType cursor_type) const {
|
| return cursor_type_ == cursor_type;
|
| }
|
|
|
|
|