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

Unified Diff: content/renderer/mouse_lock_dispatcher.h

Issue 2915613004: [PointerLock] Move "silent mouse lock" logic from renderer to RWHI (Closed)
Patch Set: jochen's comment: Remove 'const' before local bool Created 3 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
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/renderer/mouse_lock_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mouse_lock_dispatcher.h
diff --git a/content/renderer/mouse_lock_dispatcher.h b/content/renderer/mouse_lock_dispatcher.h
index 546088ea96253d2ca2a4ee097ec65e7ad73a90bc..b3bb8f364ed8ed86e3a989a56934582fcd229e58 100644
--- a/content/renderer/mouse_lock_dispatcher.h
+++ b/content/renderer/mouse_lock_dispatcher.h
@@ -53,7 +53,7 @@ class CONTENT_EXPORT MouseLockDispatcher {
protected:
// Subclasses must implement these methods to send mouse lock requests to the
// browser.
- virtual void SendLockMouseRequest(bool unlocked_by_target) = 0;
+ virtual void SendLockMouseRequest() = 0;
virtual void SendUnlockMouseRequest() = 0;
private:
@@ -69,11 +69,6 @@ class CONTENT_EXPORT MouseLockDispatcher {
bool pending_lock_request_;
bool pending_unlock_request_;
- // Used when locking to indicate when a target application has voluntarily
- // unlocked and desires to relock the mouse. If the mouse is unlocked due
- // to ESC being pressed by the user, this will be false
- bool unlocked_by_target_;
-
// |target_| is the pending or current owner of mouse lock. We retain a non
// owning reference here that must be cleared by |OnLockTargetDestroyed|
// when it is destroyed.
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/renderer/mouse_lock_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698