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

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: merge with trunk - no changes Created 7 years, 1 month 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
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();

Powered by Google App Engine
This is Rietveld 408576698