| Index: ui/base/cursor/cursor.h
|
| diff --git a/ui/base/cursor/cursor.h b/ui/base/cursor/cursor.h
|
| index 2383274f95f25c2bf154178ac8022bd6f9c8623a..43c201db37bc105cf8956efc6e05d10c35155bf3 100644
|
| --- a/ui/base/cursor/cursor.h
|
| +++ b/ui/base/cursor/cursor.h
|
| @@ -102,16 +102,24 @@ class UI_EXPORT Cursor {
|
|
|
| int native_type() const { return native_type_; }
|
| PlatformCursor platform() const { return platform_cursor_; }
|
| + float device_scale_factor() const {
|
| + return device_scale_factor_;
|
| + }
|
| + void set_device_scale_factor(float device_scale_factor) {
|
| + device_scale_factor_ = device_scale_factor;
|
| + }
|
|
|
| bool operator==(int type) const { return native_type_ == type; }
|
| bool operator==(const Cursor& cursor) const {
|
| return native_type_ == cursor.native_type_ &&
|
| - platform_cursor_ == cursor.platform_cursor_;
|
| + platform_cursor_ == cursor.platform_cursor_ &&
|
| + device_scale_factor_ == cursor.device_scale_factor_;
|
| }
|
| bool operator!=(int type) const { return native_type_ != type; }
|
| bool operator!=(const Cursor& cursor) const {
|
| return native_type_ != cursor.native_type_ ||
|
| - platform_cursor_ != cursor.platform_cursor_;
|
| + platform_cursor_ != cursor.platform_cursor_ ||
|
| + device_scale_factor_ != cursor.device_scale_factor_;
|
| }
|
|
|
| void operator=(const Cursor& cursor) {
|
| @@ -125,6 +133,9 @@ class UI_EXPORT Cursor {
|
| int native_type_;
|
|
|
| PlatformCursor platform_cursor_;
|
| +
|
| + // The device scale factor for the cursor.
|
| + float device_scale_factor_;
|
| };
|
|
|
| } // namespace ui
|
|
|