summaryrefslogtreecommitdiffstats
path: root/src/core/render_widget_host_view_qt_delegate.h
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2014-11-18 08:23:56 -0800
committerSzabolcs David <davidsz@inf.u-szeged.hu>2015-01-16 11:28:36 +0100
commite57b02dc9fe39a4ac8cc56f5d09eab4452a90210 (patch)
treea075e6cbceff8e9f2e933586ba9547582cc7a90d /src/core/render_widget_host_view_qt_delegate.h
parenta4e8022751ec69aec6f4f12c5c6c8be3e2e7367f (diff)
Add Pointer Lock support
While the mouse is locked, the cursor is hidden from the user and mouse events are still generated. The movement which is reported by the event indicates what would be the position change if the mouse would not have been locked. Change-Id: I79b3df5d7d644cd675a27e6c5a0da54e00b69da3 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/render_widget_host_view_qt_delegate.h')
-rw-r--r--src/core/render_widget_host_view_qt_delegate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/render_widget_host_view_qt_delegate.h b/src/core/render_widget_host_view_qt_delegate.h
index 0fb3d1d5f..018a914d8 100644
--- a/src/core/render_widget_host_view_qt_delegate.h
+++ b/src/core/render_widget_host_view_qt_delegate.h
@@ -77,6 +77,8 @@ public:
virtual QRectF contentsRect() const = 0;
virtual void setKeyboardFocus() = 0;
virtual bool hasKeyboardFocus() = 0;
+ virtual void lockMouse() = 0;
+ virtual void unlockMouse() = 0;
virtual void show() = 0;
virtual void hide() = 0;
virtual bool isVisible() const = 0;