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

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

Issue 8072011: Only allow to lock the mouse when the tab is in fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 9b6a14ca7dc632eb823ddbb3129ce4608f0f3c63..f6cb64cd4aac5231b8697eced470c350f7004e1f 100644
--- a/content/browser/renderer_host/render_widget_host.h
+++ b/content/browser/renderer_host/render_widget_host.h
@@ -468,6 +468,11 @@ class CONTENT_EXPORT RenderWidgetHost : public IPC::Channel::Listener,
virtual void NotifyRendererUnresponsive() {}
virtual void NotifyRendererResponsive() {}
+ // RenderViewhost overrides this method to check whether it is allowed to lock
+ // the mouse.
+ virtual bool HasMouseLockPermission() const;
sky 2011/09/28 22:58:04 Add a real description. Also, what about CanLockMo
yzshen1 2011/09/29 20:41:04 Done.
+
+ void UnlockMouseIfNecessary();
bool IsMouseLocked() const;
protected:

Powered by Google App Engine
This is Rietveld 408576698