Index: ui/ozone/platform/dri/dri_cursor.h |
diff --git a/ui/ozone/platform/dri/dri_cursor.h b/ui/ozone/platform/dri/dri_cursor.h |
index 755393a073d6aa85b0c7e38abe1fb3b9741671f9..c93d6496cd0d5b17fd4ca39db07c49138502fb1f 100644 |
--- a/ui/ozone/platform/dri/dri_cursor.h |
+++ b/ui/ozone/platform/dri/dri_cursor.h |
@@ -46,8 +46,10 @@ class DriCursor : public CursorDelegateEvdev, public GpuPlatformSupportHost { |
// Handle window bounds changes. |
void PrepareForBoundsChange(gfx::AcceleratedWidget window); |
- void CommitBoundsChange(gfx::AcceleratedWidget window, |
- const gfx::Rect& bounds); |
+ |
+ // Confines the cursor to |confined_bounds| for |window|. |
+ void ConfineCursorToBounds(gfx::AcceleratedWidget window, |
+ const gfx::Rect& bounds); |
// CursorDelegateEvdev: |
void MoveCursorTo(gfx::AcceleratedWidget window, |
@@ -56,7 +58,7 @@ class DriCursor : public CursorDelegateEvdev, public GpuPlatformSupportHost { |
void MoveCursor(const gfx::Vector2dF& delta) override; |
bool IsCursorVisible() override; |
gfx::PointF GetLocation() override; |
- gfx::Rect GetCursorDisplayBounds() override; |
+ gfx::Rect GetCursorConfinedBounds() override; |
// GpuPlatformSupportHost: |
void OnChannelEstablished( |
@@ -102,7 +104,10 @@ class DriCursor : public CursorDelegateEvdev, public GpuPlatformSupportHost { |
gfx::PointF location; |
// The bounds of the display under the cursor. |
- gfx::Rect bounds; |
+ gfx::Rect display_bounds_in_screen; |
+ |
+ // The bounds that the cursor is confined to in |window|. |
+ gfx::Rect confined_bounds; |
// Callback for IPC updates. |
base::Callback<void(IPC::Message*)> send_callback; |