Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Unified Diff: content/browser/renderer_host/render_widget_host.h

Issue 7863003: Mouse lock implementation, including the renderer side and the Windows version of the browser side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove two tab chars. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698