| Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| index 730243d4a00443a9ed5118dd2e46261e45c5a3f3..8fd20c1976d0acfa28484c9be18d3c7ef7ca7a75 100644
|
| --- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
|
| @@ -337,6 +337,12 @@ WebInputEventResult WebFrameWidgetImpl::handleInputEvent(
|
| AutoReset<const WebInputEvent*> currentEventChange(&m_currentInputEvent,
|
| &inputEvent);
|
|
|
| + if (m_client->isPointerLocked() &&
|
| + WebInputEvent::isMouseEventType(inputEvent.type())) {
|
| + pointerLockMouseEvent(inputEvent);
|
| + return WebInputEventResult::HandledSystem;
|
| + }
|
| +
|
| if (m_mouseCaptureNode &&
|
| WebInputEvent::isMouseEventType(inputEvent.type())) {
|
| TRACE_EVENT1("input", "captured mouse event", "type", inputEvent.type());
|
| @@ -667,18 +673,6 @@ void WebFrameWidgetImpl::willCloseLayerTreeView() {
|
| m_layerTreeViewClosed = true;
|
| }
|
|
|
| -void WebFrameWidgetImpl::didAcquirePointerLock() {
|
| - page()->pointerLockController().didAcquirePointerLock();
|
| -}
|
| -
|
| -void WebFrameWidgetImpl::didNotAcquirePointerLock() {
|
| - page()->pointerLockController().didNotAcquirePointerLock();
|
| -}
|
| -
|
| -void WebFrameWidgetImpl::didLosePointerLock() {
|
| - page()->pointerLockController().didLosePointerLock();
|
| -}
|
| -
|
| // TODO(ekaramad):This method is almost duplicated in WebViewImpl as well. This
|
| // code needs to be refactored (http://crbug.com/629721).
|
| bool WebFrameWidgetImpl::getCompositionCharacterBounds(
|
|
|