Index: ui/platform_window/platform_window.h |
diff --git a/ui/platform_window/platform_window.h b/ui/platform_window/platform_window.h |
index d5f5750e213f52de0581fdadf4aecb63c77545f6..6e6ace185b0d321e9f8322982badf9962521c6e4 100644 |
--- a/ui/platform_window/platform_window.h |
+++ b/ui/platform_window/platform_window.h |
@@ -42,7 +42,13 @@ class PlatformWindow { |
virtual void Restore() = 0; |
virtual void SetCursor(PlatformCursor cursor) = 0; |
+ |
+ // Moves the cursor to |location|. Location is in platform window coordinates. |
virtual void MoveCursorTo(const gfx::Point& location) = 0; |
+ |
+ // Confines the cursor to |bounds| when it is in the platform window. |bounds| |
+ // is in platform window coordinates. |
+ virtual void ConfineCursorToBounds(const gfx::Rect& bounds) = 0; |
}; |
} // namespace ui |