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

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

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update for silent mouse relock Created 8 years, 7 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_view_host_delegate.h
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h
index bfb664a78992ba234d175712ce91a5a98475d926..3a0eac185e721f474027dc9d5eb72a38367a37e8 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -13,6 +13,7 @@
#include "base/process_util.h"
#include "base/string16.h"
#include "content/common/content_export.h"
+#include "content/common/mouse_lock.h"
#include "ipc/ipc_channel.h"
#include "net/base/load_states.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
@@ -327,7 +328,10 @@ class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener {
// Requests to lock the mouse. Once the request is approved or rejected,
// GotResponseToLockMouseRequest() will be called on the requesting render
// view host.
- virtual void RequestToLockMouse(bool user_gesture) {}
+ virtual void RequestToLockMouse(
+ MouseLockSource lock_source,
+ MouseUnlockSource previous_unlock_source) {
+ }
// Notification that the view has lost the mouse lock.
virtual void LostMouseLock() {}

Powered by Google App Engine
This is Rietveld 408576698