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

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

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove blank line Created 4 years, 11 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 a38895a8cf43a0605ec5180ddebb387b7d71dbf6..7c169b256a7f7298d712a410a9ebe89b0a46a89c 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -881,6 +881,19 @@ void ChromeClientImpl::needTouchEvents(bool needsTouchEvents)
m_webView->hasTouchEventHandlers(needsTouchEvents);
}
+void ChromeClientImpl::setHaveWheelEventHandlers(bool hasEventHandlers)
+{
+ if (WebLayerTreeView* treeView = m_webView->layerTreeView())
+ treeView->setHaveWheelEventHandlers(hasEventHandlers);
+}
+
+bool ChromeClientImpl::haveWheelEventHandlers() const
+{
+ if (WebLayerTreeView* treeView = m_webView->layerTreeView())
+ return treeView->haveWheelEventHandlers();
+ return false;
+}
+
void ChromeClientImpl::setTouchAction(TouchAction touchAction)
{
if (WebViewClient* client = m_webView->client())
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698