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

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: transform event, add tests 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..55302afccb54b90f927a7a85d35855fe0fe44ef0 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* MouseLockWidget();
Charlie Reis 2017/02/15 21:38:49 nit: GetMouseLockWidget
lfg 2017/02/15 22:02:48 Done.
+
// 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

Powered by Google App Engine
This is Rietveld 408576698