Index: content/browser/renderer_host/render_widget_host.h |
diff --git a/content/browser/renderer_host/render_widget_host.h b/content/browser/renderer_host/render_widget_host.h |
index 9b6a14ca7dc632eb823ddbb3129ce4608f0f3c63..894e55134652382ca6c1bac3cb42c016941156e6 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: |