Chromium Code Reviews
Description[PointerLock] Move "silent mouse lock" logic from renderer to RWHI
RWHI should control whether we want to show the "Press Esc to show your cursor"
warning instead of renderer.
This CL moved existing "silent mouse lock" logic to RWHI without changing the
behavior. Future work could be done to optimize the logic, for example, based on
bubble timeout.
-- Logic for |BrowserPluginGuest|
1. Chrome Apps <webview> send |LockMouse| request to |BrowserPluginGuest|
2. |BrowserPluginGuest| send permission request to host page (via JS)
3. If granted, |BrowserPluginGuest| forward |LockMouse| request to host renderer
4. Host renderer send request to host RWHI
Usually we only have step 4. for a normal page.
BUG=725365
Review-Url: https://codereview.chromium.org/2915613004
Cr-Commit-Position: refs/heads/master@{#477639}
Committed: https://chromium.googlesource.com/chromium/src/+/ba34097511607ca63c7377a5db4cbab3e79decf0
Patch Set 1 #
Total comments: 2
Patch Set 2 : Don't pass bool to RejectMouseLockOrUnlockIfNecessary #
Total comments: 3
Patch Set 3 : Add back |RejectMouseLockOrUnlockIfNecessary| in |OnUnlockMouse| #
Total comments: 2
Patch Set 4 : jochen's comment: Remove 'const' before local bool #Messages
Total messages: 40 (27 generated)
|