| 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()
|
|
|