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

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

Issue 2592243002: Perform direct routing of mouse events when the pointer is locked. (Closed)
Patch Set: addressing comments Created 3 years, 10 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_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
index 79efc0ff2a52aec1b35575b3c57998cb047abac1..32bb92d42a85ec2eea448bf54251c3a90b168f34 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -184,6 +184,10 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// Returns true if |render_widget_host| holds the mouse lock.
virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host);
+ // Returns the widget that holds the mouse lock or nullptr if the mouse isn't
+ // locked.
+ virtual RenderWidgetHostImpl* GetMouseLockWidget();
+
// Called when the visibility of the RenderFrameProxyHost in outer
// WebContents changes. This method is only called on an inner WebContents and
// will eventually notify all the RenderWidgetHostViews belonging to that
« no previous file with comments | « content/browser/pointer_lock_browsertest_mac.mm ('k') | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698