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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: esprehn CR tweaks Created 7 years 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
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/tests/TouchActionTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/tests/TouchActionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698