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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1980133002: Implement pointer lock API for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 30a0e7cb3ea0df150c5e3ece2689d71e9f56f896..dd81f2741e3b09173e17e8d8e32a61f2b3ff50a7 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -746,12 +746,14 @@ void RenderWidgetHostImpl::SetActive(bool active) {
}
void RenderWidgetHostImpl::LostMouseLock() {
- Send(new ViewMsg_MouseLockLost(routing_id_));
-
if (delegate_)
delegate_->LostMouseLock(this);
}
+void RenderWidgetHostImpl::SendMouseLockLost() {
+ Send(new ViewMsg_MouseLockLost(routing_id_));
+}
+
void RenderWidgetHostImpl::ViewDestroyed() {
RejectMouseLockOrUnlockIfNecessary();
@@ -1777,10 +1779,6 @@ void RenderWidgetHostImpl::OnLockMouse(bool user_gesture,
Send(new ViewMsg_LockMouse_ACK(routing_id_, false));
return;
}
- if (IsMouseLocked()) {
- Send(new ViewMsg_LockMouse_ACK(routing_id_, true));
- return;
- }
pending_mouse_lock_request_ = true;
if (privileged && allow_privileged_mouse_lock_) {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698