summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_widget_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/render_widget_host.h')
-rw-r--r--content/browser/renderer_host/render_widget_host.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h
index 9b6a14c..894e551 100644
--- a/content/browser/renderer_host/render_widget_host.h
+++ b/content/browser/renderer_host/render_widget_host.h
@@ -468,6 +468,12 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
virtual void NotifyRendererUnresponsive() {}
virtual void NotifyRendererResponsive() {}
+ // RenderViewHost overrides this method to impose further restrictions on when
+ // to allow mouse lock. For now, it only allows to lock the mouse when the
+ // current tab is in fullscreen mode.
+ virtual bool CanLockMouse() const;
+
+ void UnlockMouseIfNecessary();
bool IsMouseLocked() const;
protected: