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

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

Issue 2626133002: Candidate fix for PointerEvent-OOPIF combination not working. (Closed)
Patch Set: Undo whitespace change to render_widget.cc Created 3 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 c2bd61290d86b9bbebaa2e65327387f73a93ae27..4855f044552b80c724fe6958c549476572e942ea 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -973,8 +973,15 @@ bool ChromeClientImpl::hasScrollEventHandlers() const {
return false;
}
-void ChromeClientImpl::setTouchAction(TouchAction touchAction) {
- if (WebViewClient* client = m_webView->client())
+void ChromeClientImpl::setTouchAction(LocalFrame* frame,
+ TouchAction touchAction) {
+ DCHECK(frame);
+ WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
+ WebFrameWidgetBase* widget = webFrame->localRoot()->frameWidget();
+ if (!widget)
+ return;
+
+ if (WebWidgetClient* client = widget->client())
client->setTouchAction(static_cast<WebTouchAction>(touchAction));
}
« 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