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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

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: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index d415d339f26e756b3c382f56434f2413ff7f6d18..d8f04151bddc84bc5ac5c6fab3de38736d419ee5 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -959,14 +959,16 @@ void ChromeClientImpl::setTouchAction(TouchAction touchAction)
client->setTouchAction(static_cast<WebTouchAction>(touchAction));
}
-bool ChromeClientImpl::requestPointerLock()
+bool ChromeClientImpl::requestPointerLock(LocalFrame* frame)
{
- return m_webView->requestPointerLock();
+ LocalFrame* localRoot = frame->localFrameRoot();
+ return WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client()->requestPointerLock();
}
-void ChromeClientImpl::requestPointerUnlock()
+void ChromeClientImpl::requestPointerUnlock(LocalFrame* frame)
{
- return m_webView->requestPointerUnlock();
+ LocalFrame* localRoot = frame->localFrameRoot();
+ return WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client()->requestPointerUnlock();
}
void ChromeClientImpl::annotatedRegionsChanged()

Powered by Google App Engine
This is Rietveld 408576698