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

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

Issue 10173030: User Gesture plumbed from Renderer to Browser's FullscreenController::RequestToLockMouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 d4779ae3cfd7a9dea43416593bc876ec2beaf7ef..492f4fa667d626ecb17095525195bfc4a1ffe609 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1008,7 +1008,7 @@ gfx::Rect RenderWidgetHostImpl::GetRootWindowResizerRect() const {
return gfx::Rect();
}
-void RenderWidgetHostImpl::RequestToLockMouse() {
+void RenderWidgetHostImpl::RequestToLockMouse(bool) {
yzshen1 2012/04/25 23:24:36 Please add name for the parameter.
// Directly reject to lock the mouse. Subclass can override this method to
// decide whether to allow mouse lock or not.
GotResponseToLockMouseRequest(false);
@@ -1427,7 +1427,7 @@ void RenderWidgetHostImpl::OnMsgDidActivateAcceleratedCompositing(
view_->OnAcceleratedCompositingStateChange();
}
-void RenderWidgetHostImpl::OnMsgLockMouse() {
+void RenderWidgetHostImpl::OnMsgLockMouse(bool user_gesture) {
if (pending_mouse_lock_request_) {
Send(new ViewMsg_LockMouse_ACK(routing_id_, false));
return;
@@ -1437,7 +1437,7 @@ void RenderWidgetHostImpl::OnMsgLockMouse() {
}
pending_mouse_lock_request_ = true;
- RequestToLockMouse();
+ RequestToLockMouse(user_gesture);
}
void RenderWidgetHostImpl::OnMsgUnlockMouse() {

Powered by Google App Engine
This is Rietveld 408576698