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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2592243002: Perform direct routing of mouse events when the pointer is locked. (Closed)
Patch Set: Created 4 years 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index c8b38722cbd096c893ec16e258aae8768681b16b..71cf954b6982fc5df0ed8cef5b0d9d850074ab55 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1961,6 +1961,13 @@ bool WebContentsImpl::HasMouseLock(RenderWidgetHostImpl* render_widget_host) {
GetTopLevelRenderWidgetHostView()->IsMouseLocked();
}
+RenderWidgetHostImpl* WebContentsImpl::MouseLockWidget() {
+ if (GetTopLevelRenderWidgetHostView()->IsMouseLocked())
+ return mouse_lock_widget_;
+
+ return nullptr;
+}
+
void WebContentsImpl::ForwardCompositorProto(
RenderWidgetHostImpl* render_widget_host,
const std::vector<uint8_t>& proto) {

Powered by Google App Engine
This is Rietveld 408576698