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

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

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Fix nits Created 4 years, 10 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 02bb02e23e9a9236e966b80896335740fd802589..c5af44a941394f3e3e788d87bb857bf25772ea9d 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -876,22 +876,20 @@ bool ChromeClientImpl::shouldOpenModalDialogDuringPageDismissal(const DialogType
return false;
}
-void ChromeClientImpl::needTouchEvents(bool needsTouchEvents)
+void ChromeClientImpl::setEventListenerProperties(WebEventListenerClass eventClass, WebEventListenerProperties properties)
{
- m_webView->hasTouchEventHandlers(needsTouchEvents);
-}
+ if (eventClass == WebEventListenerClass::Touch)
+ m_webView->hasTouchEventHandlers(properties != WebEventListenerProperties::Nothing);
-void ChromeClientImpl::setHaveWheelEventHandlers(bool hasEventHandlers)
-{
if (WebLayerTreeView* treeView = m_webView->layerTreeView())
- treeView->setHaveWheelEventHandlers(hasEventHandlers);
+ treeView->setEventListenerProperties(eventClass, properties);
}
-bool ChromeClientImpl::haveWheelEventHandlers() const
+WebEventListenerProperties ChromeClientImpl::eventListenerProperties(WebEventListenerClass eventClass) const
{
if (WebLayerTreeView* treeView = m_webView->layerTreeView())
- return treeView->haveWheelEventHandlers();
- return false;
+ return treeView->eventListenerProperties(eventClass);
+ return WebEventListenerProperties::Nothing;
}
void ChromeClientImpl::setHaveScrollEventHandlers(bool hasEventHandlers)
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698