Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: ui/platform_window/platform_window.h

Issue 873563002: [Ozone] Constrain the cursor when overscan insets are set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/test/test_window.cc ('k') | ui/platform_window/win/win_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/ozone/platform/test/test_window.cc ('k') | ui/platform_window/win/win_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698