| Index: Source/web/ChromeClientImpl.cpp
|
| diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
|
| index 60d582b6a3943e708a42baf25de8ba9ea2fc990b..71351a406640033613a61a4908141b6e4aea367e 100644
|
| --- a/Source/web/ChromeClientImpl.cpp
|
| +++ b/Source/web/ChromeClientImpl.cpp
|
| @@ -101,6 +101,7 @@
|
| #include "public/platform/WebCursorInfo.h"
|
| #include "public/platform/WebRect.h"
|
| #include "public/platform/WebURLRequest.h"
|
| +#include "public/web/WebTouchAction.h"
|
| #include "wtf/text/CString.h"
|
| #include "wtf/text/StringBuilder.h"
|
| #include "wtf/text/StringConcatenate.h"
|
| @@ -951,6 +952,14 @@ void ChromeClientImpl::needTouchEvents(bool needsTouchEvents)
|
| m_webView->hasTouchEventHandlers(needsTouchEvents);
|
| }
|
|
|
| +void ChromeClientImpl::setTouchAction(TouchAction touchAction)
|
| +{
|
| + if (WebViewClient* client = m_webView->client()) {
|
| + WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction);
|
| + client->setTouchAction(webTouchAction);
|
| + }
|
| +}
|
| +
|
| bool ChromeClientImpl::requestPointerLock()
|
| {
|
| return m_webView->requestPointerLock();
|
|
|