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

Unified Diff: ui/platform_window/platform_window.h

Issue 1287103004: Sync ui/events to chromium @ https://codereview.chromium.org/1210203002 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 4 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/gfx/screen_type_delegate.h ('k') | ui/platform_window/x11/BUILD.gn » ('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 a224f5a4325c877a686507cf7c9d9cda6c5cd4bd..bfeda6b02093d01c7ecb42be8b7a2d94fce507b6 100644
--- a/ui/platform_window/platform_window.h
+++ b/ui/platform_window/platform_window.h
@@ -18,6 +18,7 @@ typedef unsigned long PlatformCursor;
#else
typedef void* PlatformCursor;
#endif
+
class PlatformWindowDelegate;
@@ -47,7 +48,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/gfx/screen_type_delegate.h ('k') | ui/platform_window/x11/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698