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 776bbc6be90d125bcdcbc09858e5071bf6a51bff..7e882f44663cc6566e9962acf318b1d0840b98cf 100644 |
--- a/content/browser/renderer_host/render_widget_host.h |
+++ b/content/browser/renderer_host/render_widget_host.h |
@@ -191,6 +191,9 @@ class 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_; |
@@ -420,6 +423,8 @@ class 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 |
@@ -466,6 +471,9 @@ class 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); |