Chromium Code Reviews| Index: Source/web/ChromeClientImpl.cpp |
| diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp |
| index 60d582b6a3943e708a42baf25de8ba9ea2fc990b..1b9e95b85cdafcfd1a2a5e4d75b81b58e51921a4 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,15 @@ void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) |
| m_webView->hasTouchEventHandlers(needsTouchEvents); |
| } |
| +void ChromeClientImpl::setTouchAction(TouchAction touchAction) |
|
esprehn
2013/11/21 16:26:29
Now it's singular, seems the plurals in the interf
|
| +{ |
| + WebViewClient* client = m_webView->client(); |
| + if (client) { |
|
esprehn
2013/11/21 16:26:29
if (WebViewClient* client = ...) {
}
or an early
Rick Byers
2013/11/21 22:09:29
Done.
|
| + WebTouchAction webTouchAction = static_cast<WebTouchAction>(touchAction); |
| + client->setTouchAction(webTouchAction); |
| + } |
| +} |
| + |
| bool ChromeClientImpl::requestPointerLock() |
| { |
| return m_webView->requestPointerLock(); |