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 16cfd97a11708a7fda64dc165537b3f56ff3f64d..1a56a7109d4c4a3afe4a72f1c424eb3381d27856 100644 |
--- a/content/browser/renderer_host/render_widget_host.h |
+++ b/content/browser/renderer_host/render_widget_host.h |
@@ -192,6 +192,9 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener, |
void Blur(); |
virtual void LostCapture(); |
+ // Called to notify the RenderWidget that it has lost the mouse lock. |
+ virtual void LostMouseLock(); |
+ |
// Tells us whether the page is rendered directly via the GPU process. |
bool is_accelerated_compositing_active() { |
return is_accelerated_compositing_active_; |
@@ -421,6 +424,8 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener, |
virtual void NotifyRendererUnresponsive() {} |
virtual void NotifyRendererResponsive() {} |
+ bool IsMouseLocked() const; |
+ |
protected: |
// true if a renderer has once been valid. We use this flag to display a sad |
// tab only when we lose our renderer and not if a paint occurs during |
@@ -467,6 +472,9 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener, |
void OnMsgDidActivateAcceleratedCompositing(bool activated); |
+ void OnMsgLockMouse(); |
+ void OnMsgUnlockMouse(); |
+ |
#if defined(OS_POSIX) |
void OnMsgGetScreenInfo(gfx::NativeViewId view, |
WebKit::WebScreenInfo* results); |