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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 1884863003: Non passive touch end or touch cancel listeners should not block scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 2210928659e4074606bc73b74029c8499211d3cc..25b7ec14669166be409622e6d45ecbabfaec5615 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -909,11 +909,13 @@ bool ChromeClientImpl::shouldOpenModalDialogDuringPageDismissal(const DialogType
return false;
}
-void ChromeClientImpl::setEventListenerProperties(WebEventListenerClass eventClass, WebEventListenerProperties properties)
+void ChromeClientImpl::setHaveTouchEventListeners(bool hasListeners)
{
- if (eventClass == WebEventListenerClass::Touch)
- m_webView->hasTouchEventHandlers(properties != WebEventListenerProperties::Nothing);
+ m_webView->hasTouchEventHandlers(hasListeners);
+}
+void ChromeClientImpl::setEventListenerProperties(WebEventListenerClass eventClass, WebEventListenerProperties properties)
+{
if (WebLayerTreeView* treeView = m_webView->layerTreeView())
treeView->setEventListenerProperties(eventClass, properties);
}

Powered by Google App Engine
This is Rietveld 408576698